Commit Graph

136 Commits

Author SHA1 Message Date
Uwe.Tews
550a416209 - allow multiple template inheritance branches starting in subtemplates 2010-09-08 17:40:00 +00:00
monte.ohrt
21d507a5cb fix formatting 2010-08-17 15:39:51 +00:00
Uwe.Tews
ad921936b0 - remove exception_handler property from Smarty class
- added Smarty's own exceptions SmartyException and SmartyCompilerException
2010-08-13 10:39:51 +00:00
Uwe.Tews
f319a15cfc - bugfix in templateExists() method 2010-07-22 19:11:38 +00:00
Uwe.Tews
396d7aa8a5 - bugfix support of script files relative to trusted_dir 2010-07-07 22:08:10 +00:00
Uwe.Tews
ccc0e1b6c8 - added $smarty->register->templateClass() and $smarty->unregister->templateClass() methods for supporting static classes with namespace 2010-06-24 20:30:19 +00:00
Uwe.Tews
b534be00da - replace internal get_time() calls with standard PHP5 microtime(true) calls 2010-06-20 14:37:47 +00:00
Uwe.Tews
d7a629df0c - change default of $debugging_ctrl to 'NONE'
- optimization of compiled code of {foreach} and {for} loops
- change of compiler for config variables
2010-04-28 20:30:27 +00:00
Uwe.Tews
b52e9f1ac8 - compile locking by touching old compiled files to avoid concurrent compilations 2010-03-31 16:23:01 +00:00
Uwe.Tews
24d5ad78f3 - bugfix allow array definitions as modifier parameter
- bugfix observe compile_check property when loading config files
- added the template object as third filter parameter
2010-03-29 15:41:01 +00:00
Uwe.Tews
2e27c294b3 - bugfix on template inheritance when calling multiple child/parent relations 2010-03-23 16:51:48 +00:00
Uwe.Tews
5e2bf86e66 - bugfix on uninitialized properties in smarty_internal_template
- bugfix on $smarty->disableSecurity()
2010-03-09 21:11:21 +00:00
monte.ohrt
374d801d51 remove comment 2010-03-08 15:16:35 +00:00
Uwe.Tews
3059df16aa - cache modified check implemented 2010-02-26 12:58:36 +00:00
monte.ohrt
7c9aed9299 remove debug code 2010-02-20 23:22:55 +00:00
monte.ohrt
591df13a26 fix __get() return value, and set properties before returning 2010-02-20 21:48:19 +00:00
Uwe.Tews
9afda44ebf - added missing _plugins property in smarty.class.php 2010-02-14 16:42:39 +00:00
Uwe.Tews
43ae585e5e - added $smarty->_tag_stack for tracing block tag hierarchy 2010-02-09 21:20:17 +00:00
Uwe.Tews
7bfa54f067 - bugfix on changes of 05/02/2010 2010-02-07 22:21:37 +00:00
monte.ohrt
9af377d7d3 major API update 2010-02-06 22:11:10 +00:00
Uwe.Tews
3c88d12e00 - added test that $_SERVER['SCRIPT_NAME'] does exist in Smarty.class.php 2010-01-25 19:02:34 +00:00
Uwe.Tews
e89c15d65d - new method $smarty->createData([$parent]) for creating a data object (required for bugfixes below)
- bugfix config_load() method now works also on a data object
- bugfix get_config_vars() method now works also on a data and template objects
- bugfix clear_config() method now works also on a data and template objects
2010-01-22 16:39:30 +00:00
Uwe.Tews
d1969d6f56 - use sha1() for filepath encoding
- updates on nocache_hash handling
2009-12-29 20:12:11 +00:00
monte.ohrt
55d50efb1d set default cache lifetime to 3600, BC with Smarty 2 2009-12-28 03:22:57 +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
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
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
9f505c1c23 - lexer/parser optimizations on quoted strings 2009-11-15 19:05:53 +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
7af23e23b6 - changed debugging handling 2009-11-11 22:09:06 +00:00
Uwe.Tews
9f77baac25 - new SMARTY_SPL_AUTOLOAD constant to control the autoloader option 2009-11-09 17:26:59 +00:00
Uwe.Tews
6a9924162b - lexer/parser fix for null,true,false as array index 2009-11-06 17:40:20 +00:00
Uwe.Tews
b7876e55ec - register only smartyAutoload 2009-11-06 16:51:46 +00:00
Uwe.Tews
94b80e892b - renamed function names of autoloaded Smarty methods to Smarty_Method_....
- new security_class property (default is Smarty_Security)
2009-11-03 20:38:38 +00:00
monte.ohrt
4babb2e550 add smarty property, fix typo 2009-11-03 15:51:29 +00:00
Uwe.Tews
67af69cbb1 - throw exception on illegal Smarty() constructor calls 2009-11-02 23:04:10 +00:00
monte.ohrt
b48f460a63 fix spl_autoload when autoloaders exist 2009-11-01 16:26:06 +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
monte.ohrt
6efbb3ee58 fix typo 2009-10-29 14:02:21 +00:00
monte.ohrt
466805978c add SVN Id 2009-10-29 13:39:02 +00:00
monte.ohrt
1374718163 add $Rev$ to version number 2009-10-29 13:37:10 +00:00
Uwe.Tews
5fe16d23f0 - fixed file dependency for config files
- some code optimizations
2009-10-21 15:19:00 +00:00
Uwe.Tews
4a68612a5a - added {$foo++}{$foo--} syntax
- buxfix changed PHP "if (..):" to "if (..){" because of possible bad code when concenating PHP tags
- autoload Smarty internal classes
2009-10-21 09:49:43 +00:00
Uwe.Tews
5be5d4cf28 - do not recompile evaluated templates if reused just with other data
- recompile config files when config properties did change
- some lexer/parser otimizations
2009-10-13 19:44:38 +00:00
Uwe.Tews
585c115c94 - internal changes to improve performance
- fix registering of filters for classes
2009-10-04 18:12:30 +00:00
Uwe.Tews
84a1428bf7 - removed default timezone setting 2009-10-01 17:09:49 +00:00
Uwe.Tews
898819dd2b - reactivated PHP resource for simple PHP templates. Must set allow_php_templates = true to enable
- {PHP} tag can be enabled by allow_php_tag = true
2009-09-30 22:03:41 +00:00
Uwe.Tews
56e01e8a45 - allow Smarty2 and Smarty3 parameter ordering on display, fetch and create template 2009-09-29 20:36:29 +00:00