Commit Graph

934 Commits

Author SHA1 Message Date
Uwe Tews 1fc2b9ece2 add isset($_smarty_tpl) to avoid errors when unit test runs in separate process 2015-02-08 19:57:14 +01:00
Uwe Tews 1a781b39b1 new feature: security can now control access to static methods and properties
see also NEW_FEATURES.txt
2015-01-22 03:53:01 +01:00
Uwe Tews ec19bc763f - bugfix 'self::' and 'parent::' was interpreted in template syntax as static class 2015-01-21 23:30:37 +01:00
Uwe Tews 8d5fa36a80 - bugfix clearCompiledTemplates(), clearAll() and clear() could try to delete whole drive
at wrong path permissions because realpath() fail (forum 25397)
2015-01-21 22:14:25 +01:00
Uwe Tews 85f24ce413 convert writeFile() to object method to remove a vulnerability 2015-01-21 21:12:00 +01:00
Uwe Tews 7a1df12afa - bugfix clearCompiledTemplates() could try to delete whole drive
at wrong path permissions because realpath() fail (forum 25397)
2015-01-20 22:33:38 +01:00
Uwe Tews 4428d72e6d Update testInstall() and move it into its own class 2015-01-12 22:12:20 +01:00
Uwe Tews 593f984f6a load source, compiled and cache resource manually in normal flow (avoid __get()) 2015-01-07 17:46:12 +01:00
Uwe Tews 466c3ee9f8 Use require_once ; remove unnedded paramter 2015-01-07 16:46:57 +01:00
Uwe Tews 740a583c7c Use require_once 2015-01-07 16:46:03 +01:00
Uwe Tews b3f8ddefd2 remove redundant overloaded methods 2015-01-06 04:42:49 +01:00
Uwe Tews 43f043364f fix case in class name 2015-01-06 01:18:58 +01:00
Uwe Tews 67162324bb check ..._dir property overloading
if $template_dir, $compile_dir, $cache_dir, $config_dir or $plugins_dir properties
are overloaded the setters must be called for required processing
2015-01-05 02:03:24 +01:00
Uwe Tews 2aaa29ad20 reset _is_file_cache 2015-01-04 23:54:11 +01:00
Uwe Tews 7cc981e6a6 revert some unneeded normalization of compiled_dir, cache_dir and plugins_dir 2015-01-04 23:42:22 +01:00
Uwe Tews 111a10bb17 Move some classes into its own files 2015-01-04 05:51:52 +01:00
Uwe Tews d528234a97 Small optimization 2015-01-04 05:51:03 +01:00
Uwe Tews 068da64c99 best defaults for internal resource caching
$resource_caching = false and $template_resource_caching = true

fixed typos
2015-01-04 05:49:38 +01:00
Uwe Tews 66eac7bc2a fix code frame of inline (merged) subtemplate 2015-01-03 21:32:33 +01:00
Uwe Tews 8b71e591c0 some minor speed optimization 2015-01-03 21:27:33 +01:00
Uwe Tews 57620443e9 Optimize constructor 2015-01-03 07:56:03 +01:00
Uwe Tews f236905fed create different compiled templates and config files
Smarty does now automatically detect a change of the $merge_compiled_includes and $escape_html
    property and create different compiled templates files depending on the setting.

    Same applies to config files and the $config_overwrite, $config_booleanize and
    $config_read_hidden properties.
2015-01-03 07:36:07 +01:00
Uwe Tews cfdd53c6b4 restructure config file processing
move code into an extension class
use Smarty_Internal_Template
2015-01-02 22:30:53 +01:00
Uwe Tews 75ad0b4da5 move default template handling into an extesion class 2015-01-02 10:48:07 +01:00
Uwe Tews 15728f6ea3 normalize directory path 2015-01-02 10:22:36 +01:00
Uwe Tews c8712b8b7e update autoloader 2015-01-02 09:12:27 +01:00
Uwe Tews 0a3579f9ca restructure template processing
Code was moved into classes it better belongs to.
This does reduce also Smarty's memory footprint
2015-01-02 09:12:01 +01:00
Uwe Tews 8c1f400c09 remove \r from template source before compiling 2015-01-02 08:25:27 +01:00
Uwe Tews 97e7948e16 fix update of file dependency 2015-01-02 08:20:57 +01:00
Uwe Tews 6f801de283 update buildFilepath() 2015-01-02 06:29:08 +01:00
Uwe Tews c55367d1f6 update buildFilepath() 2015-01-02 06:26:04 +01:00
Uwe Tews 296a88b557 Change class name case because of composer autoloader problems 2015-01-02 06:07:19 +01:00
Uwe Tews 3f08b18170 Correct recompiled check 2015-01-02 01:05:03 +01:00
Uwe Tews 48f66c81c7 rework class Smarty_Template_Cached
- move class Smarty_Template_Cached in its own file
- implement all code for chached template handling in class
2015-01-01 23:53:59 +01:00
Uwe Tews c3aa9994c8 rework source resource handling
- move class Smarty_Template_Source into its own file
- impelement all source processing into the classes it better belongs to
2015-01-01 23:34:29 +01:00
Uwe Tews dd2d24d1d6 rework class Smarty_Template_Compiled
- move class Smarty_Template_Compiled in its own file
- implement all code for compiled template handling in class
2015-01-01 23:28:09 +01:00
Uwe Tews 7c4e5175a4 rework class Smarty_Template_Compiled
- move class Smarty_Template_Compiled in its own file
- implement all code for compiled template handling in class (reverted from commit f6a1349fdb)
2015-01-01 23:15:08 +01:00
Uwe Tews f6a1349fdb rework class Smarty_Template_Compiled
- move class Smarty_Template_Compiled in its own file
- implement all code for compiled template handling in class
2015-01-01 23:11:35 +01:00
Uwe Tews 80bf76cc6e move internal createTemplateCodeFrame() method into an extension class 2015-01-01 22:59:07 +01:00
Uwe Tews e8a77171d3 implement templateId generation as method 2015-01-01 22:27:45 +01:00
Uwe Tews 2f8d4f1dbf missing property 2014-12-31 16:08:36 +01:00
Uwe Tews 0cb8b24055 implement most common stetters as method for better performance 2014-12-31 15:56:59 +01:00
Uwe Tews b013984dfd move properties into classes where they better belong to 2014-12-31 15:44:08 +01:00
Uwe Tews 2687f36849 update autoloader with for special class names 2014-12-31 14:32:47 +01:00
Uwe Tews 47faa63a0e use function_exists('mb_get_info') for setting Smarty::$_MBSTRING
Function mb_split could be overloaded depending on php.ini mbstring.func_overload
2014-12-31 06:07:17 +01:00
Uwe Tews 4b7fba4d88 get config properties via compiler object
- reverting part of earlier change of today
2014-12-30 18:16:51 +01:00
Uwe Tews e351c0123f move some code into Smarty_Internal_Debug class
where it better belongs to
2014-12-30 17:17:15 +01:00
Uwe Tews d3e26fb679 template function call handling 2014-12-30 16:43:42 +01:00
Uwe Tews 1d248d6349 formatting 2014-12-30 16:28:18 +01:00
Uwe Tews 8fe6f14af7 Change class name case because of composer autoloader problems 2014-12-30 16:27:08 +01:00