Commit Graph

24 Commits

Author SHA1 Message Date
Uwe.Tews
17a8c7f0a2 - bugfix on file dependendcy at template inheritance
- bugfix on nocache code at template inheritance
2010-01-07 19:33:18 +00:00
Uwe.Tews
d287c6b1d9 - bugfix sha1() calculations at extends resource and some general improvments on sha1() handling 2010-01-05 21:10:25 +00:00
Uwe.Tews
a6c2f5f8d4 - internal change on building cache files 2010-01-03 11:53:28 +00:00
Uwe.Tews
4519218f04 - update cached_timestamp at the template object after cache file is written to avoid possible side effects
- use internally always SMARTY_CACHING_LIFETIME_* constants
2010-01-02 12:15:04 +00:00
Uwe.Tews
72219be200 - optimization of generated code for doublequoted strings containing variables
- rewrite of {function} tag handling
  - can now be declared in an external subtemplate
  - can contain nocache sections (nocache_hash handling)
  - can be called in noccache sections (nocache_hash handling)
  - new {call..} tag to call template functions with a variable name {call name=$foo}
- fixed nocache_hash handling in merged compiled templates
2009-12-31 16:38:12 +00:00
Uwe.Tews
7a8e24cfc1 - internal change on merging some data 2009-12-29 22:27:04 +00:00
Uwe.Tews
d1969d6f56 - use sha1() for filepath encoding
- updates on nocache_hash handling
2009-12-29 20:12:11 +00:00
Uwe.Tews
de4957a151 - update for security fixes
- make modifier plugins always trusted
2009-12-28 15:27:13 +00:00
monte.ohrt
f908aa0a27 update cache logic to use secure dynamic cache id 2009-12-28 05:08:45 +00:00
Uwe.Tews
44dd7830dd --- this is a major update with a couple of internal changes ---
- new config file lexer/parser (thanks to Thue Jnaus Kristensen)
- template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen)
- fix on registered plugins with different type but same name
- rewrite of plugin handling (optimized execution speed)
- closed a security hole regarding PHP code injection into cache files
- fixed bug in clear cache handling
- Renamed a couple of internal classes
- code cleanup for merging compiled templates
- couple of runtime optimizations (still not all done)
2009-12-27 15:06:49 +00:00
Uwe.Tews
b2db17992b - bugfix on single quote inside {function} tag 2009-12-12 11:51:07 +00:00
Uwe.Tews
74a20f4650 - removed unneeded lexer code 2009-12-05 15:10:47 +00:00
Uwe.Tews
319f0c88fb - map 'true' to SMARTY_CACHING_LIFETIME_CURRENT for the $smarty->caching parameter 2009-11-30 17:52:13 +00:00
Uwe.Tews
27d3a21fb4 - added cache resource MYSQL plugin 2009-11-27 20:46:56 +00:00
Uwe.Tews
25270df6bd - correct line number on unknown tag error message
- changed {include} compiled code
2009-11-26 22:49:56 +00:00
Uwe.Tews
963b13b0af - fixed configfile parser for text starting with a numeric char
- the default_template_handler_func may now return a filepath to a template source
2009-11-23 16:05:30 +00:00
Uwe.Tews
cc4058c633 - compiled templates are no longer touched with the filemtime of template source 2009-11-19 14:45:04 +00:00
Uwe.Tews
4286ad068b - observe umask settings when setting file permissions
- avoide unneeded cache file creation for subtemplates which did occur in some situations
2009-11-18 17:25:18 +00:00
Uwe.Tews
a63bc0f83b - sanitize compile_id and cache_id (replace illegal chars with _)
- use _dir_perms and _file_perms properties at file creation
- new constant SMARTY_RESOURCE_DATE_FORMAT (default '%b %e, %Y') which is used as default format in modifier date_format
2009-11-17 17:46:03 +00:00
Uwe.Tews
6154717b48 - fixed locaion where outputfilters are running
- fixed config file definitions at EOF
2009-11-14 13:02:48 +00:00
Uwe.Tews
39b25f8db8 - fix on nocache code in child {block} tags 2009-11-12 22:50:48 +00:00
Uwe.Tews
7af23e23b6 - changed debugging handling 2009-11-11 22:09:06 +00:00
Uwe.Tews
05c64b7748 - fixed file dependency for {incude} inside {block} tag
- fixed not compiling on non existing compiled templates when compile_check = false
2009-11-03 18:02:13 +00:00
Uwe.Tews
cf379474fd - change of filenames in sysplugins folder for internal spl_autoload function
- lexer/parser changed for increased compilation speed
2009-10-31 00:44:58 +00:00