Register
phpBB.com Wiki · Home Projects Help

root / trunk / phpBB / includes / functions_template.php

functions_template.php

View | Annotate | Download (19.1 KB)

# Date Author Comment
9016 View | Annotate 10/15/2008 03:47 AM toonarmy

Mini bug fix for UNDEFINE

8781 View | Annotate 08/22/2008 03:32 PM acydburn

Merge chmod changes into trunk

8742 View | Annotate 08/03/2008 08:11 PM davidmj

Extracted the IF code to make a generic parsing function,
now DEFINE is nicely integrated and we can even do things
like <!- BEGIN foo($FOO, $BAR) -> if we really wanted
to do so.

8741 View | Annotate 08/01/2008 05:13 PM aptx

Compile things like {$FOO} again.

8740 View | Annotate 08/01/2008 04:36 PM acydburn

change conditional enclosements in template engine
oh… thank you very much brainy. :)

8699 View | Annotate 07/28/2008 05:01 PM aptx

- Make ”<?” and/or ”<%” in template files not break the compiled template.
- Enable <!- PHP -> and <!- INCLUDEPHP -> again.

8687 View | Annotate 07/28/2008 03:16 AM davidmj

Added the locking code back in… Marek, feel free to reorder it as you see fit.

8685 View | Annotate 07/28/2008 12:08 AM aptx

- Optimise compiled template code.
- Improve template filter.

8683 View | Annotate 07/25/2008 07:24 PM aptx

- Add some necessary evil
- Template DEFINE variables can now be assigned other variables

8680 View | Annotate 07/12/2008 08:22 PM aptx
8654 View | Annotate 06/13/2008 08:12 PM aptx

...

8653 View | Annotate 06/13/2008 07:57 PM aptx

Changed the template compiler to work on streams. Should be a bit faster.

8572 View | Annotate 05/29/2008 02:25 PM acydburn

ok… i hope i haven’t messed too much with the code and everything is still 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.

8477 View | Annotate 03/29/2008 01:08 AM naderman

Go away evil carriage returns\!

8295 View | Annotate 01/03/2008 06:00 PM davidmj

oh boy…
- Migrate code base to PHP 5.1+

8146 View | Annotate 10/05/2007 04:30 PM acydburn

dumdidum… sorry. ;)

8137 View | Annotate 10/04/2007 06:56 PM davidmj

- more accurate comment

8044 View | Annotate 08/17/2007 11:29 PM acydburn

ok, the nasty one then… :/

8043 View | Annotate 08/17/2007 11:10 PM acydburn

ok, we are not able to cover all possibilities (IF A eq (B & C)) for example… or IF A == B… this would require a lot more code we do not see the need for.

8042 View | Annotate 08/17/2007 10:47 PM acydburn

test adding isset() calls to if expressions. :o

7813 View | Annotate 06/30/2007 05:04 PM acydburn

some fixes…

7377 View | Annotate 04/20/2007 11:09 AM acydburn

allow constructs like <!- ELSE ->0<!- ENDIF -> (the 0 was replaced by ’’ due to the empty() checks on $trim_text_check)

7286 View | Annotate 04/06/2007 04:03 PM acydburn

some fixes

6935 View | Annotate 01/27/2007 02:36 PM davidmj

- generate fewer opcodes, make a smaller cache, a bit more readable

6930 View | Annotate 01/26/2007 05:09 PM acydburn

- fix some oddities (doubled spaces for example)
- 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.

6915 View | Annotate 01/21/2007 07:33 PM acydburn

fixing some bugs, most being submitted grammatical/spelling errors.

6912 View | Annotate 01/20/2007 06:58 PM acydburn

- fixing some bugs
- removing utf8 characters from email files (has been discussed internally, you guys know why)
- making sure some opendir calls are checked before calling readdir.

6812 View | Annotate 12/26/2006 02:56 PM davidmj

#6596

6796 View | Annotate 12/23/2006 07:27 PM davidmj

- quite a few optimizations to the template engine. bitwise arithmatic is 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…

6561 View | Annotate 11/10/2006 02:49 PM acydburn

- some fixes
- 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)

6419 View | Annotate 09/30/2006 04:58 PM acydburn

- fixing a bug i am unsure about when it occurs (but it occurs). The 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)

6414 View | Annotate 09/28/2006 05:04 PM acydburn

- added confirmation to removing bbcodes
- 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

6384 View | Annotate 09/23/2006 04:46 AM davidmj

the tokenizer is buggy across several versions of PHP. The regex that is always used complies strictly with what the internal lexer uses, we are safe.

6312 View | Annotate 08/22/2006 11:26 PM acydburn

some updates. Also adjusted the utf tools and normalizer more to our coding guidelines.

6303 View | Annotate 08/19/2006 04:36 PM davidmj

more efficient + fixing an oops

6302 View | Annotate 08/19/2006 06:42 AM davidmj

The regex used here are more or less identical to those used internally by the PHP lexer (ok, ok, they are a little bit more optimized), we should not need to call the tokenizer at all now…

6207 View | Annotate 07/24/2006 12:38 AM ludovic_arnaud

Fixed: oops, forgot ASP-like tags
Fixed: <?! was not escaped, despite being valid PHP
(cvstats++)

6206 View | Annotate 07/24/2006 12:16 AM ludovic_arnaud

Fixed: bug #3352 (function token_get_all() is missing)

6195 View | Annotate 07/20/2006 08:39 PM acydburn

could have been a copy&paste error, but the expression is also removing the tag from valid script blocks (javascript for example). :)

6194 View | Annotate 07/20/2006 07:57 PM acydburn

another expression for grabbing php code in templates provided by david
also included “the ultimate solution” provided by ludovic (only added a check for T_OPEN_TAG_WITH_ECHO

6189 View | Annotate 07/17/2006 05:06 PM acydburn

- fix bug within php code removal expression. Thanks to BenP for reporting it to our security tracker.

6135 View | Annotate 07/01/2006 09:11 PM acydburn

- add additional auth check to the permission roles modules
- 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

6058 View | Annotate 06/13/2006 11:06 PM acydburn

make sure custom profile fields are created correctly on registration (#2225)

6015 View | Annotate 06/06/2006 10:53 PM acydburn

ok, this one is rather large… the most important change:
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.

5947 View | Annotate 05/20/2006 04:49 PM acydburn

character class… character class… character class…

5946 View | Annotate 05/20/2006 04:41 PM acydburn

- allow commenting out on one line:
<!- <!- IF WHATEVER ->
{WHATEVER}:<!
- ENDIF -> ->
bug #1869

(i hope i did not break something :o)

5916 View | Annotate 05/16/2006 07:46 PM acydburn

some changes before i forget…

5894 View | Annotate 05/07/2006 11:44 PM naderman

- added the template editor (doesn’t use a hardcoded list of template 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

5865 View | Annotate 04/29/2006 07:19 PM acydburn

introduce LA_ for addslashing language variables for use in js vars (idea by naderman)

5844 View | Annotate 04/25/2006 05:28 AM davidmj

- Bug #1237

5790 View | Annotate 04/17/2006 03:09 PM acydburn

- clean up marklist calls (global function)
- added new feature: test out others permissions (admin permissions will not be copied)
- changed attachment processing by directly using the template engine
- fixed some attachment related bugs
- additional tiny fixes

5775 View | Annotate 04/08/2006 07:48 PM acydburn

added/changed language strings

5766 View | Annotate 04/08/2006 12:56 PM acydburn

- fix the template error (no headers displayed, wrong ! assignment, wrong check for .loop)

5765 View | Annotate 04/06/2006 07:15 PM acydburn

To all people having their bug status set to fixed: SF pserver CVS access is currently down, therefore the snapshots are still out of date.

- fix a bunch of bugs
- <!- $Id$ -> is no longer allowed in template (.html) files
- changed layout of private message screens (folders are menu items)
- removed unread mode for private messages
- added new feature to template engine – “jump out of loop” or “loop another loop within my loop” :D (will be documented within the coding guidelines)
- added autologin field to sessions
- check session length checks
- added add_log statement to sessions to track session valid to invalid changes if ip/browser change depending on config settings (only debug)
- added multibyte support for various variables (exception at the moment is usernames which needs some discussion)
- hopefully not broke something. :/

5760 View | Annotate 04/05/2006 03:17 AM davidmj

- This should work! :D

5670 View | Annotate 03/19/2006 03:23 PM acydburn

- add our beloved in_phpbb check

5617 View | Annotate 03/10/2006 01:24 AM davidmj

We all make mistakes :D

5566 View | Annotate 02/21/2006 11:32 AM acydburn

- implementing David’s proposed expression changes (some of them already noted within the events CCP)

5422 View | Annotate 01/04/2006 07:37 AM davidmj

- file_get_contents instead of imploding file()s or fread()ing till the maximum filesize
- language and style properly use compression
- language now prompts user for methods
- functions_compress does not need to eval() to get a hex date, instead calls pack()
- A writing method is defined at the end of tar operations only if data has been sent to the archive
- BBCode parser does not have to eval(), it instead uses the regex to loop around the matches

Hopefully nothing broke :-)

5388 View | Annotate 12/28/2005 06:35 PM acydburn

- some changes to browser checking (was the reason for not working logins)
- partly working style acp
- other tiny changes here and there

5331 View | Annotate 12/13/2005 09:58 PM grahamje

Some fixes to the template code
– this handles the case where file caching is used and no cached
version exists

5319 View | Annotate 12/04/2005 09:25 PM acydburn

- some bugfixes
- checking if page_header has been called already
- call correct page footer function
- rewrote avatar gallery
- seperated compilation of template and template functions (new file: functions_template.php)
- added assign_display function to template
- added group management (acp)
- removed admin_groups