aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_template.php
Commit message (Collapse)AuthorAgeFilesLines
* [feature/template-engine] Improved template engine.Marek A. Ruszczynski2011-04-231-812/+0
| | | | PHPBB3-9726
* Merge branch 'develop-olympus' into developAndreas Fischer2011-04-231-1/+1
|\ | | | | | | | | * develop-olympus: [ticket/10147] Corrected a typo in includes/functions_template.php.
| * [ticket/10147] Corrected a typo in includes/functions_template.php.Oleg Pudeyev2011-04-231-1/+1
| | | | | | | | PHPBB3-10147
| * Revert INC/DEC feature. It is not consistent with the other template ↵Meik Sievertsen2009-08-301-30/+0
| | | | | | | | | | | | variables - bad idea. ;) We will get to it though... but not now. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10064 89ea8834-ac86-4346-8a33-228a782c2dd0
| * This is an enhancement for revision r10051 (INC template variable)Meik Sievertsen2009-08-251-9/+19
| | | | | | | | | | | | | | | | Within the mentioned revision INC was only able to be applied to defined template variables. I extended it now to work on all supported variables (template vars, defines, loops, defines in loops) I also added a DEC template variable to logically complete this. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10054 89ea8834-ac86-4346-8a33-228a782c2dd0
| * Add INC (working name) to template syntaxHenry Sudhof2009-08-241-0/+20
| | | | | | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10051 89ea8834-ac86-4346-8a33-228a782c2dd0
| * Preserve newlines in template files (one newline had been always dropped ↵Meik Sievertsen2009-07-211-2/+9
| | | | | | | | | | | | after a template variable due to PHP's handling of closing tags) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9811 89ea8834-ac86-4346-8a33-228a782c2dd0
| * Fix bug #45805 - INCLUDEPHP not depending on phpbb_root_pathJoas Schilling2009-06-191-1/+1
| | | | | | | | | | | | Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9633 89ea8834-ac86-4346-8a33-228a782c2dd0
| * Dynamic template includes :)Chris Smith2009-06-111-3/+40
| | | | | | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9570 89ea8834-ac86-4346-8a33-228a782c2dd0
| * Enforce correct case for template variables. {var} no longer works for example.Chris Smith2009-03-311-4/+4
| | | | | | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9419 89ea8834-ac86-4346-8a33-228a782c2dd0
| * Fix r9363, DEFINE uses template_compile::compile() which was generating ↵Chris Smith2009-03-141-1/+2
| | | | | | | | | | | | really broken PHP :) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9368 89ea8834-ac86-4346-8a33-228a782c2dd0
| * add IN_PHPBB check to generated cache filesMeik Sievertsen2009-03-111-2/+6
| | | | | | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9363 89ea8834-ac86-4346-8a33-228a782c2dd0
| * Missing read permission from calls to phpbb_chmod()Chris Smith2008-12-191-1/+1
| | | | | | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9208 89ea8834-ac86-4346-8a33-228a782c2dd0
| * Don't compile {} or {$}.Marek A. R2008-09-041-2/+2
| | | | | | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8813 89ea8834-ac86-4346-8a33-228a782c2dd0
| * change the way we do chmodd'ing. I know, my implementation really sucked... ↵Meik Sievertsen2008-08-221-1/+1
| | | | | | | | | | | | good we have motivated community members who point this out. ;) Thanks to faw for providing a way better function and for discussing and also abiding to our needs. :) LEW21 should maybe credited too... he gave the inspiration without knowing it. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8780 89ea8834-ac86-4346-8a33-228a782c2dd0
| * the chmod change i already had within the changelog (by mistake). This ↵Meik Sievertsen2008-08-161-1/+1
| | | | | | | | | | | | | | | | should further secure writable directories and created files. Installation need to be tested on different hosts. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8763 89ea8834-ac86-4346-8a33-228a782c2dd0
| * only some space/tab changes as well as removing my debug code from the ↵Meik Sievertsen2008-08-161-47/+3
| | | | | | | | | | | | template file. ;) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8761 89ea8834-ac86-4346-8a33-228a782c2dd0
| * change conditional enclosements in template engineMeik Sievertsen2008-08-011-0/+53
| | | | | | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8739 89ea8834-ac86-4346-8a33-228a782c2dd0
| * Okay. Frozen, we never said anything about it being permafrost. Also, this ↵Henry Sudhof2008-07-281-3/+3
| | | | | | | | | | | | is not 100% tested, expect troubel with store_db (I'm waiting for the bug reports) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8697 89ea8834-ac86-4346-8a33-228a782c2dd0
* | [ticket/9556] Drop php closing tags, add trailing newlineIgor Wiedler2010-11-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Closing tags converted using Oleg's script. remove-php-end-tags.py -a . Trailing newlines added using the following where $ext is file extension. find . -type f -name "*.$ext" -print | xargs printf "e %s\nw\n" | ed -s; Extensions: php, css, html, js, xml. PHPBB3-9556
* | Copy 3.0.x branch to trunkMeik Sievertsen2009-10-041-0/+814
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@10211 89ea8834-ac86-4346-8a33-228a782c2dd0
* | relocate some filesMeik Sievertsen2008-12-241-869/+0
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9225 89ea8834-ac86-4346-8a33-228a782c2dd0
* | fix tiny typos in r9087Chris Smith2008-12-021-2/+2
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9158 89ea8834-ac86-4346-8a33-228a782c2dd0
* | merge in r9145Chris Smith2008-12-011-1/+1
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9147 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Clear the stat cache of cache files after writing themChris Smith2008-12-011-0/+2
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9143 89ea8834-ac86-4346-8a33-228a782c2dd0
* | - Add template variable S_BLOCK_NAMEChris Smith2008-11-251-1/+14
| | | | | | | | | | | | | | | | - Modify template::alter_block_array() so it supports modification of nested blocks - Add (incomplete) tests for template::alter_block_array() git-svn-id: file:///svn/phpbb/trunk@9116 89ea8834-ac86-4346-8a33-228a782c2dd0
* | - Make a start on completing the phpDoc comments for the template engineChris Smith2008-11-241-12/+54
| | | | | | | | | | | | | | | | - Tidy template engine code, mainly PHP5 stuff, made some methods void instead of just returning true - Add tests for the remaining untested compilation code git-svn-id: file:///svn/phpbb/trunk@9115 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Fix a bug we inherited from Smarty a long time agoChris Smith2008-11-241-2/+2
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9109 89ea8834-ac86-4346-8a33-228a782c2dd0
* | S_NUM_ROWS gives you the number of rows in a blockChris Smith2008-11-231-0/+8
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9098 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Why did I not do it this way to begin with :)Chris Smith2008-11-231-32/+38
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9097 89ea8834-ac86-4346-8a33-228a782c2dd0
* | - Deprecate S_ROW_COUNT use S_ROW_NUMChris Smith2008-11-221-7/+51
| | | | | | | | | | | | | | | | | | - S_ROW_NUM, S_FIRST_ROW, S_LAST_ROW are now using internal template engine variables saving memory - Other small changes - Update of template tests git-svn-id: file:///svn/phpbb/trunk@9087 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Mini bug fix for UNDEFINEChris Smith2008-10-151-1/+1
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9016 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Merge chmod changes into trunkMeik Sievertsen2008-08-221-1/+1
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@8781 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Extracted the IF code to make a generic parsing function,David M2008-08-031-99/+15
| | | | | | | | | | | | | | | | | | now DEFINE is nicely integrated and we can even do things like <!-- BEGIN foo($FOO, $BAR) --> if we *really* wanted to do so. git-svn-id: file:///svn/phpbb/trunk@8742 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Compile things like {$FOO} again.Marek A. R2008-08-011-1/+1
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@8741 89ea8834-ac86-4346-8a33-228a782c2dd0
* | change conditional enclosements in template engineMeik Sievertsen2008-08-011-0/+53
| | | | | | | | | | | | oh... thank you very much brainy. :) git-svn-id: file:///svn/phpbb/trunk@8740 89ea8834-ac86-4346-8a33-228a782c2dd0
* | - Make "<?" and/or "<%" in template files not break the compiled template.Marek A. R2008-07-281-7/+14
| | | | | | | | | | | | - Enable <!-- PHP --> and <!-- INCLUDEPHP --> again. git-svn-id: file:///svn/phpbb/trunk@8699 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Added the locking code back in... Marek, feel free to reorder it as you see fit.David M2008-07-281-1/+3
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@8687 89ea8834-ac86-4346-8a33-228a782c2dd0
* | - Optimise compiled template code.Marek A. R2008-07-271-42/+51
| | | | | | | | | | | | - Improve template filter. git-svn-id: file:///svn/phpbb/trunk@8685 89ea8834-ac86-4346-8a33-228a782c2dd0
* | - Add some necessary evilMarek A. R2008-07-251-4/+54
| | | | | | | | | | | | - Template DEFINE variables can now be assigned other variables git-svn-id: file:///svn/phpbb/trunk@8683 89ea8834-ac86-4346-8a33-228a782c2dd0
* | git-svn-id: file:///svn/phpbb/trunk@8680 89ea8834-ac86-4346-8a33-228a782c2dd0Marek A. R2008-07-121-6/+21
| |
* | ...Marek A. R2008-06-131-1/+2
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@8654 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Changed the template compiler to work on streams. Should be a bit faster.Marek A. R2008-06-131-192/+139
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@8653 89ea8834-ac86-4346-8a33-228a782c2dd0
* | ok... i hope i haven't messed too much with the code and everything is still ↵Meik Sievertsen2008-05-291-3/+1
| | | | | | | | | | | | | | | | | | | | working. Changes: - Ascraeus now uses constants for the phpbb root path and the php extension. This ensures more security for external applications and modifications (no more overwriting of root path and extension possible through insecure mods and register globals enabled) as well as no more globalizing needed. - A second change implemented here is an additional short-hand-notation for append_sid(). It is allowed to omit the root path and extension now (for example calling append_sid('memberlist')) - in this case the root path and extension get added automatically. The hook is called after these are added. git-svn-id: file:///svn/phpbb/trunk@8572 89ea8834-ac86-4346-8a33-228a782c2dd0
* | oh boy...David M2008-01-031-18/+18
|/ | | | | | | - Migrate code base to PHP 5.1+ git-svn-id: file:///svn/phpbb/trunk@8295 89ea8834-ac86-4346-8a33-228a782c2dd0
* dumdidum... sorry. ;)Meik Sievertsen2007-10-051-3/+4
| | | | git-svn-id: file:///svn/phpbb/trunk@8146 89ea8834-ac86-4346-8a33-228a782c2dd0
* - more accurate commentDavid M2007-10-041-10/+3
| | | | git-svn-id: file:///svn/phpbb/trunk@8137 89ea8834-ac86-4346-8a33-228a782c2dd0
* ok, the nasty one then... :/Meik Sievertsen2007-08-171-5/+5
| | | | git-svn-id: file:///svn/phpbb/trunk@8044 89ea8834-ac86-4346-8a33-228a782c2dd0
* ok, we are not able to cover all possibilities (IF A eq (B & C)) for ↵Meik Sievertsen2007-08-171-54/+1
| | | | | | example... or IF A == B... this would require a lot more code we do not see the need for. git-svn-id: file:///svn/phpbb/trunk@8043 89ea8834-ac86-4346-8a33-228a782c2dd0
* test adding isset() calls to if expressions. :oMeik Sievertsen2007-08-171-6/+59
| | | | git-svn-id: file:///svn/phpbb/trunk@8042 89ea8834-ac86-4346-8a33-228a782c2dd0