Commit Graph

72 Commits

Author SHA1 Message Date
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
Uwe.Tews
1af2723de9 - changed {php} tag handling
- removed support of Smarty::instance()
- removed support of PHP resource type
- improved execution speed of {foreach} tags
- fixed bug in {section} tag
2009-09-29 16:23:35 +00:00
Uwe.Tews
5bf063d2cc - fixed error in is_cached 2009-09-20 02:02:44 +00:00
Uwe.Tews
0e68cdd9d2 - replace internal "eval()" calls by "include" during rendering process
- speed improvment for templates which have included subtemplates
    the compiled code of included templates is merged into the compiled code of the parent template
- added logical operator "xor" for {if} tag
- changed parameter ordering for Smarty2 BC
    fetch($template, $cache_id = null, $compile_id = null, $parent = null)
    display($template, $cache_id = null, $compile_id = null, $parent = null)
    createTemplate($template, $cache_id = null, $compile_id = null, $parent = null)
- property resource_char_set is now replaced by constant SMARTY_RESOURCE_CHAR_SET
- fixed handling of classes in registered blocks
- speed improvement of lexer on text sections
2009-09-19 13:22:32 +00:00
Uwe.Tews
1cdb112388 - bugfix 2009-09-01 22:04:30 +00:00
Uwe.Tews
5563fc9fd5 - dropped nl2br as plugin
- added '<>' as comparission operator in {if} tags
- cached caching_lifetime property to cache_liftime for backward compatibility with Smarty2.
  {include} optional attribute is also now cache_lifetime
- fixed trigger_error methode (moved into Smarty class)
- version is now  Beta!!!
2009-09-01 21:11:42 +00:00
Uwe.Tews
45ba48f2b6 - some speed optimizations on loading internal plugins 2009-08-30 18:10:01 +00:00
monte.ohrt
770ef89611 remove built-in exception handling, add DS as shorthand to DIRECTORY_SEPARATOR 2009-08-29 22:57:29 +00:00
Uwe.Tews
bfefb8e017 - implemented caching of registered Resources
- new property 'auto_literal'. if true(default)  '{ ' and ' }' interpreted as literal, not as Smarty delimiter
2009-08-29 16:29:52 +00:00
Uwe.Tews
8c48521260 - fixed wrong case at require_once 2009-08-27 16:02:44 +00:00
Uwe.Tews
4331452b8e - implemented registered resources as in Smarty2. NOTE: caching does not work yet
- new property 'force_cache'. if true it forces the creation of a new cache file
- fixed modifiers on arrays
- some speed optimization on loading internal classes
2009-08-27 14:59:28 +00:00
Uwe.Tews
e759f76661 - bugfix - the output of plugins was not cached
- added global variable SCRIPT_NAME
2009-08-24 19:26:31 +00:00
Uwe.Tews
eef7400f55 - definition of template class name moded in internal.templatebase.php
- whitespace parser changes
2009-08-18 16:53:33 +00:00
Uwe.Tews
d2d8c8925b - removed all internal calls of Smarty::instance()
- fixed code in double quoted strings
2009-08-08 17:28:23 +00:00
monte.ohrt
3463a3a090 add SMARTY_EXCEPTION_HANDLER constant to determine if internal exception handling is enabled 2009-07-03 14:48:38 +00:00