aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_template.php
Commit message (Collapse)AuthorAgeFilesLines
* 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
* some fixes...Meik Sievertsen2007-06-301-2/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@7813 89ea8834-ac86-4346-8a33-228a782c2dd0
* allow constructs like <!-- ELSE -->0<!-- ENDIF --> (the 0 was replaced by '' ↵Meik Sievertsen2007-04-201-1/+1
| | | | | | due to the empty() checks on $trim_text_check) git-svn-id: file:///svn/phpbb/trunk@7377 89ea8834-ac86-4346-8a33-228a782c2dd0
* some fixesMeik Sievertsen2007-04-061-1/+18
| | | | git-svn-id: file:///svn/phpbb/trunk@7286 89ea8834-ac86-4346-8a33-228a782c2dd0
* - generate fewer opcodes, make a smaller cache, a bit more readableDavid M2007-01-271-2/+2
| | | | git-svn-id: file:///svn/phpbb/trunk@6935 89ea8834-ac86-4346-8a33-228a782c2dd0
* - fix some oddities (doubled spaces for example)Meik Sievertsen2007-01-261-2/+2
| | | | | | | | | | - changed the way make_forum_select() is returning the forum list - now including skipped forums but being disabled. This should make identifying the correct forum much more easier. - Changed some permission namings based on suggestions by the community - Tried to comply to the permission field ordering within the language files while displaying permission sets. Hopefully it's worth the additional processing time. - Disable submit buttons after clicking for installation and conversions. git-svn-id: file:///svn/phpbb/trunk@6930 89ea8834-ac86-4346-8a33-228a782c2dd0
* fixing some bugs, most being submitted grammatical/spelling errors.Meik Sievertsen2007-01-211-2/+2
| | | | git-svn-id: file:///svn/phpbb/trunk@6915 89ea8834-ac86-4346-8a33-228a782c2dd0
* - fixing some bugsMeik Sievertsen2007-01-201-0/+3
| | | | | | | | - removing utf8 characters from email files (has been discussed internally, you guys know why) - making sure some opendir calls are checked before calling readdir. git-svn-id: file:///svn/phpbb/trunk@6912 89ea8834-ac86-4346-8a33-228a782c2dd0
* #6596David M2006-12-261-11/+12
| | | | git-svn-id: file:///svn/phpbb/trunk@6812 89ea8834-ac86-4346-8a33-228a782c2dd0
* - quite a few optimizations to the template engine. bitwise arithmatic is ↵David M2006-12-231-53/+89
| | | | | | | | | used to check odd/even, usage of ref to the root template variables should reduce the number of hash lookups needed, usage of refs within loops should reduce the amount of hash lookups, incrementing vars were turned from class variables to regular variables, cache now uses preincrementing variables instead of postincrementing variables, some regex were optimized/trimmed - a bug fix somewhere in there... git-svn-id: file:///svn/phpbb/trunk@6796 89ea8834-ac86-4346-8a33-228a782c2dd0
* - some fixesMeik Sievertsen2006-11-101-12/+12
| | | | | | | - added script for easy adjustement of username_clean column within the users table (please see the note i added to the utf8_clean_string() function) git-svn-id: file:///svn/phpbb/trunk@6561 89ea8834-ac86-4346-8a33-228a782c2dd0
* - fixing a bug i am unsure about when it occurs (but it occurs). The ↵Meik Sievertsen2006-09-301-1/+1
| | | | | | | | | symptoms are broken template cache files if after removing unnecessary php opening/closing tags result in statements being syntactially incorrect. - added real syncing to forums acp (not only forum statistics rebuild) git-svn-id: file:///svn/phpbb/trunk@6419 89ea8834-ac86-4346-8a33-228a782c2dd0
* - added confirmation to removing bbcodesMeik Sievertsen2006-09-281-1/+3
| | | | | | | | | | - added optional MX and DNSBL checks - added backtrace (triggering sql error) on error within sql_in_set as well as making sure it is handling an array - let users having f_list access to a forum actually see the forum without a topic list and not displaying an error message - this allows for giving people access to subforums but not the parent forum without the need to add the (sub-)forum to the index. - some additional bugfixes git-svn-id: file:///svn/phpbb/trunk@6414 89ea8834-ac86-4346-8a33-228a782c2dd0
* the tokenizer is buggy across several versions of PHP. The regex that is ↵David M2006-09-231-67/+8
| | | | | | always used complies strictly with what the internal lexer uses, we are safe. git-svn-id: file:///svn/phpbb/trunk@6384 89ea8834-ac86-4346-8a33-228a782c2dd0
* some updates. Also adjusted the utf tools and normalizer more to our coding ↵Meik Sievertsen2006-08-221-12/+12
| | | | | | guidelines. git-svn-id: file:///svn/phpbb/trunk@6312 89ea8834-ac86-4346-8a33-228a782c2dd0
* more efficient + fixing an oopsDavid M2006-08-191-2/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@6303 89ea8834-ac86-4346-8a33-228a782c2dd0
* The regex used here are more or less identical to those used internally by ↵David M2006-08-191-11/+6
| | | | | | the PHP lexer (ok, ok, they are a *little* bit more optimized), we should not need to call the tokenizer at all now... git-svn-id: file:///svn/phpbb/trunk@6302 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fixed: oops, forgot ASP-like tagsLudovic Arnaud2006-07-231-3/+3
| | | | | | | | Fixed: <?! was not escaped, despite being valid PHP (cvstats++) git-svn-id: file:///svn/phpbb/trunk@6207 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fixed: bug #3352 (function token_get_all() is missing)Ludovic Arnaud2006-07-231-0/+33
| | | | git-svn-id: file:///svn/phpbb/trunk@6206 89ea8834-ac86-4346-8a33-228a782c2dd0
* could have been a copy&paste error, but the expression is also removing the ↵Meik Sievertsen2006-07-201-2/+3
| | | | | | </script> tag from valid script blocks (javascript for example). :) git-svn-id: file:///svn/phpbb/trunk@6195 89ea8834-ac86-4346-8a33-228a782c2dd0
* another expression for grabbing php code in templates provided by davidMeik Sievertsen2006-07-201-1/+55
| | | | | | | also included "the ultimate solution" provided by ludovic (only added a check for T_OPEN_TAG_WITH_ECHO git-svn-id: file:///svn/phpbb/trunk@6194 89ea8834-ac86-4346-8a33-228a782c2dd0