Commit Graph

63 Commits

Author SHA1 Message Date
messju
840b968bab removed merging of $smarty->template_dir into $smarty->secure_dir
the resource_base_path is considerd secure instead. this change should
have absolutely no impact on smarty's security's behaviour
2004-03-18 19:36:36 +00:00
messju
725da561e5 fixed little bug that prevented plugins filepaths that are found in
php's include_path (and not in one of the plugins_dirs) from being
cached in the internal plugins-filepath-cache
2004-03-11 18:16:29 +00:00
messju
2c2c8b12b9 smarty_resource_*_secure got &$smarty passed errornously as 3rd
parameter and not as 2nd. this is fixed.
2004-02-24 00:10:55 +00:00
messju
6950893505 added caching of requested paths to smarty_core_assemble_plugin_filepath() 2004-01-08 13:13:04 +00:00
messju
bb0771505a thought again about my latest commit and backed it out. 2003-12-01 11:29:53 +00:00
messju
2c290ac4cf fix root-dir-handling on windows filepath 2003-12-01 09:09:20 +00:00
messju
690e0a9e1c silence occasional warnings of open_basedir- and
safe_mode-restrictions in core.get_include_path.php
2003-11-24 14:56:02 +00:00
messju
1fdd2149ee avoid touch()-ing of recently unlinked files by touch()-ing the
tempfile before rename instead of touch()-ing the resulting file after
rename.
2003-11-23 08:37:43 +00:00
messju
9d4a0bcb07 fix handling of assign inside {insert}-tags 2003-11-11 22:46:13 +00:00
messju
1af690d45c added $exp_time-parameter 2003-11-06 17:16:32 +00:00
messju
2566246240 added $exp_time-parameter of clear_cache() and clear_all_cache() to
cache_handler_func.
2003-11-06 16:53:39 +00:00
messju
7f6ff2f41f fix handling of trailing-slashes in open_basedir in
smarty_core_create_dir_structure()
2003-10-23 07:50:55 +00:00
messju
9b3ca8956e move check for template_dir in secure_dir-array into core.is_secure.php
this makes template_exists() work correctly with security=true even if
template_dir is not inside the secure_dir-array
2003-10-12 22:19:32 +00:00
messju
f8db1a7ce8 removed tabs from the main and the core/*.php files 2003-10-11 08:55:53 +00:00
messju
6988b4747e backed out _smarty_cached_paths-file-handling 2003-09-15 14:30:57 +00:00
messju
7c38847c69 fixed clear_compiled_tpl with explicit $tpl_file given
fixed return value of smarty_core_rm_auto() + Smarty::_unlink()
2003-09-15 12:55:06 +00:00
messju
a566b01a12 removed auto-filenames from path-cache. merged assemble_auto_filename
back into Smarty::_get_auto_filename()
2003-09-14 13:37:15 +00:00
messju
ad7803b89a remove Smarty::_plugin_implementation_exists() - use php's native
is_callable()
2003-09-12 13:40:53 +00:00
messju
3c52a9aa7e fixed PHPDocumentor-comments (thanks Konstantin) 2003-08-29 08:51:25 +00:00
messju
f210e32d1e made rmdir a bit more optimistic. especially it now removes
directories correctly that where created accidently by "safe_mode=On
&& $use_sub_dirs=true"
2003-08-29 08:49:51 +00:00
messju
50d490fca5 fixed bug in traversal of $smarty->plugins_dir-array in
smarty_core_assemble_plugin_filepath(). the first matching plugin in
the path should be used, not the last one.
2003-08-22 16:15:47 +00:00
messju
786d110c89 discard $_cache_info when the cache should be regenerated 2003-08-22 14:02:15 +00:00
messju
09aa653a75 fixed unnecessary load of source in template_exists() and the
compile-check of smarty_core_read_cache_file()
2003-08-18 10:17:28 +00:00
messju
79f491971a fixed timestamp-check of config-files in smarty_core_read_cache_file() 2003-08-14 16:44:03 +00:00
messju
2319787c5f fixed problem with vars as attributes in {include_php} 2003-08-13 16:37:12 +00:00
messju
d226b07741 synced secure_dir-checking with trusted_dir-checking 2003-08-09 08:47:10 +00:00
messju
29f5d24082 tightenend path checking in smarty_core_is_secure() 2003-08-09 08:08:39 +00:00
messju
f15be25a42 added optional parameter $cache_attrs to register_function() and
register_block(). $cache_attrs is an array containing attribute- names
that should be cached on calls to functions that have $cacheable set
to false.
2003-08-06 11:35:59 +00:00
messju
c08ab9bb8e fixed bug that occurred when using the same not-cacheable plugin in multiple includes 2003-08-05 18:27:14 +00:00
messju
6c9fa0cbd2 moved _smarty_include() back into Smarty.class.php 2003-07-29 08:26:22 +00:00
messju
f9490bc715 prevent unnecessary calls to _read_file() in _is_compiled()
converted method-call to internal function-call in smarty_core_load_plugins()
2003-07-29 07:15:44 +00:00
messju
4eec83aec8 weakend race-condition and removed bogus error-message caused by that
in smarty_core_create_dir_structure().
2003-07-25 12:40:12 +00:00
messju
f66b646479 moved _fetch_resource_info and _parse_resource_name back into Smarty.class.php
renamed smarty_include and smarty_eval wrappers to _include and _eval
2003-07-23 16:14:47 +00:00
messju
48d8b66ae1 improved checking of compiled_include against cached-template with non-cached-chunks 2003-07-17 19:25:22 +00:00
messju
84322ae6b3 fixed too short open-tag 2003-07-17 19:22:47 +00:00
messju
38ed839cce fixed indentiation, silenced occasional warning 2003-06-30 15:48:26 +00:00
messju
f866f04d66 libs/plugins/function.html_image.php 2003-06-30 15:41:25 +00:00
messju
db4af8295e extincting $this out of smarty_core_*-functions 2003-06-30 00:08:28 +00:00
messju
135bc2fad8 removed $this from smarty_include and smarty_include_php
added cleaner handling of $this to {eval}
2003-06-29 22:57:33 +00:00
messju
0d2409b7aa fixed inlude_once-call 2003-06-29 12:25:03 +00:00
mohrt
674722e332 fix typo, fix write_cache_paths logic 2003-06-25 22:29:03 +00:00
mohrt
5ae5a6f576 fix SMARTY_COMPILE_DIR_SEP problem, make local var 2003-06-25 21:50:34 +00:00
mohrt
769008b763 fixed cache_paths bug, simplified filename assembly logic 2003-06-24 15:45:02 +00:00
mohrt
5980723e09 make cache_path per resource, fix a couple directory path issues 2003-06-23 21:31:32 +00:00
messju
2eb044094c fixed bug in write_compiled_include 2003-06-23 16:16:58 +00:00
messju
b7c6a9394b fixed warning 2003-06-23 11:21:22 +00:00
messju
71eda49023 fix in compiled-include-handling 2003-06-22 22:10:10 +00:00
messju
81bf74f327 started moving from $this to $smarty in core.*.php 2003-06-22 03:13:25 +00:00
mohrt
1bd3c2f992 fix more dir paths 2003-06-21 17:39:15 +00:00
mohrt
9526d1ed42 fix filepaths to core files to use DIRECTORY_SEPARATOR 2003-06-21 17:35:15 +00:00