aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_template.php
Commit message (Collapse)AuthorAgeFilesLines
* [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
* 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
* - fix bug within php code removal expression. Thanks to BenP for reporting ↵Meik Sievertsen2006-07-171-1/+1
| | | | | | it to our security tracker. git-svn-id: file:///svn/phpbb/trunk@6189 89ea8834-ac86-4346-8a33-228a782c2dd0
* - add additional auth check to the permission roles modulesMeik Sievertsen2006-07-011-1/+1
| | | | | | | | | | | | - added new function to return globally used expressions (get_preg_expression($mode)). This should be very helpful in getting wide spread similar checks (regular expressions) to one place reducing the risk of forgetting to change every location if you fix one. ;) We will add additional ones later, at the moment only the email check is retrieved... - added "active module" var to the module class returning the current active module - changed call to image magick - add administrator to global moderators group by default - extend auth_option column a little bit - other bugfixes git-svn-id: file:///svn/phpbb/trunk@6135 89ea8834-ac86-4346-8a33-228a782c2dd0
* make sure custom profile fields are created correctly on registration (#2225)Meik Sievertsen2006-06-131-14/+14
| | | | git-svn-id: file:///svn/phpbb/trunk@6058 89ea8834-ac86-4346-8a33-228a782c2dd0
* ok, this one is rather large... the most important change:Meik Sievertsen2006-06-061-19/+20
| | | | | | | | | re-introduce append_sid: old style continues to work, not a performance hog as it was in 2.0.x -> structure is different apart from this, code cleanage, bug fixing, etc. git-svn-id: file:///svn/phpbb/trunk@6015 89ea8834-ac86-4346-8a33-228a782c2dd0
* character class... character class... character class...Meik Sievertsen2006-05-201-2/+2
| | | | git-svn-id: file:///svn/phpbb/trunk@5947 89ea8834-ac86-4346-8a33-228a782c2dd0
* - allow commenting out on one line:Meik Sievertsen2006-05-201-2/+2
| | | | | | | | | | <!-- <!-- IF WHATEVER --><br /><b>{WHATEVER}:</b><!-- ENDIF --> --> bug #1869 (i hope i did not break something :o) git-svn-id: file:///svn/phpbb/trunk@5946 89ea8834-ac86-4346-8a33-228a782c2dd0
* some changes before i forget...Meik Sievertsen2006-05-161-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@5916 89ea8834-ac86-4346-8a33-228a782c2dd0
* - added the template editor (doesn't use a hardcoded list of template ↵Nils Adermann2006-05-071-6/+5
| | | | | | | | | | filenames for categorisation anymore) - fix some bugs related to storing template files in the database - allow templates stored in subfolders of the /styles/name/template/ folder git-svn-id: file:///svn/phpbb/trunk@5894 89ea8834-ac86-4346-8a33-228a782c2dd0