From 31acfd1ee4a74919949bec1ac5c6e066cb265dce Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 22 Mar 2018 10:22:37 +0900 Subject: [PATCH] Update to Smarty 3.1.30 Keep old 3.1.27 around for testing --- www/Smarty | 2 +- .../plugins/function.html_checkboxes.php | 48 +- .../plugins/function.html_options.php | 28 +- www/smarty-3.1.30/.gitattributes | 22 + www/smarty-3.1.30/.gitignore | 222 ++ www/smarty-3.1.30/.travis.yml | 18 + www/smarty-3.1.30/Autoloader.php | 107 + www/smarty-3.1.30/Smarty.class.php | 1529 +++++++++ www/smarty-3.1.30/SmartyBC.class.php | 455 +++ www/smarty-3.1.30/debug.tpl | 160 + www/smarty-3.1.30/plugins/block.t.php | 120 + .../plugins/block.textformat.php | 112 + .../plugins/function.counter.php | 73 + www/smarty-3.1.30/plugins/function.cycle.php | 105 + www/smarty-3.1.30/plugins/function.fetch.php | 221 ++ .../plugins/function.html_checkboxes.php | 256 ++ .../plugins/function.html_image.php | 164 + .../plugins/function.html_options.php | 210 ++ .../plugins/function.html_radios.php | 232 ++ .../plugins/function.html_select_date.php | 391 +++ .../plugins/function.html_select_time.php | 366 +++ .../plugins/function.html_table.php | 176 + www/smarty-3.1.30/plugins/function.mailto.php | 153 + www/smarty-3.1.30/plugins/function.math.php | 104 + www/smarty-3.1.30/plugins/function.popup.php | 119 + .../plugins/function.popup_init.php | 40 + .../plugins/modifier.capitalize.php | 101 + .../plugins/modifier.date_format.php | 65 + .../plugins/modifier.debug_print_var.php | 112 + www/smarty-3.1.30/plugins/modifier.escape.php | 200 ++ .../plugins/modifier.regex_replace.php | 58 + .../plugins/modifier.replace.php | 34 + .../plugins/modifier.spacify.php | 27 + .../plugins/modifier.truncate.php | 66 + .../plugins/modifiercompiler.cat.php | 29 + .../modifiercompiler.count_characters.php | 32 + .../modifiercompiler.count_paragraphs.php | 27 + .../modifiercompiler.count_sentences.php | 27 + .../plugins/modifiercompiler.count_words.php | 32 + .../plugins/modifiercompiler.default.php | 35 + .../plugins/modifiercompiler.escape.php | 117 + .../plugins/modifiercompiler.from_charset.php | 33 + .../plugins/modifiercompiler.indent.php | 33 + .../plugins/modifiercompiler.lower.php | 31 + .../plugins/modifiercompiler.noprint.php | 21 + .../modifiercompiler.string_format.php | 25 + .../plugins/modifiercompiler.strip.php | 33 + .../plugins/modifiercompiler.strip_tags.php | 29 + .../plugins/modifiercompiler.to_charset.php | 33 + .../plugins/modifiercompiler.unescape.php | 50 + .../plugins/modifiercompiler.upper.php | 29 + .../plugins/modifiercompiler.wordwrap.php | 51 + .../plugins/outputfilter.trimwhitespace.php | 89 + .../plugins/shared.escape_special_chars.php | 34 + .../plugins/shared.literal_compiler_param.php | 36 + .../plugins/shared.make_timestamp.php | 45 + .../plugins/shared.mb_str_replace.php | 55 + .../plugins/shared.mb_unicode.php | 54 + .../plugins/shared.mb_wordwrap.php | 75 + .../variablefilter.htmlspecialchars.php | 19 + .../sysplugins/smarty_cacheresource.php | 220 ++ .../smarty_cacheresource_custom.php | 275 ++ .../smarty_cacheresource_keyvaluestore.php | 507 +++ www/smarty-3.1.30/sysplugins/smarty_data.php | 68 + .../sysplugins/smarty_internal_block.php | 90 + .../smarty_internal_cacheresource_file.php | 220 ++ .../smarty_internal_compile_append.php | 51 + .../smarty_internal_compile_assign.php | 94 + .../smarty_internal_compile_block.php | 247 ++ .../smarty_internal_compile_break.php | 77 + .../smarty_internal_compile_call.php | 89 + .../smarty_internal_compile_capture.php | 112 + .../smarty_internal_compile_config_load.php | 98 + .../smarty_internal_compile_continue.php | 77 + .../smarty_internal_compile_debug.php | 42 + .../smarty_internal_compile_eval.php | 72 + .../smarty_internal_compile_extends.php | 134 + .../smarty_internal_compile_for.php | 170 + .../smarty_internal_compile_foreach.php | 330 ++ .../smarty_internal_compile_function.php | 216 ++ .../sysplugins/smarty_internal_compile_if.php | 208 ++ .../smarty_internal_compile_include.php | 345 ++ .../smarty_internal_compile_include_php.php | 111 + .../smarty_internal_compile_insert.php | 155 + .../smarty_internal_compile_ldelim.php | 40 + .../smarty_internal_compile_make_nocache.php | 64 + .../smarty_internal_compile_nocache.php | 75 + ..._internal_compile_private_block_plugin.php | 123 + ...nternal_compile_private_foreachsection.php | 221 ++ ...ternal_compile_private_function_plugin.php | 74 + ...arty_internal_compile_private_modifier.php | 157 + ..._compile_private_object_block_function.php | 42 + ...ternal_compile_private_object_function.php | 86 + .../smarty_internal_compile_private_php.php | 220 ++ ...ernal_compile_private_print_expression.php | 162 + ...ernal_compile_private_registered_block.php | 72 + ...al_compile_private_registered_function.php | 82 + ...ernal_compile_private_special_variable.php | 126 + .../smarty_internal_compile_rdelim.php | 40 + .../smarty_internal_compile_section.php | 469 +++ .../smarty_internal_compile_setfilter.php | 70 + ...ty_internal_compile_shared_inheritance.php | 46 + .../smarty_internal_compile_while.php | 102 + .../smarty_internal_compilebase.php | 196 ++ .../smarty_internal_config_file_compiler.php | 199 ++ .../smarty_internal_configfilelexer.php | 723 +++++ .../smarty_internal_configfileparser.php | 1038 ++++++ .../sysplugins/smarty_internal_data.php | 243 ++ .../sysplugins/smarty_internal_debug.php | 430 +++ .../smarty_internal_extension_clear.php | 126 + .../smarty_internal_extension_handler.php | 147 + ...rty_internal_method_addautoloadfilters.php | 52 + ...ty_internal_method_adddefaultmodifiers.php | 42 + .../smarty_internal_method_append.php | 74 + .../smarty_internal_method_appendbyref.php | 50 + .../smarty_internal_method_assignbyref.php | 36 + .../smarty_internal_method_assignglobal.php | 43 + .../smarty_internal_method_clearallassign.php | 37 + .../smarty_internal_method_clearallcache.php | 40 + .../smarty_internal_method_clearassign.php | 44 + .../smarty_internal_method_clearcache.php | 44 + ..._internal_method_clearcompiledtemplate.php | 120 + .../smarty_internal_method_clearconfig.php | 41 + ...marty_internal_method_compileallconfig.php | 33 + ...ty_internal_method_compilealltemplates.php | 119 + .../smarty_internal_method_configload.php | 184 ++ .../smarty_internal_method_createdata.php | 44 + ...rty_internal_method_getautoloadfilters.php | 37 + .../smarty_internal_method_getconfigvars.php | 58 + ...marty_internal_method_getdebugtemplate.php | 35 + ...ty_internal_method_getdefaultmodifiers.php | 35 + .../smarty_internal_method_getglobal.php | 47 + ...ty_internal_method_getregisteredobject.php | 44 + ...arty_internal_method_getstreamvariable.php | 51 + .../smarty_internal_method_gettags.php | 62 + ...smarty_internal_method_gettemplatevars.php | 116 + .../smarty_internal_method_loadfilter.php | 77 + .../smarty_internal_method_loadplugin.php | 111 + .../smarty_internal_method_mustcompile.php | 51 + ..._internal_method_registercacheresource.php | 40 + .../smarty_internal_method_registerclass.php | 46 + ...al_method_registerdefaultconfighandler.php | 42 + ...al_method_registerdefaultpluginhandler.php | 43 + ..._method_registerdefaulttemplatehandler.php | 82 + .../smarty_internal_method_registerfilter.php | 88 + .../smarty_internal_method_registerobject.php | 72 + .../smarty_internal_method_registerplugin.php | 51 + ...marty_internal_method_registerresource.php | 44 + ...rty_internal_method_setautoloadfilters.php | 70 + ...marty_internal_method_setdebugtemplate.php | 41 + ...ty_internal_method_setdefaultmodifiers.php | 38 + .../smarty_internal_method_unloadfilter.php | 42 + ...nternal_method_unregistercacheresource.php | 40 + ...marty_internal_method_unregisterfilter.php | 42 + ...marty_internal_method_unregisterobject.php | 40 + ...marty_internal_method_unregisterplugin.php | 41 + ...rty_internal_method_unregisterresource.php | 40 + .../smarty_internal_nocache_insert.php | 53 + .../sysplugins/smarty_internal_parsetree.php | 54 + .../smarty_internal_parsetree_code.php | 42 + .../smarty_internal_parsetree_dq.php | 95 + .../smarty_internal_parsetree_dqcontent.php | 42 + .../smarty_internal_parsetree_tag.php | 69 + .../smarty_internal_parsetree_template.php | 128 + .../smarty_internal_parsetree_text.php | 40 + .../smarty_internal_resource_eval.php | 95 + .../smarty_internal_resource_extends.php | 124 + .../smarty_internal_resource_file.php | 176 + .../smarty_internal_resource_php.php | 107 + .../smarty_internal_resource_registered.php | 99 + .../smarty_internal_resource_stream.php | 80 + .../smarty_internal_resource_string.php | 107 + .../smarty_internal_runtime_cachemodify.php | 68 + .../smarty_internal_runtime_capture.php | 161 + .../smarty_internal_runtime_codeframe.php | 98 + .../smarty_internal_runtime_filterhandler.php | 69 + .../smarty_internal_runtime_foreach.php | 137 + ...smarty_internal_runtime_getincludepath.php | 182 ++ .../smarty_internal_runtime_inheritance.php | 222 ++ .../smarty_internal_runtime_make_nocache.php | 56 + .../smarty_internal_runtime_tplfunction.php | 171 + .../smarty_internal_runtime_updatecache.php | 165 + .../smarty_internal_runtime_updatescope.php | 115 + .../smarty_internal_runtime_writefile.php | 91 + ...smarty_internal_smartytemplatecompiler.php | 170 + .../sysplugins/smarty_internal_template.php | 664 ++++ .../smarty_internal_templatebase.php | 338 ++ .../smarty_internal_templatecompilerbase.php | 1295 ++++++++ .../smarty_internal_templatelexer.php | 1153 +++++++ .../smarty_internal_templateparser.php | 2877 +++++++++++++++++ .../smarty_internal_testinstall.php | 595 ++++ .../sysplugins/smarty_internal_undefined.php | 49 + .../sysplugins/smarty_resource.php | 254 ++ .../sysplugins/smarty_resource_custom.php | 95 + .../sysplugins/smarty_resource_recompiled.php | 92 + .../sysplugins/smarty_resource_uncompiled.php | 49 + .../sysplugins/smarty_security.php | 730 +++++ .../sysplugins/smarty_template_cached.php | 256 ++ .../sysplugins/smarty_template_compiled.php | 241 ++ .../sysplugins/smarty_template_config.php | 99 + .../smarty_template_resource_base.php | 158 + .../sysplugins/smarty_template_source.php | 210 ++ .../sysplugins/smarty_undefined_variable.php | 37 + .../sysplugins/smarty_variable.php | 48 + .../sysplugins/smartycompilerexception.php | 42 + .../sysplugins/smartyexception.php | 16 + 206 files changed, 31465 insertions(+), 29 deletions(-) create mode 100644 www/smarty-3.1.30/.gitattributes create mode 100644 www/smarty-3.1.30/.gitignore create mode 100644 www/smarty-3.1.30/.travis.yml create mode 100644 www/smarty-3.1.30/Autoloader.php create mode 100644 www/smarty-3.1.30/Smarty.class.php create mode 100644 www/smarty-3.1.30/SmartyBC.class.php create mode 100644 www/smarty-3.1.30/debug.tpl create mode 100644 www/smarty-3.1.30/plugins/block.t.php create mode 100644 www/smarty-3.1.30/plugins/block.textformat.php create mode 100644 www/smarty-3.1.30/plugins/function.counter.php create mode 100644 www/smarty-3.1.30/plugins/function.cycle.php create mode 100644 www/smarty-3.1.30/plugins/function.fetch.php create mode 100644 www/smarty-3.1.30/plugins/function.html_checkboxes.php create mode 100644 www/smarty-3.1.30/plugins/function.html_image.php create mode 100644 www/smarty-3.1.30/plugins/function.html_options.php create mode 100644 www/smarty-3.1.30/plugins/function.html_radios.php create mode 100644 www/smarty-3.1.30/plugins/function.html_select_date.php create mode 100644 www/smarty-3.1.30/plugins/function.html_select_time.php create mode 100644 www/smarty-3.1.30/plugins/function.html_table.php create mode 100644 www/smarty-3.1.30/plugins/function.mailto.php create mode 100644 www/smarty-3.1.30/plugins/function.math.php create mode 100644 www/smarty-3.1.30/plugins/function.popup.php create mode 100644 www/smarty-3.1.30/plugins/function.popup_init.php create mode 100644 www/smarty-3.1.30/plugins/modifier.capitalize.php create mode 100644 www/smarty-3.1.30/plugins/modifier.date_format.php create mode 100644 www/smarty-3.1.30/plugins/modifier.debug_print_var.php create mode 100644 www/smarty-3.1.30/plugins/modifier.escape.php create mode 100644 www/smarty-3.1.30/plugins/modifier.regex_replace.php create mode 100644 www/smarty-3.1.30/plugins/modifier.replace.php create mode 100644 www/smarty-3.1.30/plugins/modifier.spacify.php create mode 100644 www/smarty-3.1.30/plugins/modifier.truncate.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.cat.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.count_characters.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.count_paragraphs.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.count_sentences.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.count_words.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.default.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.escape.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.from_charset.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.indent.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.lower.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.noprint.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.string_format.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.strip.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.strip_tags.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.to_charset.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.unescape.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.upper.php create mode 100644 www/smarty-3.1.30/plugins/modifiercompiler.wordwrap.php create mode 100644 www/smarty-3.1.30/plugins/outputfilter.trimwhitespace.php create mode 100644 www/smarty-3.1.30/plugins/shared.escape_special_chars.php create mode 100644 www/smarty-3.1.30/plugins/shared.literal_compiler_param.php create mode 100644 www/smarty-3.1.30/plugins/shared.make_timestamp.php create mode 100644 www/smarty-3.1.30/plugins/shared.mb_str_replace.php create mode 100644 www/smarty-3.1.30/plugins/shared.mb_unicode.php create mode 100644 www/smarty-3.1.30/plugins/shared.mb_wordwrap.php create mode 100644 www/smarty-3.1.30/plugins/variablefilter.htmlspecialchars.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_cacheresource.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_cacheresource_custom.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_cacheresource_keyvaluestore.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_data.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_block.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_cacheresource_file.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_append.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_assign.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_block.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_break.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_call.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_capture.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_config_load.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_continue.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_debug.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_eval.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_extends.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_for.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_foreach.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_function.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_if.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_include.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_include_php.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_insert.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_ldelim.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_make_nocache.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_nocache.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_private_block_plugin.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_private_foreachsection.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_private_function_plugin.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_private_modifier.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_private_object_block_function.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_private_object_function.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_private_php.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_private_print_expression.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_private_registered_block.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_private_registered_function.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_private_special_variable.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_rdelim.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_section.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_setfilter.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_shared_inheritance.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compile_while.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_compilebase.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_config_file_compiler.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_configfilelexer.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_configfileparser.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_data.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_debug.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_extension_clear.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_extension_handler.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_addautoloadfilters.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_adddefaultmodifiers.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_append.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_appendbyref.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_assignbyref.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_assignglobal.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_clearallassign.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_clearallcache.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_clearassign.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_clearcache.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_clearcompiledtemplate.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_clearconfig.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_compileallconfig.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_compilealltemplates.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_configload.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_createdata.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_getautoloadfilters.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_getconfigvars.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_getdebugtemplate.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_getdefaultmodifiers.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_getglobal.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_getregisteredobject.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_getstreamvariable.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_gettags.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_gettemplatevars.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_loadfilter.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_loadplugin.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_mustcompile.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_registercacheresource.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_registerclass.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_registerdefaultconfighandler.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_registerfilter.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_registerobject.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_registerplugin.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_registerresource.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_setautoloadfilters.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_setdebugtemplate.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_setdefaultmodifiers.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_unloadfilter.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_unregistercacheresource.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_unregisterfilter.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_unregisterobject.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_unregisterplugin.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_method_unregisterresource.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_nocache_insert.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_parsetree.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_parsetree_code.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_parsetree_dq.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_parsetree_dqcontent.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_parsetree_tag.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_parsetree_template.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_parsetree_text.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_resource_eval.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_resource_extends.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_resource_file.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_resource_php.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_resource_registered.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_resource_stream.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_resource_string.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_cachemodify.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_capture.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_codeframe.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_filterhandler.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_foreach.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_getincludepath.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_inheritance.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_make_nocache.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_tplfunction.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_updatecache.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_updatescope.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_runtime_writefile.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_smartytemplatecompiler.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_template.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_templatebase.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_templatecompilerbase.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_templatelexer.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_templateparser.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_testinstall.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_internal_undefined.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_resource.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_resource_custom.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_resource_recompiled.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_resource_uncompiled.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_security.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_template_cached.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_template_compiled.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_template_config.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_template_resource_base.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_template_source.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_undefined_variable.php create mode 100644 www/smarty-3.1.30/sysplugins/smarty_variable.php create mode 100644 www/smarty-3.1.30/sysplugins/smartycompilerexception.php create mode 100644 www/smarty-3.1.30/sysplugins/smartyexception.php diff --git a/www/Smarty b/www/Smarty index 6f6e682f..da807799 120000 --- a/www/Smarty +++ b/www/Smarty @@ -1 +1 @@ -smarty-3.1.27/ \ No newline at end of file +smarty-3.1.30 \ No newline at end of file diff --git a/www/smarty-3.1.27/plugins/function.html_checkboxes.php b/www/smarty-3.1.27/plugins/function.html_checkboxes.php index 1d710ae7..82e93300 100644 --- a/www/smarty-3.1.27/plugins/function.html_checkboxes.php +++ b/www/smarty-3.1.27/plugins/function.html_checkboxes.php @@ -91,19 +91,21 @@ function smarty_function_html_checkboxes($params, $template) if (method_exists($_sel, "__toString")) { $_sel = smarty_function_escape_special_chars((string) $_sel->__toString()); } else { - trigger_error("html_checkboxes: selected attribute contains an object of class '" . get_class($_sel) . "' without __toString() method", E_USER_NOTICE); + trigger_error("html_checkboxes: selected attribute contains an object of class '" . + get_class($_sel) . "' without __toString() method", E_USER_NOTICE); continue; } } else { $_sel = smarty_function_escape_special_chars((string) $_sel); } - $selected[$_sel] = true; + $selected[ $_sel ] = true; } } elseif (is_object($_val)) { if (method_exists($_val, "__toString")) { $selected = smarty_function_escape_special_chars((string) $_val->__toString()); } else { - trigger_error("html_checkboxes: selected attribute is an object of class '" . get_class($_val) . "' without __toString() method", E_USER_NOTICE); + trigger_error("html_checkboxes: selected attribute is an object of class '" . get_class($_val) . + "' without __toString() method", E_USER_NOTICE); } } else { $selected = smarty_function_escape_special_chars((string) $_val); @@ -111,7 +113,8 @@ function smarty_function_html_checkboxes($params, $template) break; case 'checkboxes': - trigger_error('html_checkboxes: the use of the "checkboxes" attribute is deprecated, use "options" instead', E_USER_WARNING); + trigger_error('html_checkboxes: the use of the "checkboxes" attribute is deprecated, use "options" instead', + E_USER_WARNING); $options = (array) $_val; break; @@ -127,9 +130,10 @@ function smarty_function_html_checkboxes($params, $template) case 'disabled': case 'readonly': - if (!empty($params['strict'])) { + if (!empty($params[ 'strict' ])) { if (!is_scalar($_val)) { - trigger_error("html_options: $_key attribute must be a scalar, only boolean true or string '$_key' will actually add the attribute", E_USER_NOTICE); + trigger_error("html_options: $_key attribute must be a scalar, only boolean true or string '$_key' will actually add the attribute", + E_USER_NOTICE); } if ($_val === true || $_val === $_key) { @@ -158,25 +162,30 @@ function smarty_function_html_checkboxes($params, $template) if (isset($options)) { foreach ($options as $_key => $_val) { - $_pos = isset($pos[$_key]) ? $pos[$_key] : ''; - $_html_result[] = smarty_function_html_checkboxes_output($name, $_key, $_val, $selected, $extra, $separator, $labels, $label_ids, $_pos, $escape); + $_pos = isset($pos[ $_key ]) ? $pos[ $_key ] : ''; + $_html_result[] = + smarty_function_html_checkboxes_output($name, $_key, $_val, $selected, $extra, $separator, $labels, + $label_ids, $_pos, $escape); } } else { foreach ($values as $_i => $_key) { - $_val = isset($output[$_i]) ? $output[$_i] : ''; - $_pos = isset($pos[$_i]) ? $pos[$_i] : ''; - $_html_result[] = smarty_function_html_checkboxes_output($name, $_key, $_val, $selected, $extra, $separator, $labels, $label_ids, $_pos, $escape); + $_val = isset($output[ $_i ]) ? $output[ $_i ] : ''; + $_pos = isset($pos[ $_i ]) ? $pos[ $_i ] : ''; + $_html_result[] = + smarty_function_html_checkboxes_output($name, $_key, $_val, $selected, $extra, $separator, $labels, + $label_ids, $_pos, $escape); } } - if (!empty($params['assign'])) { - $template->assign($params['assign'], $_html_result); + if (!empty($params[ 'assign' ])) { + $template->assign($params[ 'assign' ], $_html_result); } else { return implode("\n", $_html_result); } } -function smarty_function_html_checkboxes_output($name, $value, $output, $selected, $extra, $separator, $labels, $label_ids, $pos, $escape = true) +function smarty_function_html_checkboxes_output($name, $value, $output, $selected, $extra, $separator, $labels, + $label_ids, $pos, $escape = true) { $_output = ''; @@ -184,7 +193,8 @@ function smarty_function_html_checkboxes_output($name, $value, $output, $selecte if (method_exists($value, "__toString")) { $value = (string) $value->__toString(); } else { - trigger_error("html_options: value is an object of class '" . get_class($value) . "' without __toString() method", E_USER_NOTICE); + trigger_error("html_options: value is an object of class '" . get_class($value) . + "' without __toString() method", E_USER_NOTICE); return ''; } @@ -196,7 +206,8 @@ function smarty_function_html_checkboxes_output($name, $value, $output, $selecte if (method_exists($output, "__toString")) { $output = (string) $output->__toString(); } else { - trigger_error("html_options: output is an object of class '" . get_class($output) . "' without __toString() method", E_USER_NOTICE); + trigger_error("html_options: output is an object of class '" . get_class($output) . + "' without __toString() method", E_USER_NOTICE); return ''; } @@ -206,7 +217,8 @@ function smarty_function_html_checkboxes_output($name, $value, $output, $selecte if ($labels) { if ($label_ids) { - $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!' . Smarty::$_UTF8_MODIFIER, '_', $name . '_' . $value)); + $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!' . Smarty::$_UTF8_MODIFIER, '_', + $name . '_' . $value)); $_output .= '