From bb3376d1aafa1ca1da78f807ef67b9d80e68ebf8 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 7 Jan 2015 18:18:16 +0100 Subject: [PATCH] update Smarty to version 3.1.21 Signed-off-by: Michael Kaufmann (d00p) --- lib/classes/Smarty | 2 +- lib/classes/Smarty-3.1.15/demo/index.php | 30 - .../Smarty-3.1.15/demo/templates/index.tpl | 82 - lib/classes/Smarty-3.1.15/libs/debug.tpl | 133 - .../smarty_internal_cacheresource_file.php | 277 - .../smarty_internal_resource_stream.php | 80 - .../smarty_internal_templatelexer.php | 1371 ----- .../smarty_internal_templateparser.php | 3244 ------------ .../COPYING.lib | 0 .../{Smarty-3.1.15 => Smarty-3.1.21}/README | 2 +- .../SMARTY_2_BC_NOTES.txt | 0 .../SMARTY_3.0_BC_NOTES.txt | 0 .../SMARTY_3.1_NOTES.txt | 0 .../change_log.txt | 168 +- .../demo/configs/test.conf | 0 lib/classes/Smarty-3.1.21/demo/index.php | 30 + .../demo/plugins/cacheresource.apc.php | 17 +- .../demo/plugins/cacheresource.memcache.php | 22 +- .../demo/plugins/cacheresource.mysql.php | 38 +- .../demo/plugins/resource.extendsall.php | 12 +- .../demo/plugins/resource.mysql.php | 13 +- .../demo/plugins/resource.mysqls.php | 10 +- .../demo/templates/footer.tpl | 0 .../demo/templates/header.tpl | 2 +- .../Smarty-3.1.21/demo/templates/index.tpl | 87 + .../libs/Smarty.class.php | 323 +- .../libs/SmartyBC.class.php | 80 +- lib/classes/Smarty-3.1.21/libs/debug.tpl | 137 + .../libs/plugins/block.textformat.php | 10 +- .../libs/plugins/function.counter.php | 26 +- .../libs/plugins/function.cycle.php | 30 +- .../libs/plugins/function.fetch.php | 44 +- .../libs/plugins/function.html_checkboxes.php | 44 +- .../libs/plugins/function.html_image.php | 18 +- .../libs/plugins/function.html_options.php | 45 +- .../libs/plugins/function.html_radios.php | 26 +- .../plugins/function.html_select_date.php | 74 +- .../plugins/function.html_select_time.php | 64 +- .../libs/plugins/function.html_table.php | 34 +- .../libs/plugins/function.mailto.php | 37 +- .../libs/plugins/function.math.php | 41 +- .../libs/plugins/modifier.capitalize.php | 45 +- .../libs/plugins/modifier.date_format.php | 17 +- .../libs/plugins/modifier.debug_print_var.php | 31 +- .../libs/plugins/modifier.escape.php | 15 +- .../libs/plugins/modifier.regex_replace.php | 22 +- .../libs/plugins/modifier.replace.php | 8 +- .../libs/plugins/modifier.spacify.php | 10 +- .../libs/plugins/modifier.truncate.php | 10 +- .../libs/plugins/modifiercompiler.cat.php | 13 +- .../modifiercompiler.count_characters.php | 9 +- .../modifiercompiler.count_paragraphs.php | 11 +- .../modifiercompiler.count_sentences.php | 11 +- .../plugins/modifiercompiler.count_words.php | 11 +- .../libs/plugins/modifiercompiler.default.php | 9 +- .../libs/plugins/modifiercompiler.escape.php | 58 +- .../plugins/modifiercompiler.from_charset.php | 7 +- .../libs/plugins/modifiercompiler.indent.php | 10 +- .../libs/plugins/modifiercompiler.lower.php | 12 +- .../libs/plugins/modifiercompiler.noprint.php | 6 +- .../modifiercompiler.string_format.php | 9 +- .../libs/plugins/modifiercompiler.strip.php | 9 +- .../plugins/modifiercompiler.strip_tags.php | 13 +- .../plugins/modifiercompiler.to_charset.php | 7 +- .../plugins/modifiercompiler.unescape.php | 7 +- .../libs/plugins/modifiercompiler.upper.php | 11 +- .../plugins/modifiercompiler.wordwrap.php | 14 +- .../plugins/outputfilter.trimwhitespace.php | 28 +- .../plugins/shared.escape_special_chars.php | 8 +- .../plugins/shared.literal_compiler_param.php | 7 +- .../libs/plugins/shared.make_timestamp.php | 12 +- .../libs/plugins/shared.mb_str_replace.php | 10 +- .../libs/plugins/shared.mb_unicode.php | 14 +- .../libs/plugins/shared.mb_wordwrap.php | 45 +- .../variablefilter.htmlspecialchars.php | 8 +- .../libs/sysplugins/smarty_cacheresource.php | 307 +- .../smarty_cacheresource_custom.php | 71 +- .../smarty_cacheresource_keyvaluestore.php | 101 +- .../libs/sysplugins/smarty_config_source.php | 18 +- .../smarty_internal_cacheresource_file.php | 297 ++ .../smarty_internal_compile_append.php | 9 +- .../smarty_internal_compile_assign.php | 9 +- .../smarty_internal_compile_block.php | 74 +- .../smarty_internal_compile_break.php | 16 +- .../smarty_internal_compile_call.php | 18 +- .../smarty_internal_compile_capture.php | 13 +- .../smarty_internal_compile_config_load.php | 19 +- .../smarty_internal_compile_continue.php | 15 +- .../smarty_internal_compile_debug.php | 9 +- .../smarty_internal_compile_eval.php | 15 +- .../smarty_internal_compile_extends.php | 30 +- .../smarty_internal_compile_for.php | 29 +- .../smarty_internal_compile_foreach.php | 43 +- .../smarty_internal_compile_function.php | 43 +- .../sysplugins/smarty_internal_compile_if.php | 138 +- .../smarty_internal_compile_include.php | 60 +- .../smarty_internal_compile_include_php.php | 17 +- .../smarty_internal_compile_insert.php | 13 +- .../smarty_internal_compile_ldelim.php | 11 +- .../smarty_internal_compile_nocache.php | 26 +- ..._internal_compile_private_block_plugin.php | 21 +- ...ternal_compile_private_function_plugin.php | 9 +- ...arty_internal_compile_private_modifier.php | 9 +- ..._compile_private_object_block_function.php | 13 +- ...ternal_compile_private_object_function.php | 15 +- ...ernal_compile_private_print_expression.php | 85 +- ...ernal_compile_private_registered_block.php | 49 +- ...al_compile_private_registered_function.php | 25 +- ...ernal_compile_private_special_variable.php | 16 +- .../smarty_internal_compile_rdelim.php | 11 +- .../smarty_internal_compile_section.php | 40 +- .../smarty_internal_compile_setfilter.php | 14 +- .../smarty_internal_compile_while.php | 15 +- .../smarty_internal_compilebase.php | 14 +- .../sysplugins/smarty_internal_config.php | 55 +- .../smarty_internal_config_file_compiler.php | 43 +- .../smarty_internal_configfilelexer.php | 504 +- .../smarty_internal_configfileparser.php | 761 +-- .../libs/sysplugins/smarty_internal_data.php | 109 +- .../libs/sysplugins/smarty_internal_debug.php | 12 +- .../smarty_internal_filter_handler.php | 11 +- .../smarty_internal_function_call_handler.php | 9 +- .../smarty_internal_get_include_path.php | 10 +- .../smarty_internal_nocache_insert.php | 9 +- .../sysplugins/smarty_internal_parsetree.php | 144 +- .../smarty_internal_resource_eval.php | 27 +- .../smarty_internal_resource_extends.php | 18 +- .../smarty_internal_resource_file.php | 16 +- .../smarty_internal_resource_php.php | 28 +- .../smarty_internal_resource_registered.php | 17 +- .../smarty_internal_resource_stream.php | 81 + .../smarty_internal_resource_string.php | 28 +- ...smarty_internal_smartytemplatecompiler.php | 27 +- .../sysplugins/smarty_internal_template.php | 122 +- .../smarty_internal_templatebase.php | 218 +- .../smarty_internal_templatecompilerbase.php | 108 +- .../smarty_internal_templatelexer.php | 1552 ++++++ .../smarty_internal_templateparser.php | 4568 +++++++++++++++++ .../sysplugins/smarty_internal_utility.php | 358 +- .../sysplugins/smarty_internal_write_file.php | 23 +- .../libs/sysplugins/smarty_resource.php | 157 +- .../sysplugins/smarty_resource_custom.php | 21 +- .../sysplugins/smarty_resource_recompiled.php | 9 +- .../sysplugins/smarty_resource_uncompiled.php | 9 +- .../libs/sysplugins/smarty_security.php | 93 +- 145 files changed, 10177 insertions(+), 7877 deletions(-) delete mode 100644 lib/classes/Smarty-3.1.15/demo/index.php delete mode 100644 lib/classes/Smarty-3.1.15/demo/templates/index.tpl delete mode 100644 lib/classes/Smarty-3.1.15/libs/debug.tpl delete mode 100644 lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_cacheresource_file.php delete mode 100644 lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_resource_stream.php delete mode 100644 lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_templatelexer.php delete mode 100644 lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_templateparser.php rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/COPYING.lib (100%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/README (99%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/SMARTY_2_BC_NOTES.txt (100%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/SMARTY_3.0_BC_NOTES.txt (100%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/SMARTY_3.1_NOTES.txt (100%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/change_log.txt (91%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/demo/configs/test.conf (100%) create mode 100644 lib/classes/Smarty-3.1.21/demo/index.php rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/demo/plugins/cacheresource.apc.php (84%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/demo/plugins/cacheresource.memcache.php (83%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/demo/plugins/cacheresource.mysql.php (86%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/demo/plugins/resource.extendsall.php (89%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/demo/plugins/resource.mysql.php (94%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/demo/plugins/resource.mysqls.php (96%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/demo/templates/footer.tpl (100%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/demo/templates/header.tpl (55%) create mode 100644 lib/classes/Smarty-3.1.21/demo/templates/index.tpl rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/Smarty.class.php (86%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/SmartyBC.class.php (87%) create mode 100644 lib/classes/Smarty-3.1.21/libs/debug.tpl rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/block.textformat.php (95%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.counter.php (81%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.cycle.php (79%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.fetch.php (86%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.html_checkboxes.php (86%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.html_image.php (93%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.html_options.php (82%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.html_radios.php (90%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.html_select_date.php (84%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.html_select_time.php (81%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.html_table.php (85%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.mailto.php (85%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/function.math.php (63%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifier.capitalize.php (62%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifier.date_format.php (80%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifier.debug_print_var.php (77%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifier.escape.php (95%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifier.regex_replace.php (66%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifier.replace.php (84%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifier.spacify.php (76%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifier.truncate.php (92%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.cat.php (63%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.count_characters.php (77%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.count_paragraphs.php (71%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.count_sentences.php (74%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.count_words.php (79%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.default.php (76%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.escape.php (72%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.from_charset.php (88%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.indent.php (74%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.lower.php (71%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.noprint.php (70%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.string_format.php (65%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.strip.php (78%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.strip_tags.php (52%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.to_charset.php (88%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.unescape.php (93%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.upper.php (69%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/modifiercompiler.wordwrap.php (75%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/outputfilter.trimwhitespace.php (79%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/shared.escape_special_chars.php (97%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/shared.literal_compiler_param.php (89%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/shared.make_timestamp.php (71%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/shared.mb_str_replace.php (91%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/shared.mb_unicode.php (76%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/shared.mb_wordwrap.php (59%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/plugins/variablefilter.htmlspecialchars.php (53%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_cacheresource.php (63%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_cacheresource_custom.php (79%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_cacheresource_keyvaluestore.php (88%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_config_source.php (88%) create mode 100644 lib/classes/Smarty-3.1.21/libs/sysplugins/smarty_internal_cacheresource_file.php rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_append.php (95%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_assign.php (98%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_block.php (89%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_break.php (91%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_call.php (93%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_capture.php (96%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_config_load.php (87%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_continue.php (91%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_debug.php (92%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_eval.php (85%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_extends.php (72%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_for.php (94%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_foreach.php (84%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_function.php (85%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_if.php (70%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_include.php (84%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_include_php.php (92%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_insert.php (96%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_ldelim.php (92%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_nocache.php (80%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_private_block_plugin.php (81%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_private_function_plugin.php (96%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_private_modifier.php (98%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_private_object_block_function.php (94%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_private_object_function.php (91%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_private_print_expression.php (80%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_private_registered_block.php (69%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_private_registered_function.php (80%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_private_special_variable.php (91%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_rdelim.php (93%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_section.php (93%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_setfilter.php (95%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compile_while.php (95%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_compilebase.php (98%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_config.php (88%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_config_file_compiler.php (82%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_configfilelexer.php (52%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_configfileparser.php (54%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_data.php (86%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_debug.php (97%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_filter_handler.php (96%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_function_call_handler.php (91%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_get_include_path.php (88%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_nocache_insert.php (95%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_parsetree.php (72%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_resource_eval.php (84%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_resource_extends.php (92%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_resource_file.php (92%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_resource_php.php (89%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_resource_registered.php (94%) create mode 100644 lib/classes/Smarty-3.1.21/libs/sysplugins/smarty_internal_resource_stream.php rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_resource_string.php (85%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_smartytemplatecompiler.php (83%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_template.php (93%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_templatebase.php (84%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_templatecompilerbase.php (92%) create mode 100644 lib/classes/Smarty-3.1.21/libs/sysplugins/smarty_internal_templatelexer.php create mode 100644 lib/classes/Smarty-3.1.21/libs/sysplugins/smarty_internal_templateparser.php rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_utility.php (68%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_internal_write_file.php (86%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_resource.php (88%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_resource_custom.php (90%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_resource_recompiled.php (90%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_resource_uncompiled.php (93%) rename lib/classes/{Smarty-3.1.15 => Smarty-3.1.21}/libs/sysplugins/smarty_security.php (90%) diff --git a/lib/classes/Smarty b/lib/classes/Smarty index 8629c8bd..0c34a82b 120000 --- a/lib/classes/Smarty +++ b/lib/classes/Smarty @@ -1 +1 @@ -Smarty-3.1.15/libs/ \ No newline at end of file +Smarty-3.1.21/libs/ \ No newline at end of file diff --git a/lib/classes/Smarty-3.1.15/demo/index.php b/lib/classes/Smarty-3.1.15/demo/index.php deleted file mode 100644 index b7d988f5..00000000 --- a/lib/classes/Smarty-3.1.15/demo/index.php +++ /dev/null @@ -1,30 +0,0 @@ -force_compile = true; -$smarty->debugging = true; -$smarty->caching = true; -$smarty->cache_lifetime = 120; - -$smarty->assign("Name","Fred Irving Johnathan Bradley Peppergill",true); -$smarty->assign("FirstName",array("John","Mary","James","Henry")); -$smarty->assign("LastName",array("Doe","Smith","Johnson","Case")); -$smarty->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"), - array("I", "J", "K", "L"), array("M", "N", "O", "P"))); - -$smarty->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"), - array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234"))); - -$smarty->assign("option_values", array("NY","NE","KS","IA","OK","TX")); -$smarty->assign("option_output", array("New York","Nebraska","Kansas","Iowa","Oklahoma","Texas")); -$smarty->assign("option_selected", "NE"); - -$smarty->display('index.tpl'); diff --git a/lib/classes/Smarty-3.1.15/demo/templates/index.tpl b/lib/classes/Smarty-3.1.15/demo/templates/index.tpl deleted file mode 100644 index 38d23341..00000000 --- a/lib/classes/Smarty-3.1.15/demo/templates/index.tpl +++ /dev/null @@ -1,82 +0,0 @@ -{config_load file="test.conf" section="setup"} -{include file="header.tpl" title=foo} - -
-
-{* bold and title are read from the config file *}
-{if #bold#}{/if}
-{* capitalize the first letters of each word of the title *}
-Title: {#title#|capitalize}
-{if #bold#}{/if}
-
-The current date and time is {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
-
-The value of global assigned variable $SCRIPT_NAME is {$SCRIPT_NAME}
-
-Example of accessing server environment variable SERVER_NAME: {$smarty.server.SERVER_NAME}
-
-The value of {ldelim}$Name{rdelim} is {$Name}
-
-variable modifier example of {ldelim}$Name|upper{rdelim}
-
-{$Name|upper}
-
-
-An example of a section loop:
-
-{section name=outer 
-loop=$FirstName}
-{if $smarty.section.outer.index is odd by 2}
-	{$smarty.section.outer.rownum} . {$FirstName[outer]} {$LastName[outer]}
-{else}
-	{$smarty.section.outer.rownum} * {$FirstName[outer]} {$LastName[outer]}
-{/if}
-{sectionelse}
-	none
-{/section}
-
-An example of section looped key values:
-
-{section name=sec1 loop=$contacts}
-	phone: {$contacts[sec1].phone}
- fax: {$contacts[sec1].fax}
- cell: {$contacts[sec1].cell}
-{/section} -

- -testing strip tags -{strip} - - - - -
- - This is a test - -
-{/strip} - -

- -This is an example of the html_select_date function: - -
-{html_select_date start_year=1998 end_year=2010} -
- -This is an example of the html_select_time function: - -
-{html_select_time use_24_hours=false} -
- -This is an example of the html_options function: - -
- -
- -{include file="footer.tpl"} diff --git a/lib/classes/Smarty-3.1.15/libs/debug.tpl b/lib/classes/Smarty-3.1.15/libs/debug.tpl deleted file mode 100644 index 12eef0ff..00000000 --- a/lib/classes/Smarty-3.1.15/libs/debug.tpl +++ /dev/null @@ -1,133 +0,0 @@ -{capture name='_smarty_debug' assign=debug_output} - - - - Smarty Debug Console - - - - -

Smarty Debug Console - {if isset($template_name)}{$template_name|debug_print_var nofilter}{else}Total Time {$execution_time|string_format:"%.5f"}{/if}

- -{if !empty($template_data)} -

included templates & config files (load time in seconds)

- -
-{foreach $template_data as $template} - {$template.name} - - (compile {$template['compile_time']|string_format:"%.5f"}) (render {$template['render_time']|string_format:"%.5f"}) (cache {$template['cache_time']|string_format:"%.5f"}) - -
-{/foreach} -
-{/if} - -

assigned template variables

- - - {foreach $assigned_vars as $vars} - - - - {/foreach} -
${$vars@key|escape:'html'}{$vars|debug_print_var nofilter}
- -

assigned config file variables (outer template scope)

- - - {foreach $config_vars as $vars} - - - - {/foreach} - -
{$vars@key|escape:'html'}{$vars|debug_print_var nofilter}
- - -{/capture} - diff --git a/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_cacheresource_file.php b/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_cacheresource_file.php deleted file mode 100644 index 049cc91b..00000000 --- a/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_cacheresource_file.php +++ /dev/null @@ -1,277 +0,0 @@ -source->filepath); - $_cache_id = isset($_template->cache_id) ? preg_replace('![^\w\|]+!', '_', $_template->cache_id) : null; - $_compile_id = isset($_template->compile_id) ? preg_replace('![^\w\|]+!', '_', $_template->compile_id) : null; - $_filepath = $_template->source->uid; - // if use_sub_dirs, break file into directories - if ($_template->smarty->use_sub_dirs) { - $_filepath = substr($_filepath, 0, 2) . DS - . substr($_filepath, 2, 2) . DS - . substr($_filepath, 4, 2) . DS - . $_filepath; - } - $_compile_dir_sep = $_template->smarty->use_sub_dirs ? DS : '^'; - if (isset($_cache_id)) { - $_cache_id = str_replace('|', $_compile_dir_sep, $_cache_id) . $_compile_dir_sep; - } else { - $_cache_id = ''; - } - if (isset($_compile_id)) { - $_compile_id = $_compile_id . $_compile_dir_sep; - } else { - $_compile_id = ''; - } - $_cache_dir = $_template->smarty->getCacheDir(); - if ($_template->smarty->cache_locking) { - // create locking file name - // relative file name? - if (!preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $_cache_dir)) { - $_lock_dir = rtrim(getcwd(), '/\\') . DS . $_cache_dir; - } else { - $_lock_dir = $_cache_dir; - } - $cached->lock_id = $_lock_dir.sha1($_cache_id.$_compile_id.$_template->source->uid).'.lock'; - } - $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php'; - $cached->timestamp = @filemtime($cached->filepath); - $cached->exists = !!$cached->timestamp; - } - - /** - * populate Cached Object with timestamp and exists from Resource - * - * @param Smarty_Template_Cached $cached cached object - * @return void - */ - public function populateTimestamp(Smarty_Template_Cached $cached) - { - $cached->timestamp = @filemtime($cached->filepath); - $cached->exists = !!$cached->timestamp; - } - - /** - * Read the cached template and process its header - * - * @param Smarty_Internal_Template $_template template object - * @param Smarty_Template_Cached $cached cached object - * @return booelan true or false if the cached content does not exist - */ - public function process(Smarty_Internal_Template $_template, Smarty_Template_Cached $cached=null) - { - $_smarty_tpl = $_template; - - return @include $_template->cached->filepath; - } - - /** - * Write the rendered template output to cache - * - * @param Smarty_Internal_Template $_template template object - * @param string $content content to cache - * @return boolean success - */ - public function writeCachedContent(Smarty_Internal_Template $_template, $content) - { - if (Smarty_Internal_Write_File::writeFile($_template->cached->filepath, $content, $_template->smarty) === true) { - $_template->cached->timestamp = @filemtime($_template->cached->filepath); - $_template->cached->exists = !!$_template->cached->timestamp; - if ($_template->cached->exists) { - return true; - } - } - - return false; - } - - /** - * Empty cache - * - * @param Smarty_Internal_Template $_template template object - * @param integer $exp_time expiration time (number of seconds, not timestamp) - * @return integer number of cache files deleted - */ - public function clearAll(Smarty $smarty, $exp_time = null) - { - return $this->clear($smarty, null, null, null, $exp_time); - } - - /** - * Empty cache for a specific template - * - * @param Smarty $_template template object - * @param string $resource_name template name - * @param string $cache_id cache id - * @param string $compile_id compile id - * @param integer $exp_time expiration time (number of seconds, not timestamp) - * @return integer number of cache files deleted - */ - public function clear(Smarty $smarty, $resource_name, $cache_id, $compile_id, $exp_time) - { - $_cache_id = isset($cache_id) ? preg_replace('![^\w\|]+!', '_', $cache_id) : null; - $_compile_id = isset($compile_id) ? preg_replace('![^\w\|]+!', '_', $compile_id) : null; - $_dir_sep = $smarty->use_sub_dirs ? '/' : '^'; - $_compile_id_offset = $smarty->use_sub_dirs ? 3 : 0; - $_dir = $smarty->getCacheDir(); - $_dir_length = strlen($_dir); - if (isset($_cache_id)) { - $_cache_id_parts = explode('|', $_cache_id); - $_cache_id_parts_count = count($_cache_id_parts); - if ($smarty->use_sub_dirs) { - foreach ($_cache_id_parts as $id_part) { - $_dir .= $id_part . DS; - } - } - } - if (isset($resource_name)) { - $_save_stat = $smarty->caching; - $smarty->caching = true; - $tpl = new $smarty->template_class($resource_name, $smarty); - $smarty->caching = $_save_stat; - - // remove from template cache - $tpl->source; // have the template registered before unset() - if ($smarty->allow_ambiguous_resources) { - $_templateId = $tpl->source->unique_resource . $tpl->cache_id . $tpl->compile_id; - } else { - $_templateId = $smarty->joined_template_dir . '#' . $resource_name . $tpl->cache_id . $tpl->compile_id; - } - if (isset($_templateId[150])) { - $_templateId = sha1($_templateId); - } - unset($smarty->template_objects[$_templateId]); - - if ($tpl->source->exists) { - $_resourcename_parts = basename(str_replace('^', '/', $tpl->cached->filepath)); - } else { - return 0; - } - } - $_count = 0; - $_time = time(); - if (file_exists($_dir)) { - $_cacheDirs = new RecursiveDirectoryIterator($_dir); - $_cache = new RecursiveIteratorIterator($_cacheDirs, RecursiveIteratorIterator::CHILD_FIRST); - foreach ($_cache as $_file) { - if (substr(basename($_file->getPathname()),0,1) == '.' || strpos($_file, '.svn') !== false) continue; - // directory ? - if ($_file->isDir()) { - if (!$_cache->isDot()) { - // delete folder if empty - @rmdir($_file->getPathname()); - } - } else { - $_parts = explode($_dir_sep, str_replace('\\', '/', substr((string) $_file, $_dir_length))); - $_parts_count = count($_parts); - // check name - if (isset($resource_name)) { - if ($_parts[$_parts_count-1] != $_resourcename_parts) { - continue; - } - } - // check compile id - if (isset($_compile_id) && (!isset($_parts[$_parts_count-2 - $_compile_id_offset]) || $_parts[$_parts_count-2 - $_compile_id_offset] != $_compile_id)) { - continue; - } - // check cache id - if (isset($_cache_id)) { - // count of cache id parts - $_parts_count = (isset($_compile_id)) ? $_parts_count - 2 - $_compile_id_offset : $_parts_count - 1 - $_compile_id_offset; - if ($_parts_count < $_cache_id_parts_count) { - continue; - } - for ($i = 0; $i < $_cache_id_parts_count; $i++) { - if ($_parts[$i] != $_cache_id_parts[$i]) continue 2; - } - } - // expired ? - if (isset($exp_time)) { - if ($exp_time < 0) { - preg_match('#\'cache_lifetime\' =>\s*(\d*)#', file_get_contents($_file), $match); - if ($_time < (@filemtime($_file) + $match[1])) { - continue; - } - } else { - if ($_time - @filemtime($_file) < $exp_time) { - continue; - } - } - } - $_count += @unlink((string) $_file) ? 1 : 0; - } - } - } - - return $_count; - } - - /** - * Check is cache is locked for this template - * - * @param Smarty $smarty Smarty object - * @param Smarty_Template_Cached $cached cached object - * @return booelan true or false if cache is locked - */ - public function hasLock(Smarty $smarty, Smarty_Template_Cached $cached) - { - if (version_compare(PHP_VERSION, '5.3.0', '>=')) { - clearstatcache(true, $cached->lock_id); - } else { - clearstatcache(); - } - $t = @filemtime($cached->lock_id); - - return $t && (time() - $t < $smarty->locking_timeout); - } - - /** - * Lock cache for this template - * - * @param Smarty $smarty Smarty object - * @param Smarty_Template_Cached $cached cached object - */ - public function acquireLock(Smarty $smarty, Smarty_Template_Cached $cached) - { - $cached->is_locked = true; - touch($cached->lock_id); - } - - /** - * Unlock cache for this template - * - * @param Smarty $smarty Smarty object - * @param Smarty_Template_Cached $cached cached object - */ - public function releaseLock(Smarty $smarty, Smarty_Template_Cached $cached) - { - $cached->is_locked = false; - @unlink($cached->lock_id); - } - } diff --git a/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_resource_stream.php b/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_resource_stream.php deleted file mode 100644 index f49a9254..00000000 --- a/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_resource_stream.php +++ /dev/null @@ -1,80 +0,0 @@ -resource, '://') !== false) { - $source->filepath = $source->resource; - } else { - $source->filepath = str_replace(':', '://', $source->resource); - } - $source->uid = false; - $source->content = $this->getContent($source); - $source->timestamp = false; - $source->exists = !!$source->content; - } - - /** - * Load template's source from stream into current template object - * - * @param Smarty_Template_Source $source source object - * @return string template source - * @throws SmartyException if source cannot be loaded - */ - public function getContent(Smarty_Template_Source $source) - { - $t = ''; - // the availability of the stream has already been checked in Smarty_Resource::fetch() - $fp = fopen($source->filepath, 'r+'); - if ($fp) { - while (!feof($fp) && ($current_line = fgets($fp)) !== false) { - $t .= $current_line; - } - fclose($fp); - - return $t; - } else { - return false; - } - } - - /** - * modify resource_name according to resource handlers specifications - * - * @param Smarty $smarty Smarty instance - * @param string $resource_name resource_name to make unique - * @param boolean $is_config flag for config resource - * @return string unique resource name - */ - protected function buildUniqueResourceName(Smarty $smarty, $resource_name, $is_config = false) - { - return get_class($this) . '#' . $resource_name; - } -} diff --git a/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_templatelexer.php b/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_templatelexer.php deleted file mode 100644 index 61555aba..00000000 --- a/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_templatelexer.php +++ /dev/null @@ -1,1371 +0,0 @@ - '===', - 'NONEIDENTITY' => '!==', - 'EQUALS' => '==', - 'NOTEQUALS' => '!=', - 'GREATEREQUAL' => '(>=,ge)', - 'LESSEQUAL' => '(<=,le)', - 'GREATERTHAN' => '(>,gt)', - 'LESSTHAN' => '(<,lt)', - 'MOD' => '(%,mod)', - 'NOT' => '(!,not)', - 'LAND' => '(&&,and)', - 'LOR' => '(||,or)', - 'LXOR' => 'xor', - 'OPENP' => '(', - 'CLOSEP' => ')', - 'OPENB' => '[', - 'CLOSEB' => ']', - 'PTR' => '->', - 'APTR' => '=>', - 'EQUAL' => '=', - 'NUMBER' => 'number', - 'UNIMATH' => '+" , "-', - 'MATH' => '*" , "/" , "%', - 'INCDEC' => '++" , "--', - 'SPACE' => ' ', - 'DOLLAR' => '$', - 'SEMICOLON' => ';', - 'COLON' => ':', - 'DOUBLECOLON' => '::', - 'AT' => '@', - 'HATCH' => '#', - 'QUOTE' => '"', - 'BACKTICK' => '`', - 'VERT' => '|', - 'DOT' => '.', - 'COMMA' => '","', - 'ANDSYM' => '"&"', - 'QMARK' => '"?"', - 'ID' => 'identifier', - 'TEXT' => 'text', - 'FAKEPHPSTARTTAG' => 'Fake PHP start tag', - 'PHPSTARTTAG' => 'PHP start tag', - 'PHPENDTAG' => 'PHP end tag', - 'LITERALSTART' => 'Literal start', - 'LITERALEND' => 'Literal end', - 'LDELSLASH' => 'closing tag', - 'COMMENT' => 'comment', - 'AS' => 'as', - 'TO' => 'to', - ); - - - function __construct($data,$compiler) - { -// $this->data = preg_replace("/(\r\n|\r|\n)/", "\n", $data); - $this->data = $data; - $this->counter = 0; - $this->line = 1; - $this->smarty = $compiler->smarty; - $this->compiler = $compiler; - $this->ldel = preg_quote($this->smarty->left_delimiter,'/'); - $this->ldel_length = strlen($this->smarty->left_delimiter); - $this->rdel = preg_quote($this->smarty->right_delimiter,'/'); - $this->rdel_length = strlen($this->smarty->right_delimiter); - $this->smarty_token_names['LDEL'] = $this->smarty->left_delimiter; - $this->smarty_token_names['RDEL'] = $this->smarty->right_delimiter; - $this->mbstring_overload = ini_get('mbstring.func_overload') & 2; - } - - - private $_yy_state = 1; - private $_yy_stack = array(); - - public function yylex() - { - return $this->{'yylex' . $this->_yy_state}(); - } - - public function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - public function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - public function yybegin($state) - { - $this->_yy_state = $state; - } - - - - public function yylex1() - { - $tokenMap = array ( - 1 => 0, - 2 => 1, - 4 => 0, - 5 => 0, - 6 => 0, - 7 => 1, - 9 => 0, - 10 => 0, - 11 => 0, - 12 => 0, - 13 => 0, - 14 => 0, - 15 => 0, - 16 => 0, - 17 => 0, - 18 => 0, - 19 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(\\{\\})|\G(".$this->ldel."\\s*\\*([\S\s]*?)\\*\\s*".$this->rdel.")|\G(".$this->ldel."\\s*strip\\s*".$this->rdel.")|\G(".$this->ldel."\\s*\/strip\\s*".$this->rdel.")|\G(".$this->ldel."\\s*literal\\s*".$this->rdel.")|\G(".$this->ldel."\\s*(if|elseif|else if|while)\\s+)|\G(".$this->ldel."\\s*for\\s+)|\G(".$this->ldel."\\s*foreach(?![^\s]))|\G(".$this->ldel."\\s*setfilter\\s+)|\G(".$this->ldel."\\s*\/)|\G(".$this->ldel."\\s*)|\G(<\\?(?:php\\w+|=|[a-zA-Z]+)?)|\G(\\?>)|\G(\\s*".$this->rdel.")|\G(<%)|\G(%>)|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state TEXT'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r1_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const TEXT = 1; - function yy_r1_1($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - function yy_r1_2($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_COMMENT; - } - function yy_r1_4($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_STRIPON; - } - } - function yy_r1_5($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_STRIPOFF; - } - } - function yy_r1_6($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; - $this->yypushstate(self::LITERAL); - } - } - function yy_r1_7($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELIF; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_9($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_10($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_11($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSETFILTER; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_12($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_13($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_14($yy_subpatterns) - { - - if (in_array($this->value, Array('token = Smarty_Internal_Templateparser::TP_PHPSTARTTAG; - } elseif ($this->value == 'token = Smarty_Internal_Templateparser::TP_XMLTAG; - } else { - $this->token = Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG; - $this->value = substr($this->value, 0, 2); - } - } - function yy_r1_15($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_PHPENDTAG; - } - function yy_r1_16($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - function yy_r1_17($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ASPSTARTTAG; - } - function yy_r1_18($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ASPENDTAG; - } - function yy_r1_19($yy_subpatterns) - { - - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - preg_match("/{$this->ldel}|<\?|\?>|<%|%>/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); - if (isset($match[0][1])) { - $to = $match[0][1]; - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - - - public function yylex2() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 1, - 5 => 0, - 6 => 0, - 7 => 0, - 8 => 0, - 9 => 0, - 10 => 0, - 11 => 0, - 12 => 0, - 13 => 0, - 14 => 0, - 15 => 1, - 17 => 1, - 19 => 1, - 21 => 0, - 22 => 0, - 23 => 0, - 24 => 0, - 25 => 0, - 26 => 0, - 27 => 0, - 28 => 0, - 29 => 0, - 30 => 0, - 31 => 0, - 32 => 0, - 33 => 0, - 34 => 0, - 35 => 0, - 36 => 0, - 37 => 0, - 38 => 3, - 42 => 0, - 43 => 0, - 44 => 0, - 45 => 0, - 46 => 0, - 47 => 0, - 48 => 0, - 49 => 0, - 50 => 1, - 52 => 1, - 54 => 0, - 55 => 0, - 56 => 0, - 57 => 0, - 58 => 0, - 59 => 0, - 60 => 0, - 61 => 0, - 62 => 0, - 63 => 0, - 64 => 0, - 65 => 0, - 66 => 0, - 67 => 0, - 68 => 0, - 69 => 0, - 70 => 1, - 72 => 0, - 73 => 0, - 74 => 0, - 75 => 0, - 76 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(\")|\G('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|\G([$]smarty\\.block\\.(child|parent))|\G(\\$)|\G(\\s*".$this->rdel.")|\G(\\s+is\\s+in\\s+)|\G(\\s+as\\s+)|\G(\\s+to\\s+)|\G(\\s+step\\s+)|\G(\\s+instanceof\\s+)|\G(\\s*===\\s*)|\G(\\s*!==\\s*)|\G(\\s*==\\s*|\\s+eq\\s+)|\G(\\s*!=\\s*|\\s*<>\\s*|\\s+(ne|neq)\\s+)|\G(\\s*>=\\s*|\\s+(ge|gte)\\s+)|\G(\\s*<=\\s*|\\s+(le|lte)\\s+)|\G(\\s*>\\s*|\\s+gt\\s+)|\G(\\s*<\\s*|\\s+lt\\s+)|\G(\\s+mod\\s+)|\G(!\\s*|not\\s+)|\G(\\s*&&\\s*|\\s*and\\s+)|\G(\\s*\\|\\|\\s*|\\s*or\\s+)|\G(\\s*xor\\s+)|\G(\\s+is\\s+odd\\s+by\\s+)|\G(\\s+is\\s+not\\s+odd\\s+by\\s+)|\G(\\s+is\\s+odd)|\G(\\s+is\\s+not\\s+odd)|\G(\\s+is\\s+even\\s+by\\s+)|\G(\\s+is\\s+not\\s+even\\s+by\\s+)|\G(\\s+is\\s+even)|\G(\\s+is\\s+not\\s+even)|\G(\\s+is\\s+div\\s+by\\s+)|\G(\\s+is\\s+not\\s+div\\s+by\\s+)|\G(\\((int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)\\)\\s*)|\G(\\s*\\(\\s*)|\G(\\s*\\))|\G(\\[\\s*)|\G(\\s*\\])|\G(\\s*->\\s*)|\G(\\s*=>\\s*)|\G(\\s*=\\s*)|\G(\\+\\+|--)|\G(\\s*(\\+|-)\\s*)|\G(\\s*(\\*|\/|%)\\s*)|\G(@)|\G(#)|\G(\\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\\s*=\\s*)|\G([0-9]*[a-zA-Z_]\\w*)|\G(\\d+)|\G(`)|\G(\\|)|\G(\\.)|\G(\\s*,\\s*)|\G(\\s*;)|\G(::)|\G(\\s*:\\s*)|\G(\\s*&\\s*)|\G(\\s*\\?\\s*)|\G(0[xX][0-9a-fA-F]+)|\G(\\s+)|\G(".$this->ldel."\\s*(if|elseif|else if|while)\\s+)|\G(".$this->ldel."\\s*for\\s+)|\G(".$this->ldel."\\s*foreach(?![^\s]))|\G(".$this->ldel."\\s*\/)|\G(".$this->ldel."\\s*)|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state SMARTY'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r2_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const SMARTY = 2; - function yy_r2_1($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_QUOTE; - $this->yypushstate(self::DOUBLEQUOTEDSTRING); - } - function yy_r2_2($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING; - } - function yy_r2_3($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_SMARTYBLOCKCHILDPARENT; - $this->taglineno = $this->line; - } - function yy_r2_5($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_DOLLAR; - } - function yy_r2_6($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_RDEL; - $this->yypopstate(); - } - function yy_r2_7($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISIN; - } - function yy_r2_8($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_AS; - } - function yy_r2_9($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TO; - } - function yy_r2_10($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_STEP; - } - function yy_r2_11($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_INSTANCEOF; - } - function yy_r2_12($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_IDENTITY; - } - function yy_r2_13($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_NONEIDENTITY; - } - function yy_r2_14($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_EQUALS; - } - function yy_r2_15($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_NOTEQUALS; - } - function yy_r2_17($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_GREATEREQUAL; - } - function yy_r2_19($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LESSEQUAL; - } - function yy_r2_21($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_GREATERTHAN; - } - function yy_r2_22($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LESSTHAN; - } - function yy_r2_23($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_MOD; - } - function yy_r2_24($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_NOT; - } - function yy_r2_25($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LAND; - } - function yy_r2_26($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LOR; - } - function yy_r2_27($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LXOR; - } - function yy_r2_28($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISODDBY; - } - function yy_r2_29($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISNOTODDBY; - } - function yy_r2_30($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISODD; - } - function yy_r2_31($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISNOTODD; - } - function yy_r2_32($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISEVENBY; - } - function yy_r2_33($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISNOTEVENBY; - } - function yy_r2_34($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISEVEN; - } - function yy_r2_35($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISNOTEVEN; - } - function yy_r2_36($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISDIVBY; - } - function yy_r2_37($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISNOTDIVBY; - } - function yy_r2_38($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TYPECAST; - } - function yy_r2_42($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_OPENP; - } - function yy_r2_43($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_CLOSEP; - } - function yy_r2_44($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_OPENB; - } - function yy_r2_45($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_CLOSEB; - } - function yy_r2_46($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_PTR; - } - function yy_r2_47($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_APTR; - } - function yy_r2_48($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_EQUAL; - } - function yy_r2_49($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_INCDEC; - } - function yy_r2_50($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_UNIMATH; - } - function yy_r2_52($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_MATH; - } - function yy_r2_54($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_AT; - } - function yy_r2_55($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_HATCH; - } - function yy_r2_56($yy_subpatterns) - { - - // resolve conflicts with shorttag and right_delimiter starting with '=' - if (substr($this->data, $this->counter + strlen($this->value) - 1, $this->rdel_length) == $this->smarty->right_delimiter) { - preg_match("/\s+/",$this->value,$match); - $this->value = $match[0]; - $this->token = Smarty_Internal_Templateparser::TP_SPACE; - } else { - $this->token = Smarty_Internal_Templateparser::TP_ATTR; - } - } - function yy_r2_57($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ID; - } - function yy_r2_58($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_INTEGER; - } - function yy_r2_59($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; - $this->yypopstate(); - } - function yy_r2_60($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_VERT; - } - function yy_r2_61($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_DOT; - } - function yy_r2_62($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_COMMA; - } - function yy_r2_63($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_SEMICOLON; - } - function yy_r2_64($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_DOUBLECOLON; - } - function yy_r2_65($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_COLON; - } - function yy_r2_66($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ANDSYM; - } - function yy_r2_67($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_QMARK; - } - function yy_r2_68($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_HEX; - } - function yy_r2_69($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_SPACE; - } - function yy_r2_70($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELIF; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r2_72($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r2_73($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r2_74($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r2_75($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r2_76($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - - - - public function yylex3() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 0, - 4 => 0, - 5 => 0, - 6 => 0, - 7 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(".$this->ldel."\\s*literal\\s*".$this->rdel.")|\G(".$this->ldel."\\s*\/literal\\s*".$this->rdel.")|\G(<\\?(?:php\\w+|=|[a-zA-Z]+)?)|\G(\\?>)|\G(<%)|\G(%>)|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state LITERAL'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r3_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const LITERAL = 3; - function yy_r3_1($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; - $this->yypushstate(self::LITERAL); - } - } - function yy_r3_2($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LITERALEND; - $this->yypopstate(); - } - } - function yy_r3_3($yy_subpatterns) - { - - if (in_array($this->value, Array('token = Smarty_Internal_Templateparser::TP_PHPSTARTTAG; - } else { - $this->token = Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG; - $this->value = substr($this->value, 0, 2); - } - } - function yy_r3_4($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_PHPENDTAG; - } - function yy_r3_5($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ASPSTARTTAG; - } - function yy_r3_6($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ASPENDTAG; - } - function yy_r3_7($yy_subpatterns) - { - - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - preg_match("/{$this->ldel}\/?literal{$this->rdel}|<\?|<%|\?>|%>/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); - if (isset($match[0][1])) { - $to = $match[0][1]; - } else { - $this->compiler->trigger_template_error ("missing or misspelled literal closing tag"); - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Templateparser::TP_LITERAL; - } - - - public function yylex4() - { - $tokenMap = array ( - 1 => 1, - 3 => 0, - 4 => 0, - 5 => 0, - 6 => 0, - 7 => 0, - 8 => 0, - 9 => 0, - 10 => 0, - 11 => 3, - 15 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(".$this->ldel."\\s*(if|elseif|else if|while)\\s+)|\G(".$this->ldel."\\s*for\\s+)|\G(".$this->ldel."\\s*foreach(?![^\s]))|\G(".$this->ldel."\\s*\/)|\G(".$this->ldel."\\s*)|\G(\")|\G(`\\$)|\G(\\$[0-9]*[a-zA-Z_]\\w*)|\G(\\$)|\G(([^\"\\\\]*?)((?:\\\\.[^\"\\\\]*?)*?)(?=(".$this->ldel."|\\$|`\\$|\")))|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state DOUBLEQUOTEDSTRING'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r4_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const DOUBLEQUOTEDSTRING = 4; - function yy_r4_1($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELIF; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r4_3($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r4_4($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r4_5($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r4_6($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r4_7($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_QUOTE; - $this->yypopstate(); - } - function yy_r4_8($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; - $this->value = substr($this->value,0,-1); - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - function yy_r4_9($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; - } - function yy_r4_10($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - function yy_r4_11($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - function yy_r4_15($yy_subpatterns) - { - - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - - - public function yylex5() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 0, - 4 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(".$this->ldel."\\s*strip\\s*".$this->rdel.")|\G(".$this->ldel."\\s*\/strip\\s*".$this->rdel.")|\G(".$this->ldel."\\s*block)|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state CHILDBODY'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r5_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const CHILDBODY = 5; - function yy_r5_1($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - return false; - } else { - $this->token = Smarty_Internal_Templateparser::TP_STRIPON; - } - } - function yy_r5_2($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - return false; - } else { - $this->token = Smarty_Internal_Templateparser::TP_STRIPOFF; - } - } - function yy_r5_3($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - return false; - } else { - $this->yypopstate(); - return true; - } - } - function yy_r5_4($yy_subpatterns) - { - - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - preg_match("/".$this->ldel."\s*((\/)?strip\s*".$this->rdel."|block\s+)/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); - if (isset($match[0][1])) { - $to = $match[0][1]; - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - return false; - } - - - public function yylex6() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 1, - 5 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(".$this->ldel."\\s*block)|\G(".$this->ldel."\\s*\/block)|\G(".$this->ldel."\\s*[$]smarty\\.block\\.(child|parent))|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state CHILDBLOCK'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r6_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const CHILDBLOCK = 6; - function yy_r6_1($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_BLOCKSOURCE; - } else { - $this->yypopstate(); - return true; - } - } - function yy_r6_2($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_BLOCKSOURCE; - } else { - $this->yypopstate(); - return true; - } - } - function yy_r6_3($yy_subpatterns) - { - - if ($this->smarty->auto_literal && (strpos(" \n\t\r",substr($this->value,$this->ldel_length,1)) !== false)) { - $this->token = Smarty_Internal_Templateparser::TP_BLOCKSOURCE; - } else { - $this->yypopstate(); - return true; - } - } - function yy_r6_5($yy_subpatterns) - { - - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - preg_match("/".$this->ldel."\s*((\/)?block(\s|".$this->rdel.")|[\$]smarty\.block\.(child|parent)\s*".$this->rdel.")/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); - if (isset($match[0][1])) { - $to = $match[0][1]; - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Templateparser::TP_BLOCKSOURCE; - } - -} diff --git a/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_templateparser.php b/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_templateparser.php deleted file mode 100644 index 482af6e2..00000000 --- a/lib/classes/Smarty-3.1.15/libs/sysplugins/smarty_internal_templateparser.php +++ /dev/null @@ -1,3244 +0,0 @@ -string = $s->string; - $this->metadata = $s->metadata; - } else { - $this->string = (string) $s; - if ($m instanceof TP_yyToken) { - $this->metadata = $m->metadata; - } elseif (is_array($m)) { - $this->metadata = $m; - } - } - } - - public function __toString() - { - return $this->_string; - } - - public function offsetExists($offset) - { - return isset($this->metadata[$offset]); - } - - public function offsetGet($offset) - { - return $this->metadata[$offset]; - } - - public function offsetSet($offset, $value) - { - if ($offset === null) { - if (isset($value[0])) { - $x = ($value instanceof TP_yyToken) ? - $value->metadata : $value; - $this->metadata = array_merge($this->metadata, $x); - - return; - } - $offset = count($this->metadata); - } - if ($value === null) { - return; - } - if ($value instanceof TP_yyToken) { - if ($value->metadata) { - $this->metadata[$offset] = $value->metadata; - } - } elseif ($value) { - $this->metadata[$offset] = $value; - } - } - - public function offsetUnset($offset) - { - unset($this->metadata[$offset]); - } -} - -class TP_yyStackEntry -{ - public $stateno; /* The state-number */ - public $major; /* The major token value. This is the code - ** number for the token at this stack level */ - public $minor; /* The user-supplied minor token value. This - ** is the value of the token */ -}; - - -#line 13 "smarty_internal_templateparser.y" -class Smarty_Internal_Templateparser#line 80 "smarty_internal_templateparser.php" -{ -#line 15 "smarty_internal_templateparser.y" - - const Err1 = "Security error: Call to private object member not allowed"; - const Err2 = "Security error: Call to dynamic object member not allowed"; - const Err3 = "PHP in template not allowed. Use SmartyBC to enable it"; - // states whether the parse was successful or not - public $successful = true; - public $retvalue = 0; - public static $prefix_number = 0; - private $lex; - private $internalError = false; - private $strip = false; - - function __construct($lex, $compiler) { - $this->lex = $lex; - $this->compiler = $compiler; - $this->smarty = $this->compiler->smarty; - $this->template = $this->compiler->template; - $this->compiler->has_variable_string = false; - $this->compiler->prefix_code = array(); - $this->block_nesting_level = 0; - if ($this->security = isset($this->smarty->security_policy)) { - $this->php_handling = $this->smarty->security_policy->php_handling; - } else { - $this->php_handling = $this->smarty->php_handling; - } - $this->is_xml = false; - $this->asp_tags = (ini_get('asp_tags') != '0'); - $this->current_buffer = $this->root_buffer = new _smarty_template_buffer($this); - } - - public static function escape_start_tag($tag_text) { - $tag = preg_replace('/\A<\?(.*)\z/', '<?\1', $tag_text, -1 , $count); //Escape tag - return $tag; - } - - public static function escape_end_tag($tag_text) { - return '?>'; - } - - public function compileVariable($variable) { - if (strpos($variable,'(') == 0) { - // not a variable variable - $var = trim($variable,'\''); - $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable($var, null, true, false)->nocache; - $this->template->properties['variables'][$var] = $this->compiler->tag_nocache|$this->compiler->nocache; - } -// return '(isset($_smarty_tpl->tpl_vars['. $variable .'])?$_smarty_tpl->tpl_vars['. $variable .']->value:$_smarty_tpl->getVariable('. $variable .')->value)'; - return '$_smarty_tpl->tpl_vars['. $variable .']->value'; - } -#line 133 "smarty_internal_templateparser.php" - - const TP_VERT = 1; - const TP_COLON = 2; - const TP_RDEL = 3; - const TP_COMMENT = 4; - const TP_PHPSTARTTAG = 5; - const TP_PHPENDTAG = 6; - const TP_ASPSTARTTAG = 7; - const TP_ASPENDTAG = 8; - const TP_FAKEPHPSTARTTAG = 9; - const TP_XMLTAG = 10; - const TP_TEXT = 11; - const TP_STRIPON = 12; - const TP_STRIPOFF = 13; - const TP_BLOCKSOURCE = 14; - const TP_LITERALSTART = 15; - const TP_LITERALEND = 16; - const TP_LITERAL = 17; - const TP_LDEL = 18; - const TP_DOLLAR = 19; - const TP_ID = 20; - const TP_EQUAL = 21; - const TP_PTR = 22; - const TP_LDELIF = 23; - const TP_LDELFOR = 24; - const TP_SEMICOLON = 25; - const TP_INCDEC = 26; - const TP_TO = 27; - const TP_STEP = 28; - const TP_LDELFOREACH = 29; - const TP_SPACE = 30; - const TP_AS = 31; - const TP_APTR = 32; - const TP_LDELSETFILTER = 33; - const TP_SMARTYBLOCKCHILDPARENT = 34; - const TP_LDELSLASH = 35; - const TP_ATTR = 36; - const TP_INTEGER = 37; - const TP_COMMA = 38; - const TP_OPENP = 39; - const TP_CLOSEP = 40; - const TP_MATH = 41; - const TP_UNIMATH = 42; - const TP_ANDSYM = 43; - const TP_ISIN = 44; - const TP_ISDIVBY = 45; - const TP_ISNOTDIVBY = 46; - const TP_ISEVEN = 47; - const TP_ISNOTEVEN = 48; - const TP_ISEVENBY = 49; - const TP_ISNOTEVENBY = 50; - const TP_ISODD = 51; - const TP_ISNOTODD = 52; - const TP_ISODDBY = 53; - const TP_ISNOTODDBY = 54; - const TP_INSTANCEOF = 55; - const TP_QMARK = 56; - const TP_NOT = 57; - const TP_TYPECAST = 58; - const TP_HEX = 59; - const TP_DOT = 60; - const TP_SINGLEQUOTESTRING = 61; - const TP_DOUBLECOLON = 62; - const TP_AT = 63; - const TP_HATCH = 64; - const TP_OPENB = 65; - const TP_CLOSEB = 66; - const TP_EQUALS = 67; - const TP_NOTEQUALS = 68; - const TP_GREATERTHAN = 69; - const TP_LESSTHAN = 70; - const TP_GREATEREQUAL = 71; - const TP_LESSEQUAL = 72; - const TP_IDENTITY = 73; - const TP_NONEIDENTITY = 74; - const TP_MOD = 75; - const TP_LAND = 76; - const TP_LOR = 77; - const TP_LXOR = 78; - const TP_QUOTE = 79; - const TP_BACKTICK = 80; - const TP_DOLLARID = 81; - const YY_NO_ACTION = 570; - const YY_ACCEPT_ACTION = 569; - const YY_ERROR_ACTION = 568; - - const YY_SZ_ACTTAB = 2407; -static public $yy_action = array( - /* 0 */ 219, 309, 305, 301, 302, 303, 304, 310, 311, 317, - /* 10 */ 318, 319, 201, 30, 273, 9, 33, 238, 280, 15, - /* 20 */ 5, 108, 235, 234, 220, 7, 126, 42, 30, 30, - /* 30 */ 259, 211, 256, 495, 15, 15, 10, 33, 495, 280, - /* 40 */ 46, 47, 51, 45, 24, 14, 352, 353, 39, 37, - /* 50 */ 278, 359, 12, 25, 219, 219, 326, 434, 219, 192, - /* 60 */ 434, 569, 95, 263, 227, 306, 360, 361, 358, 357, - /* 70 */ 354, 355, 356, 342, 341, 328, 329, 330, 292, 219, - /* 80 */ 202, 322, 242, 30, 434, 231, 207, 434, 143, 15, - /* 90 */ 434, 35, 158, 434, 46, 47, 51, 45, 24, 14, - /* 100 */ 352, 353, 39, 37, 278, 359, 12, 25, 219, 48, - /* 110 */ 32, 219, 48, 391, 196, 2, 31, 138, 321, 4, - /* 120 */ 360, 361, 358, 357, 354, 355, 356, 342, 341, 328, - /* 130 */ 329, 330, 127, 48, 290, 349, 251, 30, 145, 140, - /* 140 */ 30, 207, 264, 15, 200, 322, 15, 334, 46, 47, - /* 150 */ 51, 45, 24, 14, 352, 353, 39, 37, 278, 359, - /* 160 */ 12, 25, 219, 289, 219, 48, 431, 297, 219, 33, - /* 170 */ 396, 280, 18, 191, 360, 361, 358, 357, 354, 355, - /* 180 */ 356, 342, 341, 328, 329, 330, 300, 285, 286, 287, - /* 190 */ 299, 206, 219, 431, 428, 194, 201, 315, 314, 431, - /* 200 */ 207, 281, 46, 47, 51, 45, 24, 14, 352, 353, - /* 210 */ 39, 37, 278, 359, 12, 25, 219, 33, 48, 280, - /* 220 */ 34, 30, 48, 197, 322, 276, 158, 15, 360, 361, - /* 230 */ 358, 357, 354, 355, 356, 342, 341, 328, 329, 330, - /* 240 */ 230, 338, 16, 289, 103, 179, 244, 219, 295, 2, - /* 250 */ 41, 33, 265, 280, 283, 148, 46, 47, 51, 45, - /* 260 */ 24, 14, 352, 353, 39, 37, 278, 359, 12, 25, - /* 270 */ 219, 207, 145, 43, 132, 189, 109, 333, 307, 227, - /* 280 */ 306, 190, 360, 361, 358, 357, 354, 355, 356, 342, - /* 290 */ 341, 328, 329, 330, 20, 22, 248, 339, 219, 99, - /* 300 */ 174, 48, 324, 33, 346, 280, 18, 288, 207, 283, - /* 310 */ 46, 47, 51, 45, 24, 14, 352, 353, 39, 37, - /* 320 */ 278, 359, 12, 25, 219, 289, 207, 30, 41, 110, - /* 330 */ 275, 2, 41, 15, 272, 266, 360, 361, 358, 357, - /* 340 */ 354, 355, 356, 342, 341, 328, 329, 330, 242, 40, - /* 350 */ 236, 347, 104, 177, 145, 219, 44, 316, 148, 135, - /* 360 */ 228, 27, 283, 269, 46, 47, 51, 45, 24, 14, - /* 370 */ 352, 353, 39, 37, 278, 359, 12, 25, 219, 207, - /* 380 */ 208, 33, 7, 280, 245, 239, 136, 173, 241, 279, - /* 390 */ 360, 361, 358, 357, 354, 355, 356, 342, 341, 328, - /* 400 */ 329, 330, 29, 158, 106, 13, 122, 171, 181, 6, - /* 410 */ 33, 15, 226, 33, 219, 237, 283, 283, 46, 47, - /* 420 */ 51, 45, 24, 14, 352, 353, 39, 37, 278, 359, - /* 430 */ 12, 25, 219, 205, 205, 252, 313, 238, 312, 235, - /* 440 */ 232, 195, 97, 127, 360, 361, 358, 357, 354, 355, - /* 450 */ 356, 342, 341, 328, 329, 330, 28, 320, 230, 105, - /* 460 */ 182, 164, 176, 33, 279, 254, 282, 186, 207, 283, - /* 470 */ 283, 253, 46, 47, 51, 45, 24, 14, 352, 353, - /* 480 */ 39, 37, 278, 359, 12, 25, 219, 205, 260, 107, - /* 490 */ 235, 262, 33, 193, 214, 332, 166, 198, 360, 361, - /* 500 */ 358, 357, 354, 355, 356, 342, 341, 328, 329, 330, - /* 510 */ 137, 175, 167, 291, 308, 344, 185, 261, 267, 161, - /* 520 */ 283, 283, 128, 337, 124, 283, 46, 47, 51, 45, - /* 530 */ 24, 14, 352, 353, 39, 37, 278, 359, 12, 25, - /* 540 */ 219, 38, 205, 203, 141, 169, 257, 134, 35, 130, - /* 550 */ 156, 114, 360, 361, 358, 357, 354, 355, 356, 342, - /* 560 */ 341, 328, 329, 330, 320, 158, 320, 241, 36, 293, - /* 570 */ 298, 94, 21, 26, 284, 219, 292, 168, 271, 162, - /* 580 */ 46, 47, 51, 45, 24, 14, 352, 353, 39, 37, - /* 590 */ 278, 359, 12, 25, 219, 279, 229, 205, 44, 281, - /* 600 */ 187, 17, 270, 331, 98, 127, 360, 361, 358, 357, - /* 610 */ 354, 355, 356, 342, 341, 328, 329, 330, 199, 320, - /* 620 */ 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, - /* 630 */ 331, 331, 331, 331, 46, 47, 51, 45, 24, 14, - /* 640 */ 352, 353, 39, 37, 278, 359, 12, 25, 219, 331, - /* 650 */ 268, 331, 331, 331, 331, 331, 331, 331, 125, 115, - /* 660 */ 360, 361, 358, 357, 354, 355, 356, 342, 341, 328, - /* 670 */ 329, 330, 279, 331, 320, 331, 331, 331, 331, 331, - /* 680 */ 331, 331, 331, 331, 331, 331, 331, 331, 46, 47, - /* 690 */ 51, 45, 24, 14, 352, 353, 39, 37, 278, 359, - /* 700 */ 12, 25, 219, 331, 204, 331, 331, 331, 331, 331, - /* 710 */ 331, 159, 100, 116, 360, 361, 358, 357, 354, 355, - /* 720 */ 356, 342, 341, 328, 329, 330, 320, 320, 320, 331, - /* 730 */ 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, - /* 740 */ 331, 331, 46, 47, 51, 45, 24, 14, 352, 353, - /* 750 */ 39, 37, 278, 359, 12, 25, 219, 331, 331, 331, - /* 760 */ 331, 331, 331, 331, 331, 102, 117, 331, 360, 361, - /* 770 */ 358, 357, 354, 355, 356, 342, 341, 328, 329, 330, - /* 780 */ 320, 320, 331, 331, 331, 331, 331, 331, 331, 331, - /* 790 */ 331, 331, 331, 331, 331, 331, 46, 47, 51, 45, - /* 800 */ 24, 14, 352, 353, 39, 37, 278, 359, 12, 25, - /* 810 */ 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, - /* 820 */ 158, 331, 360, 361, 358, 357, 354, 355, 356, 342, - /* 830 */ 341, 328, 329, 330, 331, 331, 331, 331, 46, 47, - /* 840 */ 51, 45, 24, 14, 352, 353, 39, 37, 278, 359, - /* 850 */ 12, 25, 331, 331, 331, 331, 331, 331, 211, 331, - /* 860 */ 331, 331, 331, 10, 360, 361, 358, 357, 354, 355, - /* 870 */ 356, 342, 341, 328, 329, 330, 331, 331, 331, 331, - /* 880 */ 331, 331, 331, 9, 142, 212, 331, 331, 5, 108, - /* 890 */ 331, 246, 331, 331, 126, 157, 183, 331, 259, 123, - /* 900 */ 256, 331, 250, 331, 23, 283, 331, 52, 277, 331, - /* 910 */ 331, 255, 350, 348, 331, 345, 331, 279, 180, 178, - /* 920 */ 331, 331, 49, 50, 296, 240, 351, 283, 283, 106, - /* 930 */ 1, 274, 331, 147, 331, 331, 331, 331, 331, 279, - /* 940 */ 279, 9, 144, 92, 96, 233, 5, 108, 331, 345, - /* 950 */ 331, 331, 126, 331, 331, 246, 259, 323, 256, 146, - /* 960 */ 250, 331, 23, 123, 184, 52, 331, 331, 331, 331, - /* 970 */ 246, 331, 343, 283, 153, 255, 350, 348, 123, 345, - /* 980 */ 49, 50, 296, 240, 351, 279, 331, 106, 1, 331, - /* 990 */ 255, 350, 348, 331, 345, 33, 331, 280, 331, 9, - /* 1000 */ 142, 224, 96, 331, 5, 108, 331, 30, 331, 247, - /* 1010 */ 126, 246, 331, 15, 259, 149, 256, 331, 250, 123, - /* 1020 */ 23, 331, 331, 52, 331, 331, 331, 331, 331, 331, - /* 1030 */ 331, 255, 350, 348, 331, 345, 331, 331, 49, 50, - /* 1040 */ 296, 240, 351, 331, 331, 106, 1, 331, 331, 331, - /* 1050 */ 331, 331, 33, 331, 280, 331, 331, 9, 135, 224, - /* 1060 */ 96, 331, 5, 108, 30, 246, 258, 331, 126, 151, - /* 1070 */ 15, 246, 259, 123, 256, 154, 250, 331, 11, 123, - /* 1080 */ 331, 52, 331, 331, 331, 255, 350, 348, 331, 345, - /* 1090 */ 331, 255, 350, 348, 331, 345, 49, 50, 296, 240, - /* 1100 */ 351, 331, 331, 106, 1, 331, 331, 331, 331, 331, - /* 1110 */ 331, 331, 331, 331, 331, 9, 142, 210, 96, 331, - /* 1120 */ 5, 108, 331, 331, 331, 331, 126, 246, 331, 331, - /* 1130 */ 259, 155, 256, 331, 216, 123, 23, 331, 331, 52, - /* 1140 */ 331, 331, 331, 331, 331, 331, 331, 255, 350, 348, - /* 1150 */ 331, 345, 331, 331, 49, 50, 296, 240, 351, 331, - /* 1160 */ 331, 106, 1, 331, 331, 331, 331, 331, 331, 331, - /* 1170 */ 331, 331, 331, 9, 131, 224, 96, 331, 5, 108, - /* 1180 */ 331, 331, 331, 331, 126, 246, 331, 331, 259, 152, - /* 1190 */ 256, 331, 250, 123, 3, 331, 331, 52, 331, 331, - /* 1200 */ 331, 331, 331, 331, 331, 255, 350, 348, 331, 345, - /* 1210 */ 331, 331, 49, 50, 296, 240, 351, 331, 331, 106, - /* 1220 */ 1, 331, 331, 331, 331, 331, 331, 331, 331, 331, - /* 1230 */ 331, 9, 142, 213, 96, 331, 5, 108, 331, 331, - /* 1240 */ 331, 331, 126, 246, 331, 331, 259, 150, 256, 331, - /* 1250 */ 250, 123, 23, 331, 331, 52, 331, 331, 331, 331, - /* 1260 */ 331, 331, 331, 255, 350, 348, 331, 345, 331, 331, - /* 1270 */ 49, 50, 296, 240, 351, 331, 331, 106, 1, 331, - /* 1280 */ 219, 331, 401, 331, 331, 331, 331, 331, 331, 9, - /* 1290 */ 142, 209, 96, 331, 5, 108, 331, 331, 331, 331, - /* 1300 */ 126, 249, 331, 331, 259, 331, 256, 331, 250, 30, - /* 1310 */ 23, 190, 163, 52, 331, 15, 331, 331, 2, 331, - /* 1320 */ 331, 283, 331, 331, 20, 22, 331, 331, 49, 50, - /* 1330 */ 296, 240, 351, 331, 331, 106, 1, 331, 207, 331, - /* 1340 */ 331, 145, 331, 331, 331, 432, 331, 9, 139, 224, - /* 1350 */ 96, 331, 5, 108, 331, 331, 331, 331, 126, 331, - /* 1360 */ 331, 331, 259, 243, 256, 331, 250, 331, 23, 190, - /* 1370 */ 188, 52, 432, 331, 331, 331, 331, 331, 432, 283, - /* 1380 */ 331, 2, 20, 22, 331, 331, 49, 50, 296, 240, - /* 1390 */ 351, 331, 331, 106, 1, 331, 207, 331, 331, 331, - /* 1400 */ 331, 331, 331, 331, 145, 9, 135, 224, 96, 331, - /* 1410 */ 5, 108, 331, 331, 331, 331, 126, 331, 331, 331, - /* 1420 */ 259, 331, 256, 331, 250, 331, 11, 101, 160, 52, - /* 1430 */ 331, 331, 331, 331, 331, 331, 331, 283, 331, 331, - /* 1440 */ 20, 22, 331, 331, 49, 50, 296, 240, 351, 331, - /* 1450 */ 331, 106, 331, 331, 207, 331, 331, 331, 331, 331, - /* 1460 */ 331, 331, 331, 9, 135, 225, 96, 331, 5, 108, - /* 1470 */ 331, 331, 331, 331, 126, 331, 331, 331, 259, 331, - /* 1480 */ 256, 331, 250, 331, 11, 331, 477, 52, 331, 331, - /* 1490 */ 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, - /* 1500 */ 331, 331, 49, 50, 296, 240, 351, 331, 477, 106, - /* 1510 */ 477, 477, 331, 477, 477, 331, 331, 331, 331, 477, - /* 1520 */ 331, 477, 2, 477, 96, 331, 331, 331, 331, 331, - /* 1530 */ 331, 331, 331, 331, 331, 246, 331, 331, 477, 120, - /* 1540 */ 331, 331, 84, 123, 331, 145, 331, 331, 331, 477, - /* 1550 */ 331, 294, 327, 331, 331, 255, 350, 348, 331, 345, - /* 1560 */ 331, 331, 331, 477, 331, 331, 331, 246, 331, 218, - /* 1570 */ 362, 120, 331, 331, 84, 123, 331, 331, 331, 331, - /* 1580 */ 331, 331, 331, 294, 327, 331, 331, 255, 350, 348, - /* 1590 */ 246, 345, 331, 331, 129, 331, 331, 61, 119, 232, - /* 1600 */ 331, 246, 335, 331, 331, 129, 294, 327, 80, 123, - /* 1610 */ 255, 350, 348, 331, 345, 331, 331, 294, 327, 331, - /* 1620 */ 331, 255, 350, 348, 331, 345, 246, 331, 331, 331, - /* 1630 */ 129, 331, 215, 80, 123, 331, 331, 331, 331, 331, - /* 1640 */ 331, 331, 294, 327, 331, 331, 255, 350, 348, 331, - /* 1650 */ 345, 331, 331, 331, 246, 190, 170, 221, 129, 331, - /* 1660 */ 331, 55, 119, 133, 331, 283, 331, 331, 20, 22, - /* 1670 */ 294, 327, 331, 331, 255, 350, 348, 246, 345, 331, - /* 1680 */ 331, 129, 207, 331, 80, 123, 331, 331, 331, 331, - /* 1690 */ 331, 331, 331, 294, 327, 331, 246, 255, 350, 348, - /* 1700 */ 129, 345, 331, 89, 123, 331, 331, 331, 223, 331, - /* 1710 */ 331, 331, 294, 327, 331, 331, 255, 350, 348, 246, - /* 1720 */ 345, 331, 331, 129, 331, 331, 70, 123, 331, 331, - /* 1730 */ 246, 331, 331, 331, 111, 294, 327, 67, 123, 255, - /* 1740 */ 350, 348, 331, 345, 331, 331, 294, 327, 331, 246, - /* 1750 */ 255, 350, 348, 129, 345, 331, 86, 123, 331, 331, - /* 1760 */ 331, 331, 331, 331, 331, 294, 327, 331, 246, 255, - /* 1770 */ 350, 348, 129, 345, 331, 90, 123, 331, 331, 331, - /* 1780 */ 331, 331, 331, 331, 294, 327, 331, 246, 255, 350, - /* 1790 */ 348, 129, 345, 331, 77, 123, 331, 331, 331, 331, - /* 1800 */ 331, 331, 331, 294, 327, 331, 246, 255, 350, 348, - /* 1810 */ 129, 345, 331, 74, 123, 331, 331, 246, 331, 331, - /* 1820 */ 331, 129, 294, 327, 66, 123, 255, 350, 348, 331, - /* 1830 */ 345, 331, 331, 294, 327, 331, 246, 222, 350, 348, - /* 1840 */ 129, 345, 331, 69, 123, 331, 331, 331, 331, 331, - /* 1850 */ 331, 331, 294, 327, 331, 246, 255, 350, 348, 129, - /* 1860 */ 345, 331, 78, 123, 331, 331, 331, 331, 331, 331, - /* 1870 */ 331, 294, 327, 331, 246, 255, 350, 348, 129, 345, - /* 1880 */ 331, 60, 123, 331, 331, 331, 331, 331, 331, 331, - /* 1890 */ 294, 327, 331, 246, 255, 350, 348, 129, 345, 331, - /* 1900 */ 53, 123, 331, 331, 246, 331, 331, 331, 129, 294, - /* 1910 */ 327, 65, 123, 255, 350, 348, 331, 345, 331, 331, - /* 1920 */ 294, 327, 336, 331, 255, 350, 348, 331, 345, 8, - /* 1930 */ 331, 331, 331, 331, 5, 108, 331, 331, 331, 331, - /* 1940 */ 126, 331, 331, 246, 259, 331, 256, 129, 331, 331, - /* 1950 */ 72, 123, 331, 331, 331, 331, 331, 331, 331, 294, - /* 1960 */ 327, 331, 246, 255, 350, 348, 129, 345, 331, 85, - /* 1970 */ 123, 331, 331, 331, 331, 331, 331, 331, 294, 327, - /* 1980 */ 331, 246, 255, 350, 348, 129, 345, 331, 81, 123, - /* 1990 */ 331, 19, 340, 331, 331, 331, 331, 294, 327, 331, - /* 2000 */ 246, 255, 350, 348, 113, 345, 331, 82, 123, 331, - /* 2010 */ 331, 246, 331, 331, 331, 93, 294, 327, 54, 121, - /* 2020 */ 255, 350, 348, 331, 345, 331, 331, 294, 327, 331, - /* 2030 */ 246, 217, 350, 348, 129, 345, 331, 58, 123, 331, - /* 2040 */ 331, 331, 331, 331, 331, 331, 294, 327, 331, 336, - /* 2050 */ 255, 350, 348, 331, 345, 331, 8, 331, 331, 331, - /* 2060 */ 331, 5, 108, 331, 331, 331, 331, 126, 246, 331, - /* 2070 */ 331, 259, 129, 256, 331, 88, 123, 331, 331, 246, - /* 2080 */ 331, 331, 331, 129, 294, 327, 56, 123, 255, 350, - /* 2090 */ 348, 331, 345, 331, 331, 294, 327, 331, 331, 255, - /* 2100 */ 350, 348, 331, 345, 246, 331, 331, 331, 129, 331, - /* 2110 */ 331, 68, 123, 331, 331, 331, 331, 325, 19, 340, - /* 2120 */ 294, 327, 331, 331, 255, 350, 348, 331, 345, 331, - /* 2130 */ 331, 331, 331, 246, 331, 331, 331, 118, 331, 331, - /* 2140 */ 59, 123, 331, 331, 331, 331, 190, 172, 331, 294, - /* 2150 */ 327, 331, 331, 255, 350, 348, 283, 345, 246, 20, - /* 2160 */ 22, 331, 93, 331, 331, 57, 121, 331, 331, 331, - /* 2170 */ 331, 331, 331, 207, 294, 327, 331, 246, 255, 350, - /* 2180 */ 348, 129, 345, 331, 64, 123, 331, 331, 246, 331, - /* 2190 */ 331, 331, 129, 294, 327, 63, 123, 255, 350, 348, - /* 2200 */ 331, 345, 331, 331, 294, 327, 331, 246, 255, 350, - /* 2210 */ 348, 129, 345, 331, 73, 123, 331, 331, 331, 331, - /* 2220 */ 190, 165, 331, 294, 327, 331, 331, 255, 350, 348, - /* 2230 */ 283, 345, 331, 20, 22, 331, 246, 331, 331, 331, - /* 2240 */ 129, 331, 331, 87, 123, 331, 331, 207, 331, 331, - /* 2250 */ 331, 331, 294, 327, 331, 331, 255, 350, 348, 331, - /* 2260 */ 345, 246, 331, 331, 331, 129, 331, 331, 75, 123, - /* 2270 */ 331, 331, 246, 331, 331, 331, 129, 294, 327, 61, - /* 2280 */ 123, 255, 350, 348, 331, 345, 331, 331, 294, 327, - /* 2290 */ 331, 246, 255, 350, 348, 129, 345, 331, 71, 123, - /* 2300 */ 331, 331, 246, 331, 331, 331, 129, 294, 327, 83, - /* 2310 */ 123, 255, 350, 348, 331, 345, 331, 331, 294, 327, - /* 2320 */ 331, 331, 255, 350, 348, 331, 345, 246, 331, 331, - /* 2330 */ 331, 112, 331, 331, 76, 123, 331, 331, 331, 331, - /* 2340 */ 331, 331, 331, 294, 327, 331, 331, 255, 350, 348, - /* 2350 */ 331, 345, 246, 331, 331, 331, 129, 331, 331, 91, - /* 2360 */ 123, 331, 331, 246, 331, 331, 331, 129, 294, 327, - /* 2370 */ 62, 123, 255, 350, 348, 331, 345, 331, 331, 294, - /* 2380 */ 327, 331, 246, 255, 350, 348, 129, 345, 331, 79, - /* 2390 */ 123, 331, 331, 331, 331, 331, 331, 331, 294, 327, - /* 2400 */ 331, 331, 255, 350, 348, 331, 345, - ); - static public $yy_lookahead = array( - /* 0 */ 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, - /* 10 */ 13, 14, 15, 30, 66, 18, 18, 2, 20, 36, - /* 20 */ 23, 24, 94, 95, 96, 39, 29, 28, 30, 30, - /* 30 */ 33, 60, 35, 60, 36, 36, 65, 18, 65, 20, - /* 40 */ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, - /* 50 */ 51, 52, 53, 54, 1, 1, 3, 3, 1, 91, - /* 60 */ 3, 83, 84, 85, 86, 87, 67, 68, 69, 70, - /* 70 */ 71, 72, 73, 74, 75, 76, 77, 78, 112, 1, - /* 80 */ 114, 115, 63, 30, 30, 31, 118, 30, 19, 36, - /* 90 */ 36, 21, 22, 36, 41, 42, 43, 44, 45, 46, - /* 100 */ 47, 48, 49, 50, 51, 52, 53, 54, 1, 55, - /* 110 */ 32, 1, 55, 3, 91, 39, 18, 19, 20, 38, - /* 120 */ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - /* 130 */ 77, 78, 62, 55, 20, 37, 60, 30, 62, 20, - /* 140 */ 30, 118, 66, 36, 114, 115, 36, 66, 41, 42, - /* 150 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, - /* 160 */ 53, 54, 1, 26, 1, 55, 3, 37, 1, 18, - /* 170 */ 3, 20, 21, 91, 67, 68, 69, 70, 71, 72, - /* 180 */ 73, 74, 75, 76, 77, 78, 5, 6, 7, 8, - /* 190 */ 9, 20, 1, 30, 3, 100, 15, 16, 17, 36, - /* 200 */ 118, 119, 41, 42, 43, 44, 45, 46, 47, 48, - /* 210 */ 49, 50, 51, 52, 53, 54, 1, 18, 55, 20, - /* 220 */ 21, 30, 55, 114, 115, 26, 22, 36, 67, 68, - /* 230 */ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - /* 240 */ 86, 80, 32, 26, 91, 92, 31, 1, 109, 39, - /* 250 */ 38, 18, 40, 20, 101, 116, 41, 42, 43, 44, - /* 260 */ 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - /* 270 */ 1, 118, 62, 18, 19, 20, 122, 123, 85, 86, - /* 280 */ 87, 91, 67, 68, 69, 70, 71, 72, 73, 74, - /* 290 */ 75, 76, 77, 78, 104, 105, 63, 80, 1, 91, - /* 300 */ 92, 55, 3, 18, 115, 20, 21, 20, 118, 101, - /* 310 */ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, - /* 320 */ 51, 52, 53, 54, 1, 26, 118, 30, 38, 88, - /* 330 */ 40, 39, 38, 36, 40, 66, 67, 68, 69, 70, - /* 340 */ 71, 72, 73, 74, 75, 76, 77, 78, 63, 21, - /* 350 */ 63, 109, 91, 92, 62, 1, 2, 16, 116, 19, - /* 360 */ 20, 18, 101, 40, 41, 42, 43, 44, 45, 46, - /* 370 */ 47, 48, 49, 50, 51, 52, 53, 54, 1, 118, - /* 380 */ 3, 18, 39, 20, 19, 20, 19, 111, 60, 113, - /* 390 */ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - /* 400 */ 77, 78, 21, 22, 64, 30, 39, 92, 92, 39, - /* 410 */ 18, 36, 20, 18, 1, 20, 101, 101, 41, 42, - /* 420 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, - /* 430 */ 53, 54, 1, 118, 118, 22, 87, 2, 89, 94, - /* 440 */ 95, 91, 98, 62, 67, 68, 69, 70, 71, 72, - /* 450 */ 73, 74, 75, 76, 77, 78, 21, 113, 86, 111, - /* 460 */ 92, 92, 111, 18, 113, 20, 20, 111, 118, 101, - /* 470 */ 101, 40, 41, 42, 43, 44, 45, 46, 47, 48, - /* 480 */ 49, 50, 51, 52, 53, 54, 1, 118, 3, 100, - /* 490 */ 94, 95, 18, 100, 20, 123, 111, 25, 67, 68, - /* 500 */ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - /* 510 */ 38, 92, 92, 20, 3, 3, 92, 20, 40, 64, - /* 520 */ 101, 101, 19, 3, 19, 101, 41, 42, 43, 44, - /* 530 */ 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - /* 540 */ 1, 2, 118, 20, 19, 64, 20, 19, 21, 98, - /* 550 */ 20, 98, 67, 68, 69, 70, 71, 72, 73, 74, - /* 560 */ 75, 76, 77, 78, 113, 22, 113, 60, 27, 20, - /* 570 */ 37, 20, 56, 2, 101, 1, 112, 111, 116, 111, - /* 580 */ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, - /* 590 */ 51, 52, 53, 54, 1, 113, 97, 118, 2, 119, - /* 600 */ 111, 97, 30, 124, 98, 62, 67, 68, 69, 70, - /* 610 */ 71, 72, 73, 74, 75, 76, 77, 78, 25, 113, - /* 620 */ 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, - /* 630 */ 124, 124, 124, 124, 41, 42, 43, 44, 45, 46, - /* 640 */ 47, 48, 49, 50, 51, 52, 53, 54, 1, 124, - /* 650 */ 3, 124, 124, 124, 124, 124, 124, 124, 99, 98, - /* 660 */ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - /* 670 */ 77, 78, 113, 124, 113, 124, 124, 124, 124, 124, - /* 680 */ 124, 124, 124, 124, 124, 124, 124, 124, 41, 42, - /* 690 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, - /* 700 */ 53, 54, 1, 124, 3, 124, 124, 124, 124, 124, - /* 710 */ 124, 98, 98, 98, 67, 68, 69, 70, 71, 72, - /* 720 */ 73, 74, 75, 76, 77, 78, 113, 113, 113, 124, - /* 730 */ 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, - /* 740 */ 124, 124, 41, 42, 43, 44, 45, 46, 47, 48, - /* 750 */ 49, 50, 51, 52, 53, 54, 1, 124, 124, 124, - /* 760 */ 124, 124, 124, 124, 124, 98, 98, 124, 67, 68, - /* 770 */ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - /* 780 */ 113, 113, 124, 124, 124, 124, 124, 124, 124, 124, - /* 790 */ 124, 124, 124, 124, 124, 124, 41, 42, 43, 44, - /* 800 */ 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - /* 810 */ 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, - /* 820 */ 22, 124, 67, 68, 69, 70, 71, 72, 73, 74, - /* 830 */ 75, 76, 77, 78, 124, 124, 124, 124, 41, 42, - /* 840 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, - /* 850 */ 53, 54, 124, 124, 124, 124, 124, 124, 60, 124, - /* 860 */ 124, 124, 124, 65, 67, 68, 69, 70, 71, 72, - /* 870 */ 73, 74, 75, 76, 77, 78, 124, 124, 124, 124, - /* 880 */ 124, 124, 124, 18, 19, 20, 124, 124, 23, 24, - /* 890 */ 124, 86, 124, 124, 29, 90, 92, 124, 33, 94, - /* 900 */ 35, 124, 37, 124, 39, 101, 124, 42, 103, 124, - /* 910 */ 124, 106, 107, 108, 124, 110, 124, 113, 92, 92, - /* 920 */ 124, 124, 57, 58, 59, 60, 61, 101, 101, 64, - /* 930 */ 65, 66, 124, 94, 124, 124, 124, 124, 124, 113, - /* 940 */ 113, 18, 19, 20, 79, 106, 23, 24, 124, 110, - /* 950 */ 124, 124, 29, 124, 124, 86, 33, 34, 35, 90, - /* 960 */ 37, 124, 39, 94, 92, 42, 124, 124, 124, 124, - /* 970 */ 86, 124, 103, 101, 90, 106, 107, 108, 94, 110, - /* 980 */ 57, 58, 59, 60, 61, 113, 124, 64, 65, 124, - /* 990 */ 106, 107, 108, 124, 110, 18, 124, 20, 124, 18, - /* 1000 */ 19, 20, 79, 124, 23, 24, 124, 30, 124, 32, - /* 1010 */ 29, 86, 124, 36, 33, 90, 35, 124, 37, 94, - /* 1020 */ 39, 124, 124, 42, 124, 124, 124, 124, 124, 124, - /* 1030 */ 124, 106, 107, 108, 124, 110, 124, 124, 57, 58, - /* 1040 */ 59, 60, 61, 124, 124, 64, 65, 124, 124, 124, - /* 1050 */ 124, 124, 18, 124, 20, 124, 124, 18, 19, 20, - /* 1060 */ 79, 124, 23, 24, 30, 86, 32, 124, 29, 90, - /* 1070 */ 36, 86, 33, 94, 35, 90, 37, 124, 39, 94, - /* 1080 */ 124, 42, 124, 124, 124, 106, 107, 108, 124, 110, - /* 1090 */ 124, 106, 107, 108, 124, 110, 57, 58, 59, 60, - /* 1100 */ 61, 124, 124, 64, 65, 124, 124, 124, 124, 124, - /* 1110 */ 124, 124, 124, 124, 124, 18, 19, 20, 79, 124, - /* 1120 */ 23, 24, 124, 124, 124, 124, 29, 86, 124, 124, - /* 1130 */ 33, 90, 35, 124, 37, 94, 39, 124, 124, 42, - /* 1140 */ 124, 124, 124, 124, 124, 124, 124, 106, 107, 108, - /* 1150 */ 124, 110, 124, 124, 57, 58, 59, 60, 61, 124, - /* 1160 */ 124, 64, 65, 124, 124, 124, 124, 124, 124, 124, - /* 1170 */ 124, 124, 124, 18, 19, 20, 79, 124, 23, 24, - /* 1180 */ 124, 124, 124, 124, 29, 86, 124, 124, 33, 90, - /* 1190 */ 35, 124, 37, 94, 39, 124, 124, 42, 124, 124, - /* 1200 */ 124, 124, 124, 124, 124, 106, 107, 108, 124, 110, - /* 1210 */ 124, 124, 57, 58, 59, 60, 61, 124, 124, 64, - /* 1220 */ 65, 124, 124, 124, 124, 124, 124, 124, 124, 124, - /* 1230 */ 124, 18, 19, 20, 79, 124, 23, 24, 124, 124, - /* 1240 */ 124, 124, 29, 86, 124, 124, 33, 90, 35, 124, - /* 1250 */ 37, 94, 39, 124, 124, 42, 124, 124, 124, 124, - /* 1260 */ 124, 124, 124, 106, 107, 108, 124, 110, 124, 124, - /* 1270 */ 57, 58, 59, 60, 61, 124, 124, 64, 65, 124, - /* 1280 */ 1, 124, 3, 124, 124, 124, 124, 124, 124, 18, - /* 1290 */ 19, 20, 79, 124, 23, 24, 124, 124, 124, 124, - /* 1300 */ 29, 22, 124, 124, 33, 124, 35, 124, 37, 30, - /* 1310 */ 39, 91, 92, 42, 124, 36, 124, 124, 39, 124, - /* 1320 */ 124, 101, 124, 124, 104, 105, 124, 124, 57, 58, - /* 1330 */ 59, 60, 61, 124, 124, 64, 65, 124, 118, 124, - /* 1340 */ 124, 62, 124, 124, 124, 3, 124, 18, 19, 20, - /* 1350 */ 79, 124, 23, 24, 124, 124, 124, 124, 29, 124, - /* 1360 */ 124, 124, 33, 21, 35, 124, 37, 124, 39, 91, - /* 1370 */ 92, 42, 30, 124, 124, 124, 124, 124, 36, 101, - /* 1380 */ 124, 39, 104, 105, 124, 124, 57, 58, 59, 60, - /* 1390 */ 61, 124, 124, 64, 65, 124, 118, 124, 124, 124, - /* 1400 */ 124, 124, 124, 124, 62, 18, 19, 20, 79, 124, - /* 1410 */ 23, 24, 124, 124, 124, 124, 29, 124, 124, 124, - /* 1420 */ 33, 124, 35, 124, 37, 124, 39, 91, 92, 42, - /* 1430 */ 124, 124, 124, 124, 124, 124, 124, 101, 124, 124, - /* 1440 */ 104, 105, 124, 124, 57, 58, 59, 60, 61, 124, - /* 1450 */ 124, 64, 124, 124, 118, 124, 124, 124, 124, 124, - /* 1460 */ 124, 124, 124, 18, 19, 20, 79, 124, 23, 24, - /* 1470 */ 124, 124, 124, 124, 29, 124, 124, 124, 33, 124, - /* 1480 */ 35, 124, 37, 124, 39, 124, 3, 42, 124, 124, - /* 1490 */ 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, - /* 1500 */ 124, 124, 57, 58, 59, 60, 61, 124, 25, 64, - /* 1510 */ 27, 28, 124, 30, 31, 124, 124, 124, 124, 36, - /* 1520 */ 124, 38, 39, 40, 79, 124, 124, 124, 124, 124, - /* 1530 */ 124, 124, 124, 124, 124, 86, 124, 124, 55, 90, - /* 1540 */ 124, 124, 93, 94, 124, 62, 124, 124, 124, 66, - /* 1550 */ 124, 102, 103, 124, 124, 106, 107, 108, 124, 110, - /* 1560 */ 124, 124, 124, 80, 124, 124, 124, 86, 124, 120, - /* 1570 */ 121, 90, 124, 124, 93, 94, 124, 124, 124, 124, - /* 1580 */ 124, 124, 124, 102, 103, 124, 124, 106, 107, 108, - /* 1590 */ 86, 110, 124, 124, 90, 124, 124, 93, 94, 95, - /* 1600 */ 124, 86, 121, 124, 124, 90, 102, 103, 93, 94, - /* 1610 */ 106, 107, 108, 124, 110, 124, 124, 102, 103, 124, - /* 1620 */ 124, 106, 107, 108, 124, 110, 86, 124, 124, 124, - /* 1630 */ 90, 124, 117, 93, 94, 124, 124, 124, 124, 124, - /* 1640 */ 124, 124, 102, 103, 124, 124, 106, 107, 108, 124, - /* 1650 */ 110, 124, 124, 124, 86, 91, 92, 117, 90, 124, - /* 1660 */ 124, 93, 94, 95, 124, 101, 124, 124, 104, 105, - /* 1670 */ 102, 103, 124, 124, 106, 107, 108, 86, 110, 124, - /* 1680 */ 124, 90, 118, 124, 93, 94, 124, 124, 124, 124, - /* 1690 */ 124, 124, 124, 102, 103, 124, 86, 106, 107, 108, - /* 1700 */ 90, 110, 124, 93, 94, 124, 124, 124, 117, 124, - /* 1710 */ 124, 124, 102, 103, 124, 124, 106, 107, 108, 86, - /* 1720 */ 110, 124, 124, 90, 124, 124, 93, 94, 124, 124, - /* 1730 */ 86, 124, 124, 124, 90, 102, 103, 93, 94, 106, - /* 1740 */ 107, 108, 124, 110, 124, 124, 102, 103, 124, 86, - /* 1750 */ 106, 107, 108, 90, 110, 124, 93, 94, 124, 124, - /* 1760 */ 124, 124, 124, 124, 124, 102, 103, 124, 86, 106, - /* 1770 */ 107, 108, 90, 110, 124, 93, 94, 124, 124, 124, - /* 1780 */ 124, 124, 124, 124, 102, 103, 124, 86, 106, 107, - /* 1790 */ 108, 90, 110, 124, 93, 94, 124, 124, 124, 124, - /* 1800 */ 124, 124, 124, 102, 103, 124, 86, 106, 107, 108, - /* 1810 */ 90, 110, 124, 93, 94, 124, 124, 86, 124, 124, - /* 1820 */ 124, 90, 102, 103, 93, 94, 106, 107, 108, 124, - /* 1830 */ 110, 124, 124, 102, 103, 124, 86, 106, 107, 108, - /* 1840 */ 90, 110, 124, 93, 94, 124, 124, 124, 124, 124, - /* 1850 */ 124, 124, 102, 103, 124, 86, 106, 107, 108, 90, - /* 1860 */ 110, 124, 93, 94, 124, 124, 124, 124, 124, 124, - /* 1870 */ 124, 102, 103, 124, 86, 106, 107, 108, 90, 110, - /* 1880 */ 124, 93, 94, 124, 124, 124, 124, 124, 124, 124, - /* 1890 */ 102, 103, 124, 86, 106, 107, 108, 90, 110, 124, - /* 1900 */ 93, 94, 124, 124, 86, 124, 124, 124, 90, 102, - /* 1910 */ 103, 93, 94, 106, 107, 108, 124, 110, 124, 124, - /* 1920 */ 102, 103, 11, 124, 106, 107, 108, 124, 110, 18, - /* 1930 */ 124, 124, 124, 124, 23, 24, 124, 124, 124, 124, - /* 1940 */ 29, 124, 124, 86, 33, 124, 35, 90, 124, 124, - /* 1950 */ 93, 94, 124, 124, 124, 124, 124, 124, 124, 102, - /* 1960 */ 103, 124, 86, 106, 107, 108, 90, 110, 124, 93, - /* 1970 */ 94, 124, 124, 124, 124, 124, 124, 124, 102, 103, - /* 1980 */ 124, 86, 106, 107, 108, 90, 110, 124, 93, 94, - /* 1990 */ 79, 80, 81, 124, 124, 124, 124, 102, 103, 124, - /* 2000 */ 86, 106, 107, 108, 90, 110, 124, 93, 94, 124, - /* 2010 */ 124, 86, 124, 124, 124, 90, 102, 103, 93, 94, - /* 2020 */ 106, 107, 108, 124, 110, 124, 124, 102, 103, 124, - /* 2030 */ 86, 106, 107, 108, 90, 110, 124, 93, 94, 124, - /* 2040 */ 124, 124, 124, 124, 124, 124, 102, 103, 124, 11, - /* 2050 */ 106, 107, 108, 124, 110, 124, 18, 124, 124, 124, - /* 2060 */ 124, 23, 24, 124, 124, 124, 124, 29, 86, 124, - /* 2070 */ 124, 33, 90, 35, 124, 93, 94, 124, 124, 86, - /* 2080 */ 124, 124, 124, 90, 102, 103, 93, 94, 106, 107, - /* 2090 */ 108, 124, 110, 124, 124, 102, 103, 124, 124, 106, - /* 2100 */ 107, 108, 124, 110, 86, 124, 124, 124, 90, 124, - /* 2110 */ 124, 93, 94, 124, 124, 124, 124, 79, 80, 81, - /* 2120 */ 102, 103, 124, 124, 106, 107, 108, 124, 110, 124, - /* 2130 */ 124, 124, 124, 86, 124, 124, 124, 90, 124, 124, - /* 2140 */ 93, 94, 124, 124, 124, 124, 91, 92, 124, 102, - /* 2150 */ 103, 124, 124, 106, 107, 108, 101, 110, 86, 104, - /* 2160 */ 105, 124, 90, 124, 124, 93, 94, 124, 124, 124, - /* 2170 */ 124, 124, 124, 118, 102, 103, 124, 86, 106, 107, - /* 2180 */ 108, 90, 110, 124, 93, 94, 124, 124, 86, 124, - /* 2190 */ 124, 124, 90, 102, 103, 93, 94, 106, 107, 108, - /* 2200 */ 124, 110, 124, 124, 102, 103, 124, 86, 106, 107, - /* 2210 */ 108, 90, 110, 124, 93, 94, 124, 124, 124, 124, - /* 2220 */ 91, 92, 124, 102, 103, 124, 124, 106, 107, 108, - /* 2230 */ 101, 110, 124, 104, 105, 124, 86, 124, 124, 124, - /* 2240 */ 90, 124, 124, 93, 94, 124, 124, 118, 124, 124, - /* 2250 */ 124, 124, 102, 103, 124, 124, 106, 107, 108, 124, - /* 2260 */ 110, 86, 124, 124, 124, 90, 124, 124, 93, 94, - /* 2270 */ 124, 124, 86, 124, 124, 124, 90, 102, 103, 93, - /* 2280 */ 94, 106, 107, 108, 124, 110, 124, 124, 102, 103, - /* 2290 */ 124, 86, 106, 107, 108, 90, 110, 124, 93, 94, - /* 2300 */ 124, 124, 86, 124, 124, 124, 90, 102, 103, 93, - /* 2310 */ 94, 106, 107, 108, 124, 110, 124, 124, 102, 103, - /* 2320 */ 124, 124, 106, 107, 108, 124, 110, 86, 124, 124, - /* 2330 */ 124, 90, 124, 124, 93, 94, 124, 124, 124, 124, - /* 2340 */ 124, 124, 124, 102, 103, 124, 124, 106, 107, 108, - /* 2350 */ 124, 110, 86, 124, 124, 124, 90, 124, 124, 93, - /* 2360 */ 94, 124, 124, 86, 124, 124, 124, 90, 102, 103, - /* 2370 */ 93, 94, 106, 107, 108, 124, 110, 124, 124, 102, - /* 2380 */ 103, 124, 86, 106, 107, 108, 90, 110, 124, 93, - /* 2390 */ 94, 124, 124, 124, 124, 124, 124, 124, 102, 103, - /* 2400 */ 124, 124, 106, 107, 108, 124, 110, -); - const YY_SHIFT_USE_DFLT = -53; - const YY_SHIFT_MAX = 259; - static public $yy_shift_ofst = array( - /* 0 */ -3, 1213, 981, 1155, 1213, 1155, 981, 981, 923, 923, - /* 10 */ 865, 981, 981, 1097, 981, 981, 981, 981, 981, 981, - /* 20 */ 981, 1329, 981, 981, 981, 981, 1271, 981, 981, 981, - /* 30 */ 1097, 981, 981, 981, 981, 981, 981, 981, 981, 981, - /* 40 */ 981, 981, 981, 981, 1039, 1039, 1387, 1387, 1445, 1387, - /* 50 */ 1387, 1387, 1387, -1, 53, 107, 107, 107, 107, 107, - /* 60 */ 485, 431, 593, 647, 701, 323, 161, 215, 377, 269, - /* 70 */ 539, 755, 755, 755, 755, 755, 755, 755, 755, 755, - /* 80 */ 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, - /* 90 */ 797, 797, 1279, 110, 297, -3, 2038, 977, 1034, 191, - /* 100 */ -2, 191, -2, 297, 297, 798, 340, 354, 367, 1911, - /* 110 */ 181, 54, 57, 163, 199, 285, 19, 151, 167, 70, - /* 120 */ 78, 381, 367, 543, 363, -17, 375, 365, 363, 246, - /* 130 */ 363, 395, 392, -17, 363, 363, 363, 367, 363, 445, - /* 140 */ 413, 363, 395, 363, 474, 365, 574, 204, 204, 574, - /* 150 */ 574, 574, 574, 574, 574, 574, 574, -53, 255, 233, - /* 160 */ -17, -27, -29, -17, -17, -17, -29, -17, -29, -27, - /* 170 */ -17, -17, -17, -29, -17, -17, -29, -17, -17, -17, - /* 180 */ -17, -17, -17, -17, -17, -17, -29, -29, -17, 343, - /* 190 */ 574, 574, 574, 596, 596, 574, 574, 204, 572, 572, - /* 200 */ 204, 341, 204, 370, -53, -53, -53, -53, -53, 1483, - /* 210 */ 1342, 98, 76, 210, 435, 212, 328, 299, 81, 287, - /* 220 */ 472, 294, 217, 290, 292, 292, 370, 511, 455, 505, - /* 230 */ 520, 528, 478, 481, 541, 527, 446, 15, 114, -14, - /* 240 */ 533, 130, 493, 497, 503, 523, 512, 525, 549, 551, - /* 250 */ 507, 526, 530, 516, 571, 137, 119, -52, 69, 171, -); - const YY_REDUCE_USE_DFLT = -73; - const YY_REDUCE_MAX = 208; - static public $yy_reduce_ofst = array( - /* 0 */ -22, 1449, 1540, 1504, 1481, 1568, 1515, 1591, 1925, 2072, - /* 10 */ 1750, 1818, 1895, 1644, 1663, 1914, 2205, 2277, 1876, 1731, - /* 20 */ 1857, 1633, 1701, 2186, 2150, 2296, 2266, 2091, 2047, 1993, - /* 30 */ 2241, 2102, 1720, 1788, 1982, 1769, 1807, 1610, 1682, 2175, - /* 40 */ 2216, 2121, 1944, 2018, 805, 869, 884, 979, 925, 985, - /* 50 */ 1041, 1157, 1099, 1220, 1336, 2129, 1278, 1336, 1564, 2055, - /* 60 */ 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, - /* 70 */ 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, - /* 80 */ 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, - /* 90 */ 190, 190, 261, 208, 153, 193, 154, 827, 826, 369, - /* 100 */ 804, 315, 872, 316, 424, -34, 839, 82, -72, 372, - /* 110 */ 349, -32, -32, -32, 559, 351, 351, 351, -32, 30, - /* 120 */ -32, 30, 345, 30, 453, 420, 368, 242, 344, -32, - /* 130 */ 276, 561, 451, 419, 506, 615, 668, 396, 613, 615, - /* 140 */ 350, 614, 615, 667, 615, 139, -32, 30, 109, -32, - /* 150 */ -32, -32, -32, -32, -32, -32, 23, -32, 462, 482, - /* 160 */ 473, 466, 464, 473, 473, 473, 464, 473, 464, 468, - /* 170 */ 473, 473, 473, 464, 473, 473, 464, 473, 473, 473, - /* 180 */ 473, 473, 473, 473, 473, 473, 464, 464, 473, 489, - /* 190 */ 479, 479, 479, 480, 480, 479, 479, 189, 504, 499, - /* 200 */ 189, 241, 189, 348, 356, 393, 389, 95, 385, -); - static public $yyExpectedTokens = array( - /* 0 */ array(4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 23, 24, 29, 33, 35, ), - /* 1 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 2 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 3 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 4 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 5 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 6 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 7 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 8 */ array(18, 19, 20, 23, 24, 29, 33, 34, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 9 */ array(18, 19, 20, 23, 24, 29, 33, 34, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 10 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 66, 79, ), - /* 11 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 12 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 13 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 14 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 15 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 16 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 17 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 18 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 19 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 20 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 21 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 22 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 23 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 24 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 25 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 26 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 27 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 28 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 29 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 30 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 31 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 32 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 33 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 34 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 35 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 36 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 37 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 38 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 39 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 40 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 41 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 42 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 43 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 44 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 45 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 65, 79, ), - /* 46 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 79, ), - /* 47 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 79, ), - /* 48 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 79, ), - /* 49 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 79, ), - /* 50 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 79, ), - /* 51 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 79, ), - /* 52 */ array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 64, 79, ), - /* 53 */ array(1, 28, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 54 */ array(1, 3, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 55 */ array(1, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 56 */ array(1, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 57 */ array(1, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 58 */ array(1, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 59 */ array(1, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 60 */ array(1, 3, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 61 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 62 */ array(1, 25, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 63 */ array(1, 3, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 64 */ array(1, 3, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 65 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 66 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 80, ), - /* 67 */ array(1, 31, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 68 */ array(1, 3, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 69 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 70 */ array(1, 2, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 71 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 72 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 73 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 74 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 75 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 76 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 77 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 78 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 79 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 80 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 81 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 82 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 83 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 84 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 85 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 86 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 87 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 88 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 89 */ array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 90 */ array(41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 91 */ array(41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ), - /* 92 */ array(1, 3, 22, 30, 36, 39, 62, ), - /* 93 */ array(1, 3, 30, 36, 55, ), - /* 94 */ array(1, 30, 36, ), - /* 95 */ array(4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 23, 24, 29, 33, 35, ), - /* 96 */ array(11, 18, 23, 24, 29, 33, 35, 79, 80, 81, ), - /* 97 */ array(18, 20, 30, 32, 36, ), - /* 98 */ array(18, 20, 30, 32, 36, ), - /* 99 */ array(1, 3, 30, 36, ), - /* 100 */ array(18, 20, 30, 36, ), - /* 101 */ array(1, 3, 30, 36, ), - /* 102 */ array(18, 20, 30, 36, ), - /* 103 */ array(1, 30, 36, ), - /* 104 */ array(1, 30, 36, ), - /* 105 */ array(22, 60, 65, ), - /* 106 */ array(19, 20, 64, ), - /* 107 */ array(1, 2, ), - /* 108 */ array(19, 39, ), - /* 109 */ array(11, 18, 23, 24, 29, 33, 35, 79, 80, 81, ), - /* 110 */ array(5, 6, 7, 8, 9, 15, 16, 17, ), - /* 111 */ array(1, 3, 30, 31, 36, 55, ), - /* 112 */ array(1, 3, 30, 36, 55, ), - /* 113 */ array(1, 3, 30, 36, 55, ), - /* 114 */ array(18, 20, 21, 26, ), - /* 115 */ array(18, 20, 21, 63, ), - /* 116 */ array(18, 20, 63, ), - /* 117 */ array(18, 20, 21, ), - /* 118 */ array(1, 3, 55, ), - /* 119 */ array(21, 22, 62, ), - /* 120 */ array(1, 32, 55, ), - /* 121 */ array(21, 22, 62, ), - /* 122 */ array(19, 39, ), - /* 123 */ array(22, 62, ), - /* 124 */ array(18, 20, ), - /* 125 */ array(30, 36, ), - /* 126 */ array(30, 36, ), - /* 127 */ array(19, 20, ), - /* 128 */ array(18, 20, ), - /* 129 */ array(1, 55, ), - /* 130 */ array(18, 20, ), - /* 131 */ array(18, 20, ), - /* 132 */ array(18, 20, ), - /* 133 */ array(30, 36, ), - /* 134 */ array(18, 20, ), - /* 135 */ array(18, 20, ), - /* 136 */ array(18, 20, ), - /* 137 */ array(19, 39, ), - /* 138 */ array(18, 20, ), - /* 139 */ array(18, 20, ), - /* 140 */ array(1, 22, ), - /* 141 */ array(18, 20, ), - /* 142 */ array(18, 20, ), - /* 143 */ array(18, 20, ), - /* 144 */ array(18, 20, ), - /* 145 */ array(19, 20, ), - /* 146 */ array(1, ), - /* 147 */ array(22, ), - /* 148 */ array(22, ), - /* 149 */ array(1, ), - /* 150 */ array(1, ), - /* 151 */ array(1, ), - /* 152 */ array(1, ), - /* 153 */ array(1, ), - /* 154 */ array(1, ), - /* 155 */ array(1, ), - /* 156 */ array(1, ), - /* 157 */ array(), - /* 158 */ array(18, 19, 20, ), - /* 159 */ array(18, 20, 63, ), - /* 160 */ array(30, 36, ), - /* 161 */ array(60, 65, ), - /* 162 */ array(60, 65, ), - /* 163 */ array(30, 36, ), - /* 164 */ array(30, 36, ), - /* 165 */ array(30, 36, ), - /* 166 */ array(60, 65, ), - /* 167 */ array(30, 36, ), - /* 168 */ array(60, 65, ), - /* 169 */ array(60, 65, ), - /* 170 */ array(30, 36, ), - /* 171 */ array(30, 36, ), - /* 172 */ array(30, 36, ), - /* 173 */ array(60, 65, ), - /* 174 */ array(30, 36, ), - /* 175 */ array(30, 36, ), - /* 176 */ array(60, 65, ), - /* 177 */ array(30, 36, ), - /* 178 */ array(30, 36, ), - /* 179 */ array(30, 36, ), - /* 180 */ array(30, 36, ), - /* 181 */ array(30, 36, ), - /* 182 */ array(30, 36, ), - /* 183 */ array(30, 36, ), - /* 184 */ array(30, 36, ), - /* 185 */ array(30, 36, ), - /* 186 */ array(60, 65, ), - /* 187 */ array(60, 65, ), - /* 188 */ array(30, 36, ), - /* 189 */ array(18, 39, ), - /* 190 */ array(1, ), - /* 191 */ array(1, ), - /* 192 */ array(1, ), - /* 193 */ array(2, ), - /* 194 */ array(2, ), - /* 195 */ array(1, ), - /* 196 */ array(1, ), - /* 197 */ array(22, ), - /* 198 */ array(30, ), - /* 199 */ array(30, ), - /* 200 */ array(22, ), - /* 201 */ array(16, ), - /* 202 */ array(22, ), - /* 203 */ array(39, ), - /* 204 */ array(), - /* 205 */ array(), - /* 206 */ array(), - /* 207 */ array(), - /* 208 */ array(), - /* 209 */ array(3, 25, 27, 28, 30, 31, 36, 38, 39, 40, 55, 62, 66, 80, ), - /* 210 */ array(3, 21, 30, 36, 39, 62, ), - /* 211 */ array(18, 19, 20, 37, ), - /* 212 */ array(39, 60, 62, 66, ), - /* 213 */ array(32, 39, 62, ), - /* 214 */ array(2, 21, ), - /* 215 */ array(38, 40, ), - /* 216 */ array(21, 60, ), - /* 217 */ array(3, 26, ), - /* 218 */ array(38, 66, ), - /* 219 */ array(20, 63, ), - /* 220 */ array(25, 38, ), - /* 221 */ array(38, 40, ), - /* 222 */ array(26, 80, ), - /* 223 */ array(38, 40, ), - /* 224 */ array(39, 62, ), - /* 225 */ array(39, 62, ), - /* 226 */ array(39, ), - /* 227 */ array(3, ), - /* 228 */ array(64, ), - /* 229 */ array(19, ), - /* 230 */ array(3, ), - /* 231 */ array(19, ), - /* 232 */ array(40, ), - /* 233 */ array(64, ), - /* 234 */ array(27, ), - /* 235 */ array(21, ), - /* 236 */ array(20, ), - /* 237 */ array(2, ), - /* 238 */ array(20, ), - /* 239 */ array(39, ), - /* 240 */ array(37, ), - /* 241 */ array(37, ), - /* 242 */ array(20, ), - /* 243 */ array(20, ), - /* 244 */ array(19, ), - /* 245 */ array(20, ), - /* 246 */ array(3, ), - /* 247 */ array(19, ), - /* 248 */ array(20, ), - /* 249 */ array(20, ), - /* 250 */ array(60, ), - /* 251 */ array(20, ), - /* 252 */ array(20, ), - /* 253 */ array(56, ), - /* 254 */ array(2, ), - /* 255 */ array(26, ), - /* 256 */ array(20, ), - /* 257 */ array(66, ), - /* 258 */ array(19, ), - /* 259 */ array(20, ), - /* 260 */ array(), - /* 261 */ array(), - /* 262 */ array(), - /* 263 */ array(), - /* 264 */ array(), - /* 265 */ array(), - /* 266 */ array(), - /* 267 */ array(), - /* 268 */ array(), - /* 269 */ array(), - /* 270 */ array(), - /* 271 */ array(), - /* 272 */ array(), - /* 273 */ array(), - /* 274 */ array(), - /* 275 */ array(), - /* 276 */ array(), - /* 277 */ array(), - /* 278 */ array(), - /* 279 */ array(), - /* 280 */ array(), - /* 281 */ array(), - /* 282 */ array(), - /* 283 */ array(), - /* 284 */ array(), - /* 285 */ array(), - /* 286 */ array(), - /* 287 */ array(), - /* 288 */ array(), - /* 289 */ array(), - /* 290 */ array(), - /* 291 */ array(), - /* 292 */ array(), - /* 293 */ array(), - /* 294 */ array(), - /* 295 */ array(), - /* 296 */ array(), - /* 297 */ array(), - /* 298 */ array(), - /* 299 */ array(), - /* 300 */ array(), - /* 301 */ array(), - /* 302 */ array(), - /* 303 */ array(), - /* 304 */ array(), - /* 305 */ array(), - /* 306 */ array(), - /* 307 */ array(), - /* 308 */ array(), - /* 309 */ array(), - /* 310 */ array(), - /* 311 */ array(), - /* 312 */ array(), - /* 313 */ array(), - /* 314 */ array(), - /* 315 */ array(), - /* 316 */ array(), - /* 317 */ array(), - /* 318 */ array(), - /* 319 */ array(), - /* 320 */ array(), - /* 321 */ array(), - /* 322 */ array(), - /* 323 */ array(), - /* 324 */ array(), - /* 325 */ array(), - /* 326 */ array(), - /* 327 */ array(), - /* 328 */ array(), - /* 329 */ array(), - /* 330 */ array(), - /* 331 */ array(), - /* 332 */ array(), - /* 333 */ array(), - /* 334 */ array(), - /* 335 */ array(), - /* 336 */ array(), - /* 337 */ array(), - /* 338 */ array(), - /* 339 */ array(), - /* 340 */ array(), - /* 341 */ array(), - /* 342 */ array(), - /* 343 */ array(), - /* 344 */ array(), - /* 345 */ array(), - /* 346 */ array(), - /* 347 */ array(), - /* 348 */ array(), - /* 349 */ array(), - /* 350 */ array(), - /* 351 */ array(), - /* 352 */ array(), - /* 353 */ array(), - /* 354 */ array(), - /* 355 */ array(), - /* 356 */ array(), - /* 357 */ array(), - /* 358 */ array(), - /* 359 */ array(), - /* 360 */ array(), - /* 361 */ array(), - /* 362 */ array(), -); - static public $yy_default = array( - /* 0 */ 366, 551, 522, 568, 568, 568, 522, 522, 568, 568, - /* 10 */ 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, - /* 20 */ 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, - /* 30 */ 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, - /* 40 */ 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, - /* 50 */ 568, 568, 568, 428, 568, 405, 428, 428, 428, 397, - /* 60 */ 568, 568, 568, 568, 568, 568, 568, 433, 568, 568, - /* 70 */ 568, 553, 449, 520, 552, 457, 433, 452, 439, 462, - /* 80 */ 521, 461, 430, 435, 554, 438, 454, 453, 410, 458, - /* 90 */ 466, 465, 477, 441, 428, 363, 568, 428, 428, 485, - /* 100 */ 428, 448, 428, 428, 428, 534, 568, 419, 568, 568, - /* 110 */ 568, 441, 441, 441, 568, 495, 495, 495, 441, 486, - /* 120 */ 441, 486, 568, 486, 568, 428, 428, 568, 568, 441, - /* 130 */ 495, 568, 568, 407, 568, 568, 568, 568, 568, 568, - /* 140 */ 422, 568, 568, 568, 568, 568, 451, 486, 531, 464, - /* 150 */ 446, 445, 468, 444, 469, 470, 424, 529, 568, 496, - /* 160 */ 395, 489, 492, 412, 392, 406, 514, 409, 490, 491, - /* 170 */ 413, 394, 398, 513, 393, 408, 493, 400, 417, 402, - /* 180 */ 415, 404, 414, 418, 416, 403, 515, 512, 399, 495, - /* 190 */ 448, 420, 485, 523, 524, 423, 425, 532, 567, 567, - /* 200 */ 509, 383, 535, 495, 495, 528, 528, 528, 495, 443, - /* 210 */ 477, 568, 477, 477, 507, 568, 473, 467, 568, 568, - /* 220 */ 568, 568, 467, 568, 477, 463, 507, 568, 568, 568, - /* 230 */ 568, 568, 568, 568, 436, 568, 568, 507, 568, 533, - /* 240 */ 568, 475, 568, 568, 568, 568, 568, 568, 568, 568, - /* 250 */ 473, 568, 568, 479, 507, 467, 568, 568, 568, 568, - /* 260 */ 508, 429, 437, 364, 501, 519, 503, 440, 500, 479, - /* 270 */ 566, 516, 517, 502, 504, 518, 411, 530, 459, 506, - /* 280 */ 507, 527, 525, 427, 426, 388, 389, 390, 526, 471, - /* 290 */ 443, 487, 494, 497, 442, 482, 472, 474, 476, 387, - /* 300 */ 386, 371, 372, 373, 374, 370, 369, 365, 367, 368, - /* 310 */ 375, 376, 382, 384, 385, 381, 380, 377, 378, 379, - /* 320 */ 505, 498, 510, 421, 562, 555, 563, 447, 545, 546, - /* 330 */ 547, 556, 557, 558, 548, 550, 565, 564, 560, 559, - /* 340 */ 561, 544, 543, 450, 484, 488, 511, 483, 481, 499, - /* 350 */ 478, 480, 455, 456, 540, 541, 542, 539, 538, 460, - /* 360 */ 536, 537, 549, -); - const YYNOCODE = 125; - const YYSTACKDEPTH = 500; - const YYNSTATE = 363; - const YYNRULE = 205; - const YYERRORSYMBOL = 82; - const YYERRSYMDT = 'yy0'; - const YYFALLBACK = 0; - public static $yyFallback = array( - ); - public static function Trace($TraceFILE, $zTracePrompt) - { - if (!$TraceFILE) { - $zTracePrompt = 0; - } elseif (!$zTracePrompt) { - $TraceFILE = 0; - } - self::$yyTraceFILE = $TraceFILE; - self::$yyTracePrompt = $zTracePrompt; - } - - public static function PrintTrace() - { - self::$yyTraceFILE = fopen('php://output', 'w'); - self::$yyTracePrompt = '
'; - } - - public static $yyTraceFILE; - public static $yyTracePrompt; - public $yyidx; /* Index of top element in stack */ - public $yyerrcnt; /* Shifts left before out of the error */ - public $yystack = array(); /* The parser's stack */ - - public $yyTokenName = array( - '$', 'VERT', 'COLON', 'RDEL', - 'COMMENT', 'PHPSTARTTAG', 'PHPENDTAG', 'ASPSTARTTAG', - 'ASPENDTAG', 'FAKEPHPSTARTTAG', 'XMLTAG', 'TEXT', - 'STRIPON', 'STRIPOFF', 'BLOCKSOURCE', 'LITERALSTART', - 'LITERALEND', 'LITERAL', 'LDEL', 'DOLLAR', - 'ID', 'EQUAL', 'PTR', 'LDELIF', - 'LDELFOR', 'SEMICOLON', 'INCDEC', 'TO', - 'STEP', 'LDELFOREACH', 'SPACE', 'AS', - 'APTR', 'LDELSETFILTER', 'SMARTYBLOCKCHILDPARENT', 'LDELSLASH', - 'ATTR', 'INTEGER', 'COMMA', 'OPENP', - 'CLOSEP', 'MATH', 'UNIMATH', 'ANDSYM', - 'ISIN', 'ISDIVBY', 'ISNOTDIVBY', 'ISEVEN', - 'ISNOTEVEN', 'ISEVENBY', 'ISNOTEVENBY', 'ISODD', - 'ISNOTODD', 'ISODDBY', 'ISNOTODDBY', 'INSTANCEOF', - 'QMARK', 'NOT', 'TYPECAST', 'HEX', - 'DOT', 'SINGLEQUOTESTRING', 'DOUBLECOLON', 'AT', - 'HATCH', 'OPENB', 'CLOSEB', 'EQUALS', - 'NOTEQUALS', 'GREATERTHAN', 'LESSTHAN', 'GREATEREQUAL', - 'LESSEQUAL', 'IDENTITY', 'NONEIDENTITY', 'MOD', - 'LAND', 'LOR', 'LXOR', 'QUOTE', - 'BACKTICK', 'DOLLARID', 'error', 'start', - 'template', 'template_element', 'smartytag', 'literal', - 'literal_elements', 'literal_element', 'value', 'modifierlist', - 'attributes', 'expr', 'varindexed', 'statement', - 'statements', 'optspace', 'varvar', 'foraction', - 'modparameters', 'attribute', 'ternary', 'array', - 'ifcond', 'lop', 'variable', 'function', - 'doublequoted_with_quotes', 'static_class_access', 'object', 'arrayindex', - 'indexdef', 'varvarele', 'objectchain', 'objectelement', - 'method', 'params', 'modifier', 'modparameter', - 'arrayelements', 'arrayelement', 'doublequoted', 'doublequotedcontent', - ); - - public static $yyRuleName = array( - /* 0 */ "start ::= template", - /* 1 */ "template ::= template_element", - /* 2 */ "template ::= template template_element", - /* 3 */ "template ::=", - /* 4 */ "template_element ::= smartytag RDEL", - /* 5 */ "template_element ::= COMMENT", - /* 6 */ "template_element ::= literal", - /* 7 */ "template_element ::= PHPSTARTTAG", - /* 8 */ "template_element ::= PHPENDTAG", - /* 9 */ "template_element ::= ASPSTARTTAG", - /* 10 */ "template_element ::= ASPENDTAG", - /* 11 */ "template_element ::= FAKEPHPSTARTTAG", - /* 12 */ "template_element ::= XMLTAG", - /* 13 */ "template_element ::= TEXT", - /* 14 */ "template_element ::= STRIPON", - /* 15 */ "template_element ::= STRIPOFF", - /* 16 */ "template_element ::= BLOCKSOURCE", - /* 17 */ "literal ::= LITERALSTART LITERALEND", - /* 18 */ "literal ::= LITERALSTART literal_elements LITERALEND", - /* 19 */ "literal_elements ::= literal_elements literal_element", - /* 20 */ "literal_elements ::=", - /* 21 */ "literal_element ::= literal", - /* 22 */ "literal_element ::= LITERAL", - /* 23 */ "literal_element ::= PHPSTARTTAG", - /* 24 */ "literal_element ::= FAKEPHPSTARTTAG", - /* 25 */ "literal_element ::= PHPENDTAG", - /* 26 */ "literal_element ::= ASPSTARTTAG", - /* 27 */ "literal_element ::= ASPENDTAG", - /* 28 */ "smartytag ::= LDEL value", - /* 29 */ "smartytag ::= LDEL value modifierlist attributes", - /* 30 */ "smartytag ::= LDEL value attributes", - /* 31 */ "smartytag ::= LDEL expr modifierlist attributes", - /* 32 */ "smartytag ::= LDEL expr attributes", - /* 33 */ "smartytag ::= LDEL DOLLAR ID EQUAL value", - /* 34 */ "smartytag ::= LDEL DOLLAR ID EQUAL expr", - /* 35 */ "smartytag ::= LDEL DOLLAR ID EQUAL expr attributes", - /* 36 */ "smartytag ::= LDEL varindexed EQUAL expr attributes", - /* 37 */ "smartytag ::= LDEL ID attributes", - /* 38 */ "smartytag ::= LDEL ID", - /* 39 */ "smartytag ::= LDEL ID PTR ID attributes", - /* 40 */ "smartytag ::= LDEL ID modifierlist attributes", - /* 41 */ "smartytag ::= LDEL ID PTR ID modifierlist attributes", - /* 42 */ "smartytag ::= LDELIF expr", - /* 43 */ "smartytag ::= LDELIF expr attributes", - /* 44 */ "smartytag ::= LDELIF statement", - /* 45 */ "smartytag ::= LDELIF statement attributes", - /* 46 */ "smartytag ::= LDELFOR statements SEMICOLON optspace expr SEMICOLON optspace DOLLAR varvar foraction attributes", - /* 47 */ "foraction ::= EQUAL expr", - /* 48 */ "foraction ::= INCDEC", - /* 49 */ "smartytag ::= LDELFOR statement TO expr attributes", - /* 50 */ "smartytag ::= LDELFOR statement TO expr STEP expr attributes", - /* 51 */ "smartytag ::= LDELFOREACH attributes", - /* 52 */ "smartytag ::= LDELFOREACH SPACE value AS DOLLAR varvar attributes", - /* 53 */ "smartytag ::= LDELFOREACH SPACE value AS DOLLAR varvar APTR DOLLAR varvar attributes", - /* 54 */ "smartytag ::= LDELFOREACH SPACE expr AS DOLLAR varvar attributes", - /* 55 */ "smartytag ::= LDELFOREACH SPACE expr AS DOLLAR varvar APTR DOLLAR varvar attributes", - /* 56 */ "smartytag ::= LDELSETFILTER ID modparameters", - /* 57 */ "smartytag ::= LDELSETFILTER ID modparameters modifierlist", - /* 58 */ "smartytag ::= LDEL SMARTYBLOCKCHILDPARENT", - /* 59 */ "smartytag ::= LDELSLASH ID", - /* 60 */ "smartytag ::= LDELSLASH ID modifierlist", - /* 61 */ "smartytag ::= LDELSLASH ID PTR ID", - /* 62 */ "smartytag ::= LDELSLASH ID PTR ID modifierlist", - /* 63 */ "attributes ::= attributes attribute", - /* 64 */ "attributes ::= attribute", - /* 65 */ "attributes ::=", - /* 66 */ "attribute ::= SPACE ID EQUAL ID", - /* 67 */ "attribute ::= ATTR expr", - /* 68 */ "attribute ::= ATTR value", - /* 69 */ "attribute ::= SPACE ID", - /* 70 */ "attribute ::= SPACE expr", - /* 71 */ "attribute ::= SPACE value", - /* 72 */ "attribute ::= SPACE INTEGER EQUAL expr", - /* 73 */ "statements ::= statement", - /* 74 */ "statements ::= statements COMMA statement", - /* 75 */ "statement ::= DOLLAR varvar EQUAL expr", - /* 76 */ "statement ::= varindexed EQUAL expr", - /* 77 */ "statement ::= OPENP statement CLOSEP", - /* 78 */ "expr ::= value", - /* 79 */ "expr ::= ternary", - /* 80 */ "expr ::= DOLLAR ID COLON ID", - /* 81 */ "expr ::= expr MATH value", - /* 82 */ "expr ::= expr UNIMATH value", - /* 83 */ "expr ::= expr ANDSYM value", - /* 84 */ "expr ::= array", - /* 85 */ "expr ::= expr modifierlist", - /* 86 */ "expr ::= expr ifcond expr", - /* 87 */ "expr ::= expr ISIN array", - /* 88 */ "expr ::= expr ISIN value", - /* 89 */ "expr ::= expr lop expr", - /* 90 */ "expr ::= expr ISDIVBY expr", - /* 91 */ "expr ::= expr ISNOTDIVBY expr", - /* 92 */ "expr ::= expr ISEVEN", - /* 93 */ "expr ::= expr ISNOTEVEN", - /* 94 */ "expr ::= expr ISEVENBY expr", - /* 95 */ "expr ::= expr ISNOTEVENBY expr", - /* 96 */ "expr ::= expr ISODD", - /* 97 */ "expr ::= expr ISNOTODD", - /* 98 */ "expr ::= expr ISODDBY expr", - /* 99 */ "expr ::= expr ISNOTODDBY expr", - /* 100 */ "expr ::= value INSTANCEOF ID", - /* 101 */ "expr ::= value INSTANCEOF value", - /* 102 */ "ternary ::= OPENP expr CLOSEP QMARK DOLLAR ID COLON expr", - /* 103 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr", - /* 104 */ "value ::= variable", - /* 105 */ "value ::= UNIMATH value", - /* 106 */ "value ::= NOT value", - /* 107 */ "value ::= TYPECAST value", - /* 108 */ "value ::= variable INCDEC", - /* 109 */ "value ::= HEX", - /* 110 */ "value ::= INTEGER", - /* 111 */ "value ::= INTEGER DOT INTEGER", - /* 112 */ "value ::= INTEGER DOT", - /* 113 */ "value ::= DOT INTEGER", - /* 114 */ "value ::= ID", - /* 115 */ "value ::= function", - /* 116 */ "value ::= OPENP expr CLOSEP", - /* 117 */ "value ::= SINGLEQUOTESTRING", - /* 118 */ "value ::= doublequoted_with_quotes", - /* 119 */ "value ::= ID DOUBLECOLON static_class_access", - /* 120 */ "value ::= varindexed DOUBLECOLON static_class_access", - /* 121 */ "value ::= smartytag RDEL", - /* 122 */ "value ::= value modifierlist", - /* 123 */ "variable ::= varindexed", - /* 124 */ "variable ::= DOLLAR varvar AT ID", - /* 125 */ "variable ::= object", - /* 126 */ "variable ::= HATCH ID HATCH", - /* 127 */ "variable ::= HATCH ID HATCH arrayindex", - /* 128 */ "variable ::= HATCH variable HATCH", - /* 129 */ "variable ::= HATCH variable HATCH arrayindex", - /* 130 */ "varindexed ::= DOLLAR varvar arrayindex", - /* 131 */ "arrayindex ::= arrayindex indexdef", - /* 132 */ "arrayindex ::=", - /* 133 */ "indexdef ::= DOT DOLLAR varvar", - /* 134 */ "indexdef ::= DOT DOLLAR varvar AT ID", - /* 135 */ "indexdef ::= DOT ID", - /* 136 */ "indexdef ::= DOT INTEGER", - /* 137 */ "indexdef ::= DOT LDEL expr RDEL", - /* 138 */ "indexdef ::= OPENB ID CLOSEB", - /* 139 */ "indexdef ::= OPENB ID DOT ID CLOSEB", - /* 140 */ "indexdef ::= OPENB expr CLOSEB", - /* 141 */ "indexdef ::= OPENB CLOSEB", - /* 142 */ "varvar ::= varvarele", - /* 143 */ "varvar ::= varvar varvarele", - /* 144 */ "varvarele ::= ID", - /* 145 */ "varvarele ::= LDEL expr RDEL", - /* 146 */ "object ::= varindexed objectchain", - /* 147 */ "objectchain ::= objectelement", - /* 148 */ "objectchain ::= objectchain objectelement", - /* 149 */ "objectelement ::= PTR ID arrayindex", - /* 150 */ "objectelement ::= PTR DOLLAR varvar arrayindex", - /* 151 */ "objectelement ::= PTR LDEL expr RDEL arrayindex", - /* 152 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex", - /* 153 */ "objectelement ::= PTR method", - /* 154 */ "function ::= ID OPENP params CLOSEP", - /* 155 */ "method ::= ID OPENP params CLOSEP", - /* 156 */ "method ::= DOLLAR ID OPENP params CLOSEP", - /* 157 */ "params ::= params COMMA expr", - /* 158 */ "params ::= expr", - /* 159 */ "params ::=", - /* 160 */ "modifierlist ::= modifierlist modifier modparameters", - /* 161 */ "modifierlist ::= modifier modparameters", - /* 162 */ "modifier ::= VERT AT ID", - /* 163 */ "modifier ::= VERT ID", - /* 164 */ "modparameters ::= modparameters modparameter", - /* 165 */ "modparameters ::=", - /* 166 */ "modparameter ::= COLON value", - /* 167 */ "modparameter ::= COLON array", - /* 168 */ "static_class_access ::= method", - /* 169 */ "static_class_access ::= method objectchain", - /* 170 */ "static_class_access ::= ID", - /* 171 */ "static_class_access ::= DOLLAR ID arrayindex", - /* 172 */ "static_class_access ::= DOLLAR ID arrayindex objectchain", - /* 173 */ "ifcond ::= EQUALS", - /* 174 */ "ifcond ::= NOTEQUALS", - /* 175 */ "ifcond ::= GREATERTHAN", - /* 176 */ "ifcond ::= LESSTHAN", - /* 177 */ "ifcond ::= GREATEREQUAL", - /* 178 */ "ifcond ::= LESSEQUAL", - /* 179 */ "ifcond ::= IDENTITY", - /* 180 */ "ifcond ::= NONEIDENTITY", - /* 181 */ "ifcond ::= MOD", - /* 182 */ "lop ::= LAND", - /* 183 */ "lop ::= LOR", - /* 184 */ "lop ::= LXOR", - /* 185 */ "array ::= OPENB arrayelements CLOSEB", - /* 186 */ "arrayelements ::= arrayelement", - /* 187 */ "arrayelements ::= arrayelements COMMA arrayelement", - /* 188 */ "arrayelements ::=", - /* 189 */ "arrayelement ::= value APTR expr", - /* 190 */ "arrayelement ::= ID APTR expr", - /* 191 */ "arrayelement ::= expr", - /* 192 */ "doublequoted_with_quotes ::= QUOTE QUOTE", - /* 193 */ "doublequoted_with_quotes ::= QUOTE doublequoted QUOTE", - /* 194 */ "doublequoted ::= doublequoted doublequotedcontent", - /* 195 */ "doublequoted ::= doublequotedcontent", - /* 196 */ "doublequotedcontent ::= BACKTICK variable BACKTICK", - /* 197 */ "doublequotedcontent ::= BACKTICK expr BACKTICK", - /* 198 */ "doublequotedcontent ::= DOLLARID", - /* 199 */ "doublequotedcontent ::= LDEL variable RDEL", - /* 200 */ "doublequotedcontent ::= LDEL expr RDEL", - /* 201 */ "doublequotedcontent ::= smartytag RDEL", - /* 202 */ "doublequotedcontent ::= TEXT", - /* 203 */ "optspace ::= SPACE", - /* 204 */ "optspace ::=", - ); - - public function tokenName($tokenType) - { - if ($tokenType === 0) { - return 'End of Input'; - } - if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) { - return $this->yyTokenName[$tokenType]; - } else { - return "Unknown"; - } - } - - public static function yy_destructor($yymajor, $yypminor) - { - switch ($yymajor) { - default: break; /* If no destructor action specified: do nothing */ - } - } - - public function yy_pop_parser_stack() - { - if (!count($this->yystack)) { - return; - } - $yytos = array_pop($this->yystack); - if (self::$yyTraceFILE && $this->yyidx >= 0) { - fwrite(self::$yyTraceFILE, - self::$yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] . - "\n"); - } - $yymajor = $yytos->major; - self::yy_destructor($yymajor, $yytos->minor); - $this->yyidx--; - - return $yymajor; - } - - public function __destruct() - { - while ($this->yystack !== Array()) { - $this->yy_pop_parser_stack(); - } - if (is_resource(self::$yyTraceFILE)) { - fclose(self::$yyTraceFILE); - } - } - - public function yy_get_expected_tokens($token) - { - $state = $this->yystack[$this->yyidx]->stateno; - $expected = self::$yyExpectedTokens[$state]; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return $expected; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return array_unique($expected); - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate])) { - $expected = array_merge($expected, self::$yyExpectedTokens[$nextstate]); - if (in_array($token, - self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - - return array_unique($expected); - } - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new TP_yyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return array_unique($expected); - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return $expected; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - - return array_unique($expected); - } - - public function yy_is_expected_token($token) - { - if ($token === 0) { - return true; // 0 is not part of this - } - $state = $this->yystack[$this->yyidx]->stateno; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return true; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return true; - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate]) && - in_array($token, self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - - return true; - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new TP_yyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - if (!$token) { - // end of input: this is valid - return true; - } - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return false; - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return true; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - - return true; - } - - public function yy_find_shift_action($iLookAhead) - { - $stateno = $this->yystack[$this->yyidx]->stateno; - - /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ - if (!isset(self::$yy_shift_ofst[$stateno])) { - // no shift actions - return self::$yy_default[$stateno]; - } - $i = self::$yy_shift_ofst[$stateno]; - if ($i === self::YY_SHIFT_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) - && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) { - if (self::$yyTraceFILE) { - fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " . - $this->yyTokenName[$iLookAhead] . " => " . - $this->yyTokenName[$iFallback] . "\n"); - } - - return $this->yy_find_shift_action($iFallback); - } - - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - public function yy_find_reduce_action($stateno, $iLookAhead) - { - /* $stateno = $this->yystack[$this->yyidx]->stateno; */ - - if (!isset(self::$yy_reduce_ofst[$stateno])) { - return self::$yy_default[$stateno]; - } - $i = self::$yy_reduce_ofst[$stateno]; - if ($i == self::YY_REDUCE_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - public function yy_shift($yyNewState, $yyMajor, $yypMinor) - { - $this->yyidx++; - if ($this->yyidx >= self::YYSTACKDEPTH) { - $this->yyidx--; - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } -#line 85 "smarty_internal_templateparser.y" - - $this->internalError = true; - $this->compiler->trigger_template_error("Stack overflow in template parser"); -#line 1707 "smarty_internal_templateparser.php" - - return; - } - $yytos = new TP_yyStackEntry; - $yytos->stateno = $yyNewState; - $yytos->major = $yyMajor; - $yytos->minor = $yypMinor; - array_push($this->yystack, $yytos); - if (self::$yyTraceFILE && $this->yyidx > 0) { - fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt, - $yyNewState); - fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt); - for ($i = 1; $i <= $this->yyidx; $i++) { - fprintf(self::$yyTraceFILE, " %s", - $this->yyTokenName[$this->yystack[$i]->major]); - } - fwrite(self::$yyTraceFILE,"\n"); - } - } - - public static $yyRuleInfo = array( - array( 'lhs' => 83, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 2 ), - array( 'lhs' => 84, 'rhs' => 0 ), - array( 'lhs' => 85, 'rhs' => 2 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 87, 'rhs' => 2 ), - array( 'lhs' => 87, 'rhs' => 3 ), - array( 'lhs' => 88, 'rhs' => 2 ), - array( 'lhs' => 88, 'rhs' => 0 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 86, 'rhs' => 2 ), - array( 'lhs' => 86, 'rhs' => 4 ), - array( 'lhs' => 86, 'rhs' => 3 ), - array( 'lhs' => 86, 'rhs' => 4 ), - array( 'lhs' => 86, 'rhs' => 3 ), - array( 'lhs' => 86, 'rhs' => 5 ), - array( 'lhs' => 86, 'rhs' => 5 ), - array( 'lhs' => 86, 'rhs' => 6 ), - array( 'lhs' => 86, 'rhs' => 5 ), - array( 'lhs' => 86, 'rhs' => 3 ), - array( 'lhs' => 86, 'rhs' => 2 ), - array( 'lhs' => 86, 'rhs' => 5 ), - array( 'lhs' => 86, 'rhs' => 4 ), - array( 'lhs' => 86, 'rhs' => 6 ), - array( 'lhs' => 86, 'rhs' => 2 ), - array( 'lhs' => 86, 'rhs' => 3 ), - array( 'lhs' => 86, 'rhs' => 2 ), - array( 'lhs' => 86, 'rhs' => 3 ), - array( 'lhs' => 86, 'rhs' => 11 ), - array( 'lhs' => 99, 'rhs' => 2 ), - array( 'lhs' => 99, 'rhs' => 1 ), - array( 'lhs' => 86, 'rhs' => 5 ), - array( 'lhs' => 86, 'rhs' => 7 ), - array( 'lhs' => 86, 'rhs' => 2 ), - array( 'lhs' => 86, 'rhs' => 7 ), - array( 'lhs' => 86, 'rhs' => 10 ), - array( 'lhs' => 86, 'rhs' => 7 ), - array( 'lhs' => 86, 'rhs' => 10 ), - array( 'lhs' => 86, 'rhs' => 3 ), - array( 'lhs' => 86, 'rhs' => 4 ), - array( 'lhs' => 86, 'rhs' => 2 ), - array( 'lhs' => 86, 'rhs' => 2 ), - array( 'lhs' => 86, 'rhs' => 3 ), - array( 'lhs' => 86, 'rhs' => 4 ), - array( 'lhs' => 86, 'rhs' => 5 ), - array( 'lhs' => 92, 'rhs' => 2 ), - array( 'lhs' => 92, 'rhs' => 1 ), - array( 'lhs' => 92, 'rhs' => 0 ), - array( 'lhs' => 101, 'rhs' => 4 ), - array( 'lhs' => 101, 'rhs' => 2 ), - array( 'lhs' => 101, 'rhs' => 2 ), - array( 'lhs' => 101, 'rhs' => 2 ), - array( 'lhs' => 101, 'rhs' => 2 ), - array( 'lhs' => 101, 'rhs' => 2 ), - array( 'lhs' => 101, 'rhs' => 4 ), - array( 'lhs' => 96, 'rhs' => 1 ), - array( 'lhs' => 96, 'rhs' => 3 ), - array( 'lhs' => 95, 'rhs' => 4 ), - array( 'lhs' => 95, 'rhs' => 3 ), - array( 'lhs' => 95, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 1 ), - array( 'lhs' => 93, 'rhs' => 1 ), - array( 'lhs' => 93, 'rhs' => 4 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 1 ), - array( 'lhs' => 93, 'rhs' => 2 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 2 ), - array( 'lhs' => 93, 'rhs' => 2 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 2 ), - array( 'lhs' => 93, 'rhs' => 2 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 102, 'rhs' => 8 ), - array( 'lhs' => 102, 'rhs' => 7 ), - array( 'lhs' => 90, 'rhs' => 1 ), - array( 'lhs' => 90, 'rhs' => 2 ), - array( 'lhs' => 90, 'rhs' => 2 ), - array( 'lhs' => 90, 'rhs' => 2 ), - array( 'lhs' => 90, 'rhs' => 2 ), - array( 'lhs' => 90, 'rhs' => 1 ), - array( 'lhs' => 90, 'rhs' => 1 ), - array( 'lhs' => 90, 'rhs' => 3 ), - array( 'lhs' => 90, 'rhs' => 2 ), - array( 'lhs' => 90, 'rhs' => 2 ), - array( 'lhs' => 90, 'rhs' => 1 ), - array( 'lhs' => 90, 'rhs' => 1 ), - array( 'lhs' => 90, 'rhs' => 3 ), - array( 'lhs' => 90, 'rhs' => 1 ), - array( 'lhs' => 90, 'rhs' => 1 ), - array( 'lhs' => 90, 'rhs' => 3 ), - array( 'lhs' => 90, 'rhs' => 3 ), - array( 'lhs' => 90, 'rhs' => 2 ), - array( 'lhs' => 90, 'rhs' => 2 ), - array( 'lhs' => 106, 'rhs' => 1 ), - array( 'lhs' => 106, 'rhs' => 4 ), - array( 'lhs' => 106, 'rhs' => 1 ), - array( 'lhs' => 106, 'rhs' => 3 ), - array( 'lhs' => 106, 'rhs' => 4 ), - array( 'lhs' => 106, 'rhs' => 3 ), - array( 'lhs' => 106, 'rhs' => 4 ), - array( 'lhs' => 94, 'rhs' => 3 ), - array( 'lhs' => 111, 'rhs' => 2 ), - array( 'lhs' => 111, 'rhs' => 0 ), - array( 'lhs' => 112, 'rhs' => 3 ), - array( 'lhs' => 112, 'rhs' => 5 ), - array( 'lhs' => 112, 'rhs' => 2 ), - array( 'lhs' => 112, 'rhs' => 2 ), - array( 'lhs' => 112, 'rhs' => 4 ), - array( 'lhs' => 112, 'rhs' => 3 ), - array( 'lhs' => 112, 'rhs' => 5 ), - array( 'lhs' => 112, 'rhs' => 3 ), - array( 'lhs' => 112, 'rhs' => 2 ), - array( 'lhs' => 98, 'rhs' => 1 ), - array( 'lhs' => 98, 'rhs' => 2 ), - array( 'lhs' => 113, 'rhs' => 1 ), - array( 'lhs' => 113, 'rhs' => 3 ), - array( 'lhs' => 110, 'rhs' => 2 ), - array( 'lhs' => 114, 'rhs' => 1 ), - array( 'lhs' => 114, 'rhs' => 2 ), - array( 'lhs' => 115, 'rhs' => 3 ), - array( 'lhs' => 115, 'rhs' => 4 ), - array( 'lhs' => 115, 'rhs' => 5 ), - array( 'lhs' => 115, 'rhs' => 6 ), - array( 'lhs' => 115, 'rhs' => 2 ), - array( 'lhs' => 107, 'rhs' => 4 ), - array( 'lhs' => 116, 'rhs' => 4 ), - array( 'lhs' => 116, 'rhs' => 5 ), - array( 'lhs' => 117, 'rhs' => 3 ), - array( 'lhs' => 117, 'rhs' => 1 ), - array( 'lhs' => 117, 'rhs' => 0 ), - array( 'lhs' => 91, 'rhs' => 3 ), - array( 'lhs' => 91, 'rhs' => 2 ), - array( 'lhs' => 118, 'rhs' => 3 ), - array( 'lhs' => 118, 'rhs' => 2 ), - array( 'lhs' => 100, 'rhs' => 2 ), - array( 'lhs' => 100, 'rhs' => 0 ), - array( 'lhs' => 119, 'rhs' => 2 ), - array( 'lhs' => 119, 'rhs' => 2 ), - array( 'lhs' => 109, 'rhs' => 1 ), - array( 'lhs' => 109, 'rhs' => 2 ), - array( 'lhs' => 109, 'rhs' => 1 ), - array( 'lhs' => 109, 'rhs' => 3 ), - array( 'lhs' => 109, 'rhs' => 4 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 105, 'rhs' => 1 ), - array( 'lhs' => 105, 'rhs' => 1 ), - array( 'lhs' => 105, 'rhs' => 1 ), - array( 'lhs' => 103, 'rhs' => 3 ), - array( 'lhs' => 120, 'rhs' => 1 ), - array( 'lhs' => 120, 'rhs' => 3 ), - array( 'lhs' => 120, 'rhs' => 0 ), - array( 'lhs' => 121, 'rhs' => 3 ), - array( 'lhs' => 121, 'rhs' => 3 ), - array( 'lhs' => 121, 'rhs' => 1 ), - array( 'lhs' => 108, 'rhs' => 2 ), - array( 'lhs' => 108, 'rhs' => 3 ), - array( 'lhs' => 122, 'rhs' => 2 ), - array( 'lhs' => 122, 'rhs' => 1 ), - array( 'lhs' => 123, 'rhs' => 3 ), - array( 'lhs' => 123, 'rhs' => 3 ), - array( 'lhs' => 123, 'rhs' => 1 ), - array( 'lhs' => 123, 'rhs' => 3 ), - array( 'lhs' => 123, 'rhs' => 3 ), - array( 'lhs' => 123, 'rhs' => 2 ), - array( 'lhs' => 123, 'rhs' => 1 ), - array( 'lhs' => 97, 'rhs' => 1 ), - array( 'lhs' => 97, 'rhs' => 0 ), - ); - - public static $yyReduceMap = array( - 0 => 0, - 1 => 1, - 2 => 1, - 4 => 4, - 5 => 5, - 6 => 6, - 7 => 7, - 8 => 8, - 9 => 9, - 10 => 10, - 11 => 11, - 12 => 12, - 13 => 13, - 14 => 14, - 15 => 15, - 16 => 16, - 17 => 17, - 20 => 17, - 204 => 17, - 18 => 18, - 77 => 18, - 19 => 19, - 105 => 19, - 107 => 19, - 108 => 19, - 131 => 19, - 169 => 19, - 21 => 21, - 22 => 21, - 48 => 21, - 70 => 21, - 71 => 21, - 78 => 21, - 79 => 21, - 84 => 21, - 104 => 21, - 109 => 21, - 110 => 21, - 115 => 21, - 117 => 21, - 118 => 21, - 125 => 21, - 142 => 21, - 168 => 21, - 170 => 21, - 186 => 21, - 191 => 21, - 203 => 21, - 23 => 23, - 24 => 23, - 25 => 25, - 26 => 26, - 27 => 27, - 28 => 28, - 29 => 29, - 30 => 30, - 32 => 30, - 31 => 31, - 33 => 33, - 34 => 33, - 35 => 35, - 36 => 36, - 37 => 37, - 38 => 38, - 39 => 39, - 40 => 40, - 41 => 41, - 42 => 42, - 43 => 43, - 45 => 43, - 44 => 44, - 46 => 46, - 47 => 47, - 49 => 49, - 50 => 50, - 51 => 51, - 52 => 52, - 54 => 52, - 53 => 53, - 55 => 53, - 56 => 56, - 57 => 57, - 58 => 58, - 59 => 59, - 60 => 60, - 61 => 61, - 62 => 62, - 63 => 63, - 64 => 64, - 73 => 64, - 158 => 64, - 162 => 64, - 166 => 64, - 167 => 64, - 65 => 65, - 159 => 65, - 165 => 65, - 66 => 66, - 67 => 67, - 68 => 67, - 69 => 69, - 72 => 72, - 74 => 74, - 75 => 75, - 76 => 75, - 80 => 80, - 81 => 81, - 82 => 81, - 83 => 81, - 85 => 85, - 122 => 85, - 86 => 86, - 89 => 86, - 100 => 86, - 87 => 87, - 88 => 88, - 90 => 90, - 91 => 91, - 92 => 92, - 97 => 92, - 93 => 93, - 96 => 93, - 94 => 94, - 99 => 94, - 95 => 95, - 98 => 95, - 101 => 101, - 102 => 102, - 103 => 103, - 106 => 106, - 111 => 111, - 112 => 112, - 113 => 113, - 114 => 114, - 116 => 116, - 119 => 119, - 120 => 120, - 121 => 121, - 123 => 123, - 124 => 124, - 126 => 126, - 127 => 127, - 128 => 128, - 129 => 129, - 130 => 130, - 132 => 132, - 188 => 132, - 133 => 133, - 134 => 134, - 135 => 135, - 136 => 136, - 137 => 137, - 140 => 137, - 138 => 138, - 139 => 139, - 141 => 141, - 143 => 143, - 144 => 144, - 145 => 145, - 146 => 146, - 147 => 147, - 148 => 148, - 149 => 149, - 150 => 150, - 151 => 151, - 152 => 152, - 153 => 153, - 154 => 154, - 155 => 155, - 156 => 156, - 157 => 157, - 160 => 160, - 161 => 161, - 163 => 163, - 164 => 164, - 171 => 171, - 172 => 172, - 173 => 173, - 174 => 174, - 175 => 175, - 176 => 176, - 177 => 177, - 178 => 178, - 179 => 179, - 180 => 180, - 181 => 181, - 182 => 182, - 183 => 183, - 184 => 184, - 185 => 185, - 187 => 187, - 189 => 189, - 190 => 190, - 192 => 192, - 193 => 193, - 194 => 194, - 195 => 195, - 196 => 196, - 197 => 196, - 199 => 196, - 198 => 198, - 200 => 200, - 201 => 201, - 202 => 202, - ); -#line 96 "smarty_internal_templateparser.y" - function yy_r0(){ - $this->_retvalue = $this->root_buffer->to_smarty_php(); - } -#line 2146 "smarty_internal_templateparser.php" -#line 104 "smarty_internal_templateparser.y" - function yy_r1(){ - if ($this->yystack[$this->yyidx + 0]->minor != null) { - $this->current_buffer->append_subtree($this->yystack[$this->yyidx + 0]->minor); - } - } -#line 2153 "smarty_internal_templateparser.php" -#line 124 "smarty_internal_templateparser.y" - function yy_r4(){ - if ($this->compiler->has_code) { - $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); - $this->_retvalue = new _smarty_tag($this, $this->compiler->processNocacheCode($tmp.$this->yystack[$this->yyidx + -1]->minor,true)); - } else { - $this->_retvalue = null; - } - $this->compiler->has_variable_string = false; - $this->block_nesting_level = count($this->compiler->_tag_stack); - } -#line 2165 "smarty_internal_templateparser.php" -#line 136 "smarty_internal_templateparser.y" - function yy_r5(){ - $this->_retvalue = null; - } -#line 2170 "smarty_internal_templateparser.php" -#line 141 "smarty_internal_templateparser.y" - function yy_r6(){ - $this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor); - } -#line 2175 "smarty_internal_templateparser.php" -#line 146 "smarty_internal_templateparser.y" - function yy_r7(){ - if ($this->php_handling == Smarty::PHP_PASSTHRU) { - $this->_retvalue = new _smarty_text($this, self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - $this->_retvalue = new _smarty_text($this, htmlspecialchars($this->yystack[$this->yyidx + 0]->minor, ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - if (!($this->smarty instanceof SmartyBC)) { - $this->compiler->trigger_template_error (self::Err3); - } - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode('php_handling == Smarty::PHP_REMOVE) { - $this->_retvalue = null; - } - } -#line 2191 "smarty_internal_templateparser.php" -#line 162 "smarty_internal_templateparser.y" - function yy_r8(){ - if ($this->is_xml) { - $this->compiler->tag_nocache = true; - $this->is_xml = false; - $save = $this->template->has_nocache_code; - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode("';?>\n", $this->compiler, true)); - $this->template->has_nocache_code = $save; - } elseif ($this->php_handling == Smarty::PHP_PASSTHRU) { - $this->_retvalue = new _smarty_text($this, '?>'); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - $this->_retvalue = new _smarty_text($this, htmlspecialchars('?>', ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode('?>', true)); - } elseif ($this->php_handling == Smarty::PHP_REMOVE) { - $this->_retvalue = null; - } - } -#line 2210 "smarty_internal_templateparser.php" -#line 181 "smarty_internal_templateparser.y" - function yy_r9(){ - if ($this->php_handling == Smarty::PHP_PASSTHRU) { - $this->_retvalue = new _smarty_text($this, '<%'); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - $this->_retvalue = new _smarty_text($this, htmlspecialchars($this->yystack[$this->yyidx + 0]->minor, ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - if ($this->asp_tags) { - if (!($this->smarty instanceof SmartyBC)) { - $this->compiler->trigger_template_error (self::Err3); - } - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode('<%', true)); - } else { - $this->_retvalue = new _smarty_text($this, '<%'); - } - } elseif ($this->php_handling == Smarty::PHP_REMOVE) { - if ($this->asp_tags) { - $this->_retvalue = null; - } else { - $this->_retvalue = new _smarty_text($this, '<%'); - } - } - } -#line 2234 "smarty_internal_templateparser.php" -#line 205 "smarty_internal_templateparser.y" - function yy_r10(){ - if ($this->php_handling == Smarty::PHP_PASSTHRU) { - $this->_retvalue = new _smarty_text($this, '%>'); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - $this->_retvalue = new _smarty_text($this, htmlspecialchars('%>', ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - if ($this->asp_tags) { - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode('%>', true)); - } else { - $this->_retvalue = new _smarty_text($this, '%>'); - } - } elseif ($this->php_handling == Smarty::PHP_REMOVE) { - if ($this->asp_tags) { - $this->_retvalue = null; - } else { - $this->_retvalue = new _smarty_text($this, '%>'); - } - } - } -#line 2255 "smarty_internal_templateparser.php" -#line 225 "smarty_internal_templateparser.y" - function yy_r11(){ - if ($this->strip) { - $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor))); - } else { - $this->_retvalue = new _smarty_text($this, self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)); - } - } -#line 2264 "smarty_internal_templateparser.php" -#line 234 "smarty_internal_templateparser.y" - function yy_r12(){ - $this->compiler->tag_nocache = true; - $this->is_xml = true; - $save = $this->template->has_nocache_code; - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode("", $this->compiler, true)); - $this->template->has_nocache_code = $save; - } -#line 2273 "smarty_internal_templateparser.php" -#line 243 "smarty_internal_templateparser.y" - function yy_r13(){ - if ($this->strip) { - $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor)); - } else { - $this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor); - } - } -#line 2282 "smarty_internal_templateparser.php" -#line 252 "smarty_internal_templateparser.y" - function yy_r14(){ - $this->strip = true; - } -#line 2287 "smarty_internal_templateparser.php" -#line 256 "smarty_internal_templateparser.y" - function yy_r15(){ - $this->strip = false; - } -#line 2292 "smarty_internal_templateparser.php" -#line 260 "smarty_internal_templateparser.y" - function yy_r16(){ - if ($this->strip) { - SMARTY_INTERNAL_COMPILE_BLOCK::blockSource($this->compiler, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor)); - } else { - SMARTY_INTERNAL_COMPILE_BLOCK::blockSource($this->compiler, $this->yystack[$this->yyidx + 0]->minor); - } - } -#line 2301 "smarty_internal_templateparser.php" -#line 269 "smarty_internal_templateparser.y" - function yy_r17(){ - $this->_retvalue = ''; - } -#line 2306 "smarty_internal_templateparser.php" -#line 273 "smarty_internal_templateparser.y" - function yy_r18(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; - } -#line 2311 "smarty_internal_templateparser.php" -#line 277 "smarty_internal_templateparser.y" - function yy_r19(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2316 "smarty_internal_templateparser.php" -#line 285 "smarty_internal_templateparser.y" - function yy_r21(){ - $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; - } -#line 2321 "smarty_internal_templateparser.php" -#line 293 "smarty_internal_templateparser.y" - function yy_r23(){ - $this->_retvalue = self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor); - } -#line 2326 "smarty_internal_templateparser.php" -#line 301 "smarty_internal_templateparser.y" - function yy_r25(){ - $this->_retvalue = self::escape_end_tag($this->yystack[$this->yyidx + 0]->minor); - } -#line 2331 "smarty_internal_templateparser.php" -#line 305 "smarty_internal_templateparser.y" - function yy_r26(){ - $this->_retvalue = '<%'; - } -#line 2336 "smarty_internal_templateparser.php" -#line 309 "smarty_internal_templateparser.y" - function yy_r27(){ - $this->_retvalue = '%>'; - } -#line 2341 "smarty_internal_templateparser.php" -#line 318 "smarty_internal_templateparser.y" - function yy_r28(){ - $this->_retvalue = $this->compiler->compileTag('private_print_expression',array(),array('value'=>$this->yystack[$this->yyidx + 0]->minor)); - } -#line 2346 "smarty_internal_templateparser.php" -#line 322 "smarty_internal_templateparser.y" - function yy_r29(){ - $this->_retvalue = $this->compiler->compileTag('private_print_expression',$this->yystack[$this->yyidx + 0]->minor,array('value'=>$this->yystack[$this->yyidx + -2]->minor, 'modifierlist'=>$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2351 "smarty_internal_templateparser.php" -#line 326 "smarty_internal_templateparser.y" - function yy_r30(){ - $this->_retvalue = $this->compiler->compileTag('private_print_expression',$this->yystack[$this->yyidx + 0]->minor,array('value'=>$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2356 "smarty_internal_templateparser.php" -#line 330 "smarty_internal_templateparser.y" - function yy_r31(){ - $this->_retvalue = $this->compiler->compileTag('private_print_expression',$this->yystack[$this->yyidx + 0]->minor,array('value'=>$this->yystack[$this->yyidx + -2]->minor,'modifierlist'=>$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2361 "smarty_internal_templateparser.php" -#line 343 "smarty_internal_templateparser.y" - function yy_r33(){ - $this->_retvalue = $this->compiler->compileTag('assign',array(array('value'=>$this->yystack[$this->yyidx + 0]->minor),array('var'=>"'".$this->yystack[$this->yyidx + -2]->minor."'"))); - } -#line 2366 "smarty_internal_templateparser.php" -#line 351 "smarty_internal_templateparser.y" - function yy_r35(){ - $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array(array('value'=>$this->yystack[$this->yyidx + -1]->minor),array('var'=>"'".$this->yystack[$this->yyidx + -3]->minor."'")),$this->yystack[$this->yyidx + 0]->minor)); - } -#line 2371 "smarty_internal_templateparser.php" -#line 355 "smarty_internal_templateparser.y" - function yy_r36(){ - $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array(array('value'=>$this->yystack[$this->yyidx + -1]->minor),array('var'=>$this->yystack[$this->yyidx + -3]->minor['var'])),$this->yystack[$this->yyidx + 0]->minor),array('smarty_internal_index'=>$this->yystack[$this->yyidx + -3]->minor['smarty_internal_index'])); - } -#line 2376 "smarty_internal_templateparser.php" -#line 360 "smarty_internal_templateparser.y" - function yy_r37(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); - } -#line 2381 "smarty_internal_templateparser.php" -#line 364 "smarty_internal_templateparser.y" - function yy_r38(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor,array()); - } -#line 2386 "smarty_internal_templateparser.php" -#line 369 "smarty_internal_templateparser.y" - function yy_r39(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor,array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2391 "smarty_internal_templateparser.php" -#line 374 "smarty_internal_templateparser.y" - function yy_r40(){ - $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + 0]->minor).'_retvalue .= $this->compiler->compileTag('private_modifier',array(),array('modifierlist'=>$this->yystack[$this->yyidx + -1]->minor,'value'=>'ob_get_clean()')).'?>'; - } -#line 2397 "smarty_internal_templateparser.php" -#line 380 "smarty_internal_templateparser.y" - function yy_r41(){ - $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + 0]->minor,array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor)).'_retvalue .= $this->compiler->compileTag('private_modifier',array(),array('modifierlist'=>$this->yystack[$this->yyidx + -1]->minor,'value'=>'ob_get_clean()')).'?>'; - } -#line 2403 "smarty_internal_templateparser.php" -#line 386 "smarty_internal_templateparser.y" - function yy_r42(){ - $tag = trim(substr($this->yystack[$this->yyidx + -1]->minor,$this->lex->ldel_length)); - $this->_retvalue = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,array(),array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); - } -#line 2409 "smarty_internal_templateparser.php" -#line 391 "smarty_internal_templateparser.y" - function yy_r43(){ - $tag = trim(substr($this->yystack[$this->yyidx + -2]->minor,$this->lex->ldel_length)); - $this->_retvalue = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,$this->yystack[$this->yyidx + 0]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2415 "smarty_internal_templateparser.php" -#line 396 "smarty_internal_templateparser.y" - function yy_r44(){ - $tag = trim(substr($this->yystack[$this->yyidx + -1]->minor,$this->lex->ldel_length)); - $this->_retvalue = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,array(),array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); - } -#line 2421 "smarty_internal_templateparser.php" -#line 407 "smarty_internal_templateparser.y" - function yy_r46(){ - $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + 0]->minor,array(array('start'=>$this->yystack[$this->yyidx + -9]->minor),array('ifexp'=>$this->yystack[$this->yyidx + -6]->minor),array('var'=>$this->yystack[$this->yyidx + -2]->minor),array('step'=>$this->yystack[$this->yyidx + -1]->minor))),1); - } -#line 2426 "smarty_internal_templateparser.php" -#line 411 "smarty_internal_templateparser.y" - function yy_r47(){ - $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2431 "smarty_internal_templateparser.php" -#line 419 "smarty_internal_templateparser.y" - function yy_r49(){ - $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + 0]->minor,array(array('start'=>$this->yystack[$this->yyidx + -3]->minor),array('to'=>$this->yystack[$this->yyidx + -1]->minor))),0); - } -#line 2436 "smarty_internal_templateparser.php" -#line 423 "smarty_internal_templateparser.y" - function yy_r50(){ - $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + 0]->minor,array(array('start'=>$this->yystack[$this->yyidx + -5]->minor),array('to'=>$this->yystack[$this->yyidx + -3]->minor),array('step'=>$this->yystack[$this->yyidx + -1]->minor))),0); - } -#line 2441 "smarty_internal_templateparser.php" -#line 428 "smarty_internal_templateparser.y" - function yy_r51(){ - $this->_retvalue = $this->compiler->compileTag('foreach',$this->yystack[$this->yyidx + 0]->minor); - } -#line 2446 "smarty_internal_templateparser.php" -#line 433 "smarty_internal_templateparser.y" - function yy_r52(){ - $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + 0]->minor,array(array('from'=>$this->yystack[$this->yyidx + -4]->minor),array('item'=>$this->yystack[$this->yyidx + -1]->minor)))); - } -#line 2451 "smarty_internal_templateparser.php" -#line 437 "smarty_internal_templateparser.y" - function yy_r53(){ - $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + 0]->minor,array(array('from'=>$this->yystack[$this->yyidx + -7]->minor),array('item'=>$this->yystack[$this->yyidx + -1]->minor),array('key'=>$this->yystack[$this->yyidx + -4]->minor)))); - } -#line 2456 "smarty_internal_templateparser.php" -#line 450 "smarty_internal_templateparser.y" - function yy_r56(){ - $this->_retvalue = $this->compiler->compileTag('setfilter',array(),array('modifier_list'=>array(array_merge(array($this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)))); - } -#line 2461 "smarty_internal_templateparser.php" -#line 454 "smarty_internal_templateparser.y" - function yy_r57(){ - $this->_retvalue = $this->compiler->compileTag('setfilter',array(),array('modifier_list'=>array_merge(array(array_merge(array($this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)),$this->yystack[$this->yyidx + 0]->minor))); - } -#line 2466 "smarty_internal_templateparser.php" -#line 459 "smarty_internal_templateparser.y" - function yy_r58(){ - $j = strrpos($this->yystack[$this->yyidx + 0]->minor,'.'); - if ($this->yystack[$this->yyidx + 0]->minor[$j+1] == 'c') { - // {$smarty.block.child} - $this->_retvalue = SMARTY_INTERNAL_COMPILE_BLOCK::compileChildBlock($this->compiler); - } else { - // {$smarty.block.parent} - $this->_retvalue = SMARTY_INTERNAL_COMPILE_BLOCK::compileParentBlock($this->compiler); - } - } -#line 2478 "smarty_internal_templateparser.php" -#line 472 "smarty_internal_templateparser.y" - function yy_r59(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor.'close',array()); - } -#line 2483 "smarty_internal_templateparser.php" -#line 476 "smarty_internal_templateparser.y" - function yy_r60(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',array(),array('modifier_list'=>$this->yystack[$this->yyidx + 0]->minor)); - } -#line 2488 "smarty_internal_templateparser.php" -#line 481 "smarty_internal_templateparser.y" - function yy_r61(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array(),array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); - } -#line 2493 "smarty_internal_templateparser.php" -#line 485 "smarty_internal_templateparser.y" - function yy_r62(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array(),array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor, 'modifier_list'=>$this->yystack[$this->yyidx + 0]->minor)); - } -#line 2498 "smarty_internal_templateparser.php" -#line 493 "smarty_internal_templateparser.y" - function yy_r63(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; - $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; - } -#line 2504 "smarty_internal_templateparser.php" -#line 499 "smarty_internal_templateparser.y" - function yy_r64(){ - $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); - } -#line 2509 "smarty_internal_templateparser.php" -#line 504 "smarty_internal_templateparser.y" - function yy_r65(){ - $this->_retvalue = array(); - } -#line 2514 "smarty_internal_templateparser.php" -#line 509 "smarty_internal_templateparser.y" - function yy_r66(){ - if (preg_match('~^true$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>'true'); - } elseif (preg_match('~^false$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>'false'); - } elseif (preg_match('~^null$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>'null'); - } else { - $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>"'".$this->yystack[$this->yyidx + 0]->minor."'"); - } - } -#line 2527 "smarty_internal_templateparser.php" -#line 521 "smarty_internal_templateparser.y" - function yy_r67(){ - $this->_retvalue = array(trim($this->yystack[$this->yyidx + -1]->minor," =\n\r\t")=>$this->yystack[$this->yyidx + 0]->minor); - } -#line 2532 "smarty_internal_templateparser.php" -#line 529 "smarty_internal_templateparser.y" - function yy_r69(){ - $this->_retvalue = "'".$this->yystack[$this->yyidx + 0]->minor."'"; - } -#line 2537 "smarty_internal_templateparser.php" -#line 541 "smarty_internal_templateparser.y" - function yy_r72(){ - $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); - } -#line 2542 "smarty_internal_templateparser.php" -#line 554 "smarty_internal_templateparser.y" - function yy_r74(){ - $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; - } -#line 2548 "smarty_internal_templateparser.php" -#line 559 "smarty_internal_templateparser.y" - function yy_r75(){ - $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); - } -#line 2553 "smarty_internal_templateparser.php" -#line 587 "smarty_internal_templateparser.y" - function yy_r80(){ - $this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; - } -#line 2558 "smarty_internal_templateparser.php" -#line 592 "smarty_internal_templateparser.y" - function yy_r81(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . trim($this->yystack[$this->yyidx + -1]->minor) . $this->yystack[$this->yyidx + 0]->minor; - } -#line 2563 "smarty_internal_templateparser.php" -#line 611 "smarty_internal_templateparser.y" - function yy_r85(){ - $this->_retvalue = $this->compiler->compileTag('private_modifier',array(),array('value'=>$this->yystack[$this->yyidx + -1]->minor,'modifierlist'=>$this->yystack[$this->yyidx + 0]->minor)); - } -#line 2568 "smarty_internal_templateparser.php" -#line 617 "smarty_internal_templateparser.y" - function yy_r86(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2573 "smarty_internal_templateparser.php" -#line 621 "smarty_internal_templateparser.y" - function yy_r87(){ - $this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2578 "smarty_internal_templateparser.php" -#line 625 "smarty_internal_templateparser.y" - function yy_r88(){ - $this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2583 "smarty_internal_templateparser.php" -#line 633 "smarty_internal_templateparser.y" - function yy_r90(){ - $this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2588 "smarty_internal_templateparser.php" -#line 637 "smarty_internal_templateparser.y" - function yy_r91(){ - $this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2593 "smarty_internal_templateparser.php" -#line 641 "smarty_internal_templateparser.y" - function yy_r92(){ - $this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; - } -#line 2598 "smarty_internal_templateparser.php" -#line 645 "smarty_internal_templateparser.y" - function yy_r93(){ - $this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; - } -#line 2603 "smarty_internal_templateparser.php" -#line 649 "smarty_internal_templateparser.y" - function yy_r94(){ - $this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2608 "smarty_internal_templateparser.php" -#line 653 "smarty_internal_templateparser.y" - function yy_r95(){ - $this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2613 "smarty_internal_templateparser.php" -#line 677 "smarty_internal_templateparser.y" - function yy_r101(){ - self::$prefix_number++; - $this->compiler->prefix_code[] = 'yystack[$this->yyidx + 0]->minor.';?>'; - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.self::$prefix_number; - } -#line 2620 "smarty_internal_templateparser.php" -#line 686 "smarty_internal_templateparser.y" - function yy_r102(){ - $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.' ? '. $this->compileVariable("'".$this->yystack[$this->yyidx + -2]->minor."'") . ' : '.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2625 "smarty_internal_templateparser.php" -#line 690 "smarty_internal_templateparser.y" - function yy_r103(){ - $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2630 "smarty_internal_templateparser.php" -#line 705 "smarty_internal_templateparser.y" - function yy_r106(){ - $this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2635 "smarty_internal_templateparser.php" -#line 726 "smarty_internal_templateparser.y" - function yy_r111(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2640 "smarty_internal_templateparser.php" -#line 730 "smarty_internal_templateparser.y" - function yy_r112(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'; - } -#line 2645 "smarty_internal_templateparser.php" -#line 734 "smarty_internal_templateparser.y" - function yy_r113(){ - $this->_retvalue = '.'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2650 "smarty_internal_templateparser.php" -#line 739 "smarty_internal_templateparser.y" - function yy_r114(){ - if (preg_match('~^true$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = 'true'; - } elseif (preg_match('~^false$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = 'false'; - } elseif (preg_match('~^null$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = 'null'; - } else { - $this->_retvalue = "'".$this->yystack[$this->yyidx + 0]->minor."'"; - } - } -#line 2663 "smarty_internal_templateparser.php" -#line 757 "smarty_internal_templateparser.y" - function yy_r116(){ - $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; - } -#line 2668 "smarty_internal_templateparser.php" -#line 772 "smarty_internal_templateparser.y" - function yy_r119(){ - if (!$this->security || isset($this->smarty->registered_classes[$this->yystack[$this->yyidx + -2]->minor]) || $this->smarty->security_policy->isTrustedStaticClass($this->yystack[$this->yyidx + -2]->minor, $this->compiler)) { - if (isset($this->smarty->registered_classes[$this->yystack[$this->yyidx + -2]->minor])) { - $this->_retvalue = $this->smarty->registered_classes[$this->yystack[$this->yyidx + -2]->minor].'::'.$this->yystack[$this->yyidx + 0]->minor; - } else { - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; - } - } else { - $this->compiler->trigger_template_error ("static class '".$this->yystack[$this->yyidx + -2]->minor."' is undefined or not allowed by security setting"); - } - } -#line 2681 "smarty_internal_templateparser.php" -#line 784 "smarty_internal_templateparser.y" - function yy_r120(){ - if ($this->yystack[$this->yyidx + -2]->minor['var'] == '\'smarty\'') { - $this->_retvalue = $this->compiler->compileTag('private_special_variable',array(),$this->yystack[$this->yyidx + -2]->minor['smarty_internal_index']).'::'.$this->yystack[$this->yyidx + 0]->minor; - } else { - $this->_retvalue = $this->compileVariable($this->yystack[$this->yyidx + -2]->minor['var']).$this->yystack[$this->yyidx + -2]->minor['smarty_internal_index'].'::'.$this->yystack[$this->yyidx + 0]->minor; - } - } -#line 2690 "smarty_internal_templateparser.php" -#line 793 "smarty_internal_templateparser.y" - function yy_r121(){ - self::$prefix_number++; - $this->compiler->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.''; - $this->_retvalue = '$_tmp'.self::$prefix_number; - } -#line 2697 "smarty_internal_templateparser.php" -#line 808 "smarty_internal_templateparser.y" - function yy_r123(){ - if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { - $smarty_var = $this->compiler->compileTag('private_special_variable',array(),$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']); - $this->_retvalue = $smarty_var; - } else { - // used for array reset,next,prev,end,current - $this->last_variable = $this->yystack[$this->yyidx + 0]->minor['var']; - $this->last_index = $this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']; - $this->_retvalue = $this->compileVariable($this->yystack[$this->yyidx + 0]->minor['var']).$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']; - } - } -#line 2710 "smarty_internal_templateparser.php" -#line 821 "smarty_internal_templateparser.y" - function yy_r124(){ - $this->_retvalue = '$_smarty_tpl->tpl_vars['. $this->yystack[$this->yyidx + -2]->minor .']->'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2715 "smarty_internal_templateparser.php" -#line 831 "smarty_internal_templateparser.y" - function yy_r126(){ - $this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; - } -#line 2720 "smarty_internal_templateparser.php" -#line 835 "smarty_internal_templateparser.y" - function yy_r127(){ - $this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'\')) ? $tmp'.$this->yystack[$this->yyidx + 0]->minor.' :null)'; - } -#line 2725 "smarty_internal_templateparser.php" -#line 839 "smarty_internal_templateparser.y" - function yy_r128(){ - $this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; - } -#line 2730 "smarty_internal_templateparser.php" -#line 843 "smarty_internal_templateparser.y" - function yy_r129(){ - $this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -2]->minor .')) ? $tmp'.$this->yystack[$this->yyidx + 0]->minor.' : null)'; - } -#line 2735 "smarty_internal_templateparser.php" -#line 847 "smarty_internal_templateparser.y" - function yy_r130(){ - $this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'smarty_internal_index'=>$this->yystack[$this->yyidx + 0]->minor); - } -#line 2740 "smarty_internal_templateparser.php" -#line 860 "smarty_internal_templateparser.y" - function yy_r132(){ - return; - } -#line 2745 "smarty_internal_templateparser.php" -#line 866 "smarty_internal_templateparser.y" - function yy_r133(){ - $this->_retvalue = '['.$this->compileVariable($this->yystack[$this->yyidx + 0]->minor).']'; - } -#line 2750 "smarty_internal_templateparser.php" -#line 870 "smarty_internal_templateparser.y" - function yy_r134(){ - $this->_retvalue = '['.$this->compileVariable($this->yystack[$this->yyidx + -2]->minor).'->'.$this->yystack[$this->yyidx + 0]->minor.']'; - } -#line 2755 "smarty_internal_templateparser.php" -#line 874 "smarty_internal_templateparser.y" - function yy_r135(){ - $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; - } -#line 2760 "smarty_internal_templateparser.php" -#line 878 "smarty_internal_templateparser.y" - function yy_r136(){ - $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; - } -#line 2765 "smarty_internal_templateparser.php" -#line 882 "smarty_internal_templateparser.y" - function yy_r137(){ - $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; - } -#line 2770 "smarty_internal_templateparser.php" -#line 887 "smarty_internal_templateparser.y" - function yy_r138(){ - $this->_retvalue = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; - } -#line 2775 "smarty_internal_templateparser.php" -#line 891 "smarty_internal_templateparser.y" - function yy_r139(){ - $this->_retvalue = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; - } -#line 2780 "smarty_internal_templateparser.php" -#line 901 "smarty_internal_templateparser.y" - function yy_r141(){ - $this->_retvalue = '[]'; - } -#line 2785 "smarty_internal_templateparser.php" -#line 914 "smarty_internal_templateparser.y" - function yy_r143(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2790 "smarty_internal_templateparser.php" -#line 919 "smarty_internal_templateparser.y" - function yy_r144(){ - $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; - } -#line 2795 "smarty_internal_templateparser.php" -#line 924 "smarty_internal_templateparser.y" - function yy_r145(){ - $this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; - } -#line 2800 "smarty_internal_templateparser.php" -#line 931 "smarty_internal_templateparser.y" - function yy_r146(){ - if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { - $this->_retvalue = $this->compiler->compileTag('private_special_variable',array(),$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index']).$this->yystack[$this->yyidx + 0]->minor; - } else { - $this->_retvalue = $this->compileVariable($this->yystack[$this->yyidx + -1]->minor['var']).$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index'].$this->yystack[$this->yyidx + 0]->minor; - } - } -#line 2809 "smarty_internal_templateparser.php" -#line 940 "smarty_internal_templateparser.y" - function yy_r147(){ - $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; - } -#line 2814 "smarty_internal_templateparser.php" -#line 945 "smarty_internal_templateparser.y" - function yy_r148(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2819 "smarty_internal_templateparser.php" -#line 950 "smarty_internal_templateparser.y" - function yy_r149(){ - if ($this->security && substr($this->yystack[$this->yyidx + -1]->minor,0,1) == '_') { - $this->compiler->trigger_template_error (self::Err1); - } - $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2827 "smarty_internal_templateparser.php" -#line 957 "smarty_internal_templateparser.y" - function yy_r150(){ - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - $this->_retvalue = '->{'.$this->compileVariable($this->yystack[$this->yyidx + -1]->minor).$this->yystack[$this->yyidx + 0]->minor.'}'; - } -#line 2835 "smarty_internal_templateparser.php" -#line 964 "smarty_internal_templateparser.y" - function yy_r151(){ - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; - } -#line 2843 "smarty_internal_templateparser.php" -#line 971 "smarty_internal_templateparser.y" - function yy_r152(){ - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; - } -#line 2851 "smarty_internal_templateparser.php" -#line 979 "smarty_internal_templateparser.y" - function yy_r153(){ - $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2856 "smarty_internal_templateparser.php" -#line 987 "smarty_internal_templateparser.y" - function yy_r154(){ - if (!$this->security || $this->smarty->security_policy->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) { - if (strcasecmp($this->yystack[$this->yyidx + -3]->minor,'isset') === 0 || strcasecmp($this->yystack[$this->yyidx + -3]->minor,'empty') === 0 || strcasecmp($this->yystack[$this->yyidx + -3]->minor,'array') === 0 || is_callable($this->yystack[$this->yyidx + -3]->minor)) { - $func_name = strtolower($this->yystack[$this->yyidx + -3]->minor); - if ($func_name == 'isset') { - if (count($this->yystack[$this->yyidx + -1]->minor) == 0) { - $this->compiler->trigger_template_error ('Illegal number of paramer in "isset()"'); - } - $par = implode(',',$this->yystack[$this->yyidx + -1]->minor); - if (strncasecmp($par,'$_smarty_tpl->getConfigVariable',strlen('$_smarty_tpl->getConfigVariable')) === 0) { - self::$prefix_number++; - $this->compiler->prefix_code[] = ''; - $isset_par = '$_tmp'.self::$prefix_number; - } else { - $isset_par=str_replace("')->value","',null,true,false)->value",$par); - } - $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $isset_par .")"; - } elseif (in_array($func_name,array('empty','reset','current','end','prev','next'))){ - if (count($this->yystack[$this->yyidx + -1]->minor) != 1) { - $this->compiler->trigger_template_error ('Illegal number of paramer in "empty()"'); - } - if ($func_name == 'empty') { - $this->_retvalue = $func_name.'('.str_replace("')->value","',null,true,false)->value",$this->yystack[$this->yyidx + -1]->minor[0]).')'; - } else { - $this->_retvalue = $func_name.'('.$this->yystack[$this->yyidx + -1]->minor[0].')'; - } - } else { - $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". implode(',',$this->yystack[$this->yyidx + -1]->minor) .")"; - } - } else { - $this->compiler->trigger_template_error ("unknown function \"" . $this->yystack[$this->yyidx + -3]->minor . "\""); - } - } - } -#line 2892 "smarty_internal_templateparser.php" -#line 1025 "smarty_internal_templateparser.y" - function yy_r155(){ - if ($this->security && substr($this->yystack[$this->yyidx + -3]->minor,0,1) == '_') { - $this->compiler->trigger_template_error (self::Err1); - } - $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". implode(',',$this->yystack[$this->yyidx + -1]->minor) .")"; - } -#line 2900 "smarty_internal_templateparser.php" -#line 1032 "smarty_internal_templateparser.y" - function yy_r156(){ - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - self::$prefix_number++; - $this->compiler->prefix_code[] = 'compileVariable("'".$this->yystack[$this->yyidx + -3]->minor."'").';?>'; - $this->_retvalue = '$_tmp'.self::$prefix_number.'('. implode(',',$this->yystack[$this->yyidx + -1]->minor) .')'; - } -#line 2910 "smarty_internal_templateparser.php" -#line 1043 "smarty_internal_templateparser.y" - function yy_r157(){ - $this->_retvalue = array_merge($this->yystack[$this->yyidx + -2]->minor,array($this->yystack[$this->yyidx + 0]->minor)); - } -#line 2915 "smarty_internal_templateparser.php" -#line 1060 "smarty_internal_templateparser.y" - function yy_r160(){ - $this->_retvalue = array_merge($this->yystack[$this->yyidx + -2]->minor,array(array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor))); - } -#line 2920 "smarty_internal_templateparser.php" -#line 1064 "smarty_internal_templateparser.y" - function yy_r161(){ - $this->_retvalue = array(array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor)); - } -#line 2925 "smarty_internal_templateparser.php" -#line 1072 "smarty_internal_templateparser.y" - function yy_r163(){ - $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); - } -#line 2930 "smarty_internal_templateparser.php" -#line 1080 "smarty_internal_templateparser.y" - function yy_r164(){ - $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); - } -#line 2935 "smarty_internal_templateparser.php" -#line 1114 "smarty_internal_templateparser.y" - function yy_r171(){ - $this->_retvalue = '$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2940 "smarty_internal_templateparser.php" -#line 1119 "smarty_internal_templateparser.y" - function yy_r172(){ - $this->_retvalue = '$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2945 "smarty_internal_templateparser.php" -#line 1125 "smarty_internal_templateparser.y" - function yy_r173(){ - $this->_retvalue = '=='; - } -#line 2950 "smarty_internal_templateparser.php" -#line 1129 "smarty_internal_templateparser.y" - function yy_r174(){ - $this->_retvalue = '!='; - } -#line 2955 "smarty_internal_templateparser.php" -#line 1133 "smarty_internal_templateparser.y" - function yy_r175(){ - $this->_retvalue = '>'; - } -#line 2960 "smarty_internal_templateparser.php" -#line 1137 "smarty_internal_templateparser.y" - function yy_r176(){ - $this->_retvalue = '<'; - } -#line 2965 "smarty_internal_templateparser.php" -#line 1141 "smarty_internal_templateparser.y" - function yy_r177(){ - $this->_retvalue = '>='; - } -#line 2970 "smarty_internal_templateparser.php" -#line 1145 "smarty_internal_templateparser.y" - function yy_r178(){ - $this->_retvalue = '<='; - } -#line 2975 "smarty_internal_templateparser.php" -#line 1149 "smarty_internal_templateparser.y" - function yy_r179(){ - $this->_retvalue = '==='; - } -#line 2980 "smarty_internal_templateparser.php" -#line 1153 "smarty_internal_templateparser.y" - function yy_r180(){ - $this->_retvalue = '!=='; - } -#line 2985 "smarty_internal_templateparser.php" -#line 1157 "smarty_internal_templateparser.y" - function yy_r181(){ - $this->_retvalue = '%'; - } -#line 2990 "smarty_internal_templateparser.php" -#line 1161 "smarty_internal_templateparser.y" - function yy_r182(){ - $this->_retvalue = '&&'; - } -#line 2995 "smarty_internal_templateparser.php" -#line 1165 "smarty_internal_templateparser.y" - function yy_r183(){ - $this->_retvalue = '||'; - } -#line 3000 "smarty_internal_templateparser.php" -#line 1169 "smarty_internal_templateparser.y" - function yy_r184(){ - $this->_retvalue = ' XOR '; - } -#line 3005 "smarty_internal_templateparser.php" -#line 1176 "smarty_internal_templateparser.y" - function yy_r185(){ - $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; - } -#line 3010 "smarty_internal_templateparser.php" -#line 1184 "smarty_internal_templateparser.y" - function yy_r187(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; - } -#line 3015 "smarty_internal_templateparser.php" -#line 1192 "smarty_internal_templateparser.y" - function yy_r189(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 3020 "smarty_internal_templateparser.php" -#line 1196 "smarty_internal_templateparser.y" - function yy_r190(){ - $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 3025 "smarty_internal_templateparser.php" -#line 1208 "smarty_internal_templateparser.y" - function yy_r192(){ - $this->_retvalue = "''"; - } -#line 3030 "smarty_internal_templateparser.php" -#line 1212 "smarty_internal_templateparser.y" - function yy_r193(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor->to_smarty_php(); - } -#line 3035 "smarty_internal_templateparser.php" -#line 1217 "smarty_internal_templateparser.y" - function yy_r194(){ - $this->yystack[$this->yyidx + -1]->minor->append_subtree($this->yystack[$this->yyidx + 0]->minor); - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; - } -#line 3041 "smarty_internal_templateparser.php" -#line 1222 "smarty_internal_templateparser.y" - function yy_r195(){ - $this->_retvalue = new _smarty_doublequoted($this, $this->yystack[$this->yyidx + 0]->minor); - } -#line 3046 "smarty_internal_templateparser.php" -#line 1226 "smarty_internal_templateparser.y" - function yy_r196(){ - $this->_retvalue = new _smarty_code($this, '(string)'.$this->yystack[$this->yyidx + -1]->minor); - } -#line 3051 "smarty_internal_templateparser.php" -#line 1234 "smarty_internal_templateparser.y" - function yy_r198(){ - $this->_retvalue = new _smarty_code($this, '(string)$_smarty_tpl->tpl_vars[\''. substr($this->yystack[$this->yyidx + 0]->minor,1) .'\']->value'); - } -#line 3056 "smarty_internal_templateparser.php" -#line 1242 "smarty_internal_templateparser.y" - function yy_r200(){ - $this->_retvalue = new _smarty_code($this, '(string)('.$this->yystack[$this->yyidx + -1]->minor.')'); - } -#line 3061 "smarty_internal_templateparser.php" -#line 1246 "smarty_internal_templateparser.y" - function yy_r201(){ - $this->_retvalue = new _smarty_tag($this, $this->yystack[$this->yyidx + -1]->minor); - } -#line 3066 "smarty_internal_templateparser.php" -#line 1250 "smarty_internal_templateparser.y" - function yy_r202(){ - $this->_retvalue = new _smarty_dq_content($this, $this->yystack[$this->yyidx + 0]->minor); - } -#line 3071 "smarty_internal_templateparser.php" - - private $_retvalue; - - public function yy_reduce($yyruleno) - { - $yymsp = $this->yystack[$this->yyidx]; - if (self::$yyTraceFILE && $yyruleno >= 0 - && $yyruleno < count(self::$yyRuleName)) { - fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n", - self::$yyTracePrompt, $yyruleno, - self::$yyRuleName[$yyruleno]); - } - - $this->_retvalue = $yy_lefthand_side = null; - if (array_key_exists($yyruleno, self::$yyReduceMap)) { - // call the action - $this->_retvalue = null; - $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}(); - $yy_lefthand_side = $this->_retvalue; - } - $yygoto = self::$yyRuleInfo[$yyruleno]['lhs']; - $yysize = self::$yyRuleInfo[$yyruleno]['rhs']; - $this->yyidx -= $yysize; - for ($i = $yysize; $i; $i--) { - // pop all of the right-hand side parameters - array_pop($this->yystack); - } - $yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto); - if ($yyact < self::YYNSTATE) { - if (!self::$yyTraceFILE && $yysize) { - $this->yyidx++; - $x = new TP_yyStackEntry; - $x->stateno = $yyact; - $x->major = $yygoto; - $x->minor = $yy_lefthand_side; - $this->yystack[$this->yyidx] = $x; - } else { - $this->yy_shift($yyact, $yygoto, $yy_lefthand_side); - } - } elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) { - $this->yy_accept(); - } - } - - public function yy_parse_failed() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt); - } while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - } - - public function yy_syntax_error($yymajor, $TOKEN) - { -#line 78 "smarty_internal_templateparser.y" - - $this->internalError = true; - $this->yymajor = $yymajor; - $this->compiler->trigger_template_error(); -#line 3133 "smarty_internal_templateparser.php" - } - - public function yy_accept() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt); - } while ($this->yyidx >= 0) { - $stack = $this->yy_pop_parser_stack(); - } -#line 70 "smarty_internal_templateparser.y" - - $this->successful = !$this->internalError; - $this->internalError = false; - $this->retvalue = $this->_retvalue; - //echo $this->retvalue."\n\n"; -#line 3150 "smarty_internal_templateparser.php" - } - - public function doParse($yymajor, $yytokenvalue) - { - $yyerrorhit = 0; /* True if yymajor has invoked an error */ - - if ($this->yyidx === null || $this->yyidx < 0) { - $this->yyidx = 0; - $this->yyerrcnt = -1; - $x = new TP_yyStackEntry; - $x->stateno = 0; - $x->major = 0; - $this->yystack = array(); - array_push($this->yystack, $x); - } - $yyendofinput = ($yymajor==0); - - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sInput %s\n", - self::$yyTracePrompt, $this->yyTokenName[$yymajor]); - } - - do { - $yyact = $this->yy_find_shift_action($yymajor); - if ($yymajor < self::YYERRORSYMBOL && - !$this->yy_is_expected_token($yymajor)) { - // force a syntax error - $yyact = self::YY_ERROR_ACTION; - } - if ($yyact < self::YYNSTATE) { - $this->yy_shift($yyact, $yymajor, $yytokenvalue); - $this->yyerrcnt--; - if ($yyendofinput && $this->yyidx >= 0) { - $yymajor = 0; - } else { - $yymajor = self::YYNOCODE; - } - } elseif ($yyact < self::YYNSTATE + self::YYNRULE) { - $this->yy_reduce($yyact - self::YYNSTATE); - } elseif ($yyact == self::YY_ERROR_ACTION) { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sSyntax Error!\n", - self::$yyTracePrompt); - } - if (self::YYERRORSYMBOL) { - if ($this->yyerrcnt < 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $yymx = $this->yystack[$this->yyidx]->major; - if ($yymx == self::YYERRORSYMBOL || $yyerrorhit) { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n", - self::$yyTracePrompt, $this->yyTokenName[$yymajor]); - } - $this->yy_destructor($yymajor, $yytokenvalue); - $yymajor = self::YYNOCODE; - } else { - while ($this->yyidx >= 0 && - $yymx != self::YYERRORSYMBOL && - ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE - ){ - $this->yy_pop_parser_stack(); - } - if ($this->yyidx < 0 || $yymajor==0) { - $this->yy_destructor($yymajor, $yytokenvalue); - $this->yy_parse_failed(); - $yymajor = self::YYNOCODE; - } elseif ($yymx != self::YYERRORSYMBOL) { - $u2 = 0; - $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); - } - } - $this->yyerrcnt = 3; - $yyerrorhit = 1; - } else { - if ($this->yyerrcnt <= 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $this->yyerrcnt = 3; - $this->yy_destructor($yymajor, $yytokenvalue); - if ($yyendofinput) { - $this->yy_parse_failed(); - } - $yymajor = self::YYNOCODE; - } - } else { - $this->yy_accept(); - $yymajor = self::YYNOCODE; - } - } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); - } -} \ No newline at end of file diff --git a/lib/classes/Smarty-3.1.15/COPYING.lib b/lib/classes/Smarty-3.1.21/COPYING.lib similarity index 100% rename from lib/classes/Smarty-3.1.15/COPYING.lib rename to lib/classes/Smarty-3.1.21/COPYING.lib diff --git a/lib/classes/Smarty-3.1.15/README b/lib/classes/Smarty-3.1.21/README similarity index 99% rename from lib/classes/Smarty-3.1.15/README rename to lib/classes/Smarty-3.1.21/README index 89230921..6367f030 100644 --- a/lib/classes/Smarty-3.1.15/README +++ b/lib/classes/Smarty-3.1.21/README @@ -1,4 +1,4 @@ -Smarty 3.1.15 +Smarty 3.1.21 Author: Monte Ohrt Author: Uwe Tews diff --git a/lib/classes/Smarty-3.1.15/SMARTY_2_BC_NOTES.txt b/lib/classes/Smarty-3.1.21/SMARTY_2_BC_NOTES.txt similarity index 100% rename from lib/classes/Smarty-3.1.15/SMARTY_2_BC_NOTES.txt rename to lib/classes/Smarty-3.1.21/SMARTY_2_BC_NOTES.txt diff --git a/lib/classes/Smarty-3.1.15/SMARTY_3.0_BC_NOTES.txt b/lib/classes/Smarty-3.1.21/SMARTY_3.0_BC_NOTES.txt similarity index 100% rename from lib/classes/Smarty-3.1.15/SMARTY_3.0_BC_NOTES.txt rename to lib/classes/Smarty-3.1.21/SMARTY_3.0_BC_NOTES.txt diff --git a/lib/classes/Smarty-3.1.15/SMARTY_3.1_NOTES.txt b/lib/classes/Smarty-3.1.21/SMARTY_3.1_NOTES.txt similarity index 100% rename from lib/classes/Smarty-3.1.15/SMARTY_3.1_NOTES.txt rename to lib/classes/Smarty-3.1.21/SMARTY_3.1_NOTES.txt diff --git a/lib/classes/Smarty-3.1.15/change_log.txt b/lib/classes/Smarty-3.1.21/change_log.txt similarity index 91% rename from lib/classes/Smarty-3.1.15/change_log.txt rename to lib/classes/Smarty-3.1.21/change_log.txt index bd967b30..a0161659 100644 --- a/lib/classes/Smarty-3.1.15/change_log.txt +++ b/lib/classes/Smarty-3.1.21/change_log.txt @@ -1,5 +1,169 @@ - ===== trunk ===== - ===== Smarty-3.1.15 ===== + ===== 3.1.22-dev ===== (xx.xx.2014) + ===== 3.1.21 ===== (18.10.2014) + 18.10.2014 + - composer moved to github + - add COMPOSER_RELEASE_NOTES + + 17.10.2014 + - bugfix on $php_handling security and optimization of smarty_internal_parsetree (Thue Kristensen) + + 16.10.2014 + - bugfix composer.json update + + 15.10.2014 + - bugfix calling a new created cache file with fetch() and Smarty::CACHING_LIFETIME_SAVED multiple times did fail (forum 22350) + + 14.10.2014 + - bugfix any tag placed within " diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/block.textformat.php b/lib/classes/Smarty-3.1.21/libs/plugins/block.textformat.php similarity index 95% rename from lib/classes/Smarty-3.1.15/libs/plugins/block.textformat.php rename to lib/classes/Smarty-3.1.21/libs/plugins/block.textformat.php index b62a4f8e..abf54493 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/block.textformat.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/block.textformat.php @@ -2,13 +2,12 @@ /** * Smarty plugin to format text blocks * - * @package Smarty + * @package Smarty * @subpackage PluginsBlock */ /** * Smarty {textformat}{/textformat} block plugin - * * Type: block function
* Name: textformat
* Purpose: format text a certain way with preset styles @@ -23,12 +22,14 @@ * - wrap_boundary - boolean (true) * * - * @link http://www.smarty.net/manual/en/language.function.textformat.php {textformat} - * (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.function.textformat.php {textformat} + * (Smarty online manual) + * * @param array $params parameters * @param string $content contents of the block * @param Smarty_Internal_Template $template template object * @param boolean &$repeat repeat flag + * * @return string content re-formatted * @author Monte Ohrt */ @@ -76,7 +77,6 @@ function smarty_block_textformat($params, $content, $template, &$repeat) } // split into paragraphs $_paragraphs = preg_split('![\r\n]{2}!', $content); - $_output = ''; foreach ($_paragraphs as &$_paragraph) { if (!$_paragraph) { diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/function.counter.php b/lib/classes/Smarty-3.1.21/libs/plugins/function.counter.php similarity index 81% rename from lib/classes/Smarty-3.1.15/libs/plugins/function.counter.php rename to lib/classes/Smarty-3.1.21/libs/plugins/function.counter.php index cd147634..4da85a14 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/function.counter.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/function.counter.php @@ -1,22 +1,24 @@ * Name: counter
* Purpose: print out a counter value * * @author Monte Ohrt - * @link http://www.smarty.net/manual/en/language.function.counter.php {counter} - * (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.function.counter.php {counter} + * (Smarty online manual) + * * @param array $params parameters * @param Smarty_Internal_Template $template template object + * * @return string|null */ function smarty_function_counter($params, $template) @@ -26,11 +28,11 @@ function smarty_function_counter($params, $template) $name = (isset($params['name'])) ? $params['name'] : 'default'; if (!isset($counters[$name])) { $counters[$name] = array( - 'start'=>1, - 'skip'=>1, - 'direction'=>'up', - 'count'=>1 - ); + 'start' => 1, + 'skip' => 1, + 'direction' => 'up', + 'count' => 1 + ); } $counter =& $counters[$name]; @@ -66,11 +68,11 @@ function smarty_function_counter($params, $template) $counter['direction'] = $params['direction']; } - if ($counter['direction'] == "down") + if ($counter['direction'] == "down") { $counter['count'] -= $counter['skip']; - else + } else { $counter['count'] += $counter['skip']; + } return $retval; - } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/function.cycle.php b/lib/classes/Smarty-3.1.21/libs/plugins/function.cycle.php similarity index 79% rename from lib/classes/Smarty-3.1.15/libs/plugins/function.cycle.php rename to lib/classes/Smarty-3.1.21/libs/plugins/function.cycle.php index 9bf26f8c..8dc5cd9d 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/function.cycle.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/function.cycle.php @@ -2,13 +2,12 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {cycle} function plugin - * * Type: function
* Name: cycle
* Date: May 3, 2002
@@ -31,15 +30,17 @@ * {cycle name=row} * * - * @link http://www.smarty.net/manual/en/language.function.cycle.php {cycle} - * (Smarty online manual) - * @author Monte Ohrt - * @author credit to Mark Priatel - * @author credit to Gerard - * @author credit to Jason Sweat + * @link http://www.smarty.net/manual/en/language.function.cycle.php {cycle} + * (Smarty online manual) + * @author Monte Ohrt + * @author credit to Mark Priatel + * @author credit to Gerard + * @author credit to Jason Sweat * @version 1.3 + * * @param array $params parameters * @param Smarty_Internal_Template $template template object + * * @return string|null */ @@ -59,8 +60,9 @@ function smarty_function_cycle($params, $template) return; } } else { - if(isset($cycle_vars[$name]['values']) - && $cycle_vars[$name]['values'] != $params['values'] ) { + if (isset($cycle_vars[$name]['values']) + && $cycle_vars[$name]['values'] != $params['values'] + ) { $cycle_vars[$name]['index'] = 0; } $cycle_vars[$name]['values'] = $params['values']; @@ -75,10 +77,10 @@ function smarty_function_cycle($params, $template) if (is_array($cycle_vars[$name]['values'])) { $cycle_array = $cycle_vars[$name]['values']; } else { - $cycle_array = explode($cycle_vars[$name]['delimiter'],$cycle_vars[$name]['values']); + $cycle_array = explode($cycle_vars[$name]['delimiter'], $cycle_vars[$name]['values']); } - if (!isset($cycle_vars[$name]['index']) || $reset ) { + if (!isset($cycle_vars[$name]['index']) || $reset) { $cycle_vars[$name]['index'] = 0; } @@ -94,10 +96,10 @@ function smarty_function_cycle($params, $template) } if ($advance) { - if ( $cycle_vars[$name]['index'] >= count($cycle_array) -1 ) { + if ($cycle_vars[$name]['index'] >= count($cycle_array) - 1) { $cycle_vars[$name]['index'] = 0; } else { - $cycle_vars[$name]['index']++; + $cycle_vars[$name]['index'] ++; } } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/function.fetch.php b/lib/classes/Smarty-3.1.21/libs/plugins/function.fetch.php similarity index 86% rename from lib/classes/Smarty-3.1.15/libs/plugins/function.fetch.php rename to lib/classes/Smarty-3.1.21/libs/plugins/function.fetch.php index a4eaef37..3506d4a8 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/function.fetch.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/function.fetch.php @@ -2,28 +2,30 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {fetch} plugin - * * Type: function
* Name: fetch
* Purpose: fetch file, web or ftp data and display results * - * @link http://www.smarty.net/manual/en/language.function.fetch.php {fetch} - * (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.function.fetch.php {fetch} + * (Smarty online manual) * @author Monte Ohrt + * * @param array $params parameters * @param Smarty_Internal_Template $template template object + * + * @throws SmartyException * @return string|null if the assign parameter is passed, Smarty assigns the result to a template variable */ function smarty_function_fetch($params, $template) { if (empty($params['file'])) { - trigger_error("[plugin] fetch parameter 'file' cannot be empty",E_USER_NOTICE); + trigger_error("[plugin] fetch parameter 'file' cannot be empty", E_USER_NOTICE); return; } @@ -60,7 +62,7 @@ function smarty_function_fetch($params, $template) $host = $server_name = $uri_parts['host']; $timeout = 30; $accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*"; - $agent = "Smarty Template Engine ". Smarty::SMARTY_VERSION; + $agent = "Smarty Template Engine " . Smarty::SMARTY_VERSION; $referer = ""; $uri = !empty($uri_parts['path']) ? $uri_parts['path'] : '/'; $uri .= !empty($uri_parts['query']) ? '?' . $uri_parts['query'] : ''; @@ -100,8 +102,8 @@ function smarty_function_fetch($params, $template) break; case "header": if (!empty($param_value)) { - if (!preg_match('![\w\d-]+: .+!',$param_value)) { - trigger_error("[plugin] invalid header format '".$param_value."'",E_USER_NOTICE); + if (!preg_match('![\w\d-]+: .+!', $param_value)) { + trigger_error("[plugin] invalid header format '" . $param_value . "'", E_USER_NOTICE); return; } else { @@ -118,7 +120,7 @@ function smarty_function_fetch($params, $template) if (!preg_match('!\D!', $param_value)) { $proxy_port = (int) $param_value; } else { - trigger_error("[plugin] invalid value for attribute '".$param_key."'",E_USER_NOTICE); + trigger_error("[plugin] invalid value for attribute '" . $param_key . "'", E_USER_NOTICE); return; } @@ -137,26 +139,26 @@ function smarty_function_fetch($params, $template) if (!preg_match('!\D!', $param_value)) { $timeout = (int) $param_value; } else { - trigger_error("[plugin] invalid value for attribute '".$param_key."'",E_USER_NOTICE); + trigger_error("[plugin] invalid value for attribute '" . $param_key . "'", E_USER_NOTICE); return; } break; default: - trigger_error("[plugin] unrecognized attribute '".$param_key."'",E_USER_NOTICE); + trigger_error("[plugin] unrecognized attribute '" . $param_key . "'", E_USER_NOTICE); return; } } if (!empty($proxy_host) && !empty($proxy_port)) { $_is_proxy = true; - $fp = fsockopen($proxy_host,$proxy_port,$errno,$errstr,$timeout); + $fp = fsockopen($proxy_host, $proxy_port, $errno, $errstr, $timeout); } else { - $fp = fsockopen($server_name,$port,$errno,$errstr,$timeout); + $fp = fsockopen($server_name, $port, $errno, $errstr, $timeout); } if (!$fp) { - trigger_error("[plugin] unable to fetch: $errstr ($errno)",E_USER_NOTICE); + trigger_error("[plugin] unable to fetch: $errstr ($errno)", E_USER_NOTICE); return; } else { @@ -179,35 +181,35 @@ function smarty_function_fetch($params, $template) } if (isset($extra_headers) && is_array($extra_headers)) { foreach ($extra_headers as $curr_header) { - fputs($fp, $curr_header."\r\n"); + fputs($fp, $curr_header . "\r\n"); } } if (!empty($user) && !empty($pass)) { - fputs($fp, "Authorization: BASIC ".base64_encode("$user:$pass")."\r\n"); + fputs($fp, "Authorization: BASIC " . base64_encode("$user:$pass") . "\r\n"); } fputs($fp, "\r\n"); while (!feof($fp)) { - $content .= fgets($fp,4096); + $content .= fgets($fp, 4096); } fclose($fp); - $csplit = preg_split("!\r\n\r\n!",$content,2); + $csplit = preg_split("!\r\n\r\n!", $content, 2); $content = $csplit[1]; if (!empty($params['assign_headers'])) { - $template->assign($params['assign_headers'],preg_split("!\r\n!",$csplit[0])); + $template->assign($params['assign_headers'], preg_split("!\r\n!", $csplit[0])); } } } else { - trigger_error("[plugin fetch] unable to parse URL, check syntax",E_USER_NOTICE); + trigger_error("[plugin fetch] unable to parse URL, check syntax", E_USER_NOTICE); return; } } else { $content = @file_get_contents($params['file']); if ($content === false) { - throw new SmartyException("{fetch} cannot read resource '" . $params['file'] ."'"); + throw new SmartyException("{fetch} cannot read resource '" . $params['file'] . "'"); } } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_checkboxes.php b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_checkboxes.php similarity index 86% rename from lib/classes/Smarty-3.1.15/libs/plugins/function.html_checkboxes.php rename to lib/classes/Smarty-3.1.21/libs/plugins/function.html_checkboxes.php index ad0e9cd4..d7868036 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_checkboxes.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_checkboxes.php @@ -2,13 +2,12 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_checkboxes} function plugin - * * File: function.html_checkboxes.php
* Type: function
* Name: html_checkboxes
@@ -32,15 +31,17 @@ * - escape (optional) - escape the content (not value), defaults to true * * - * @link http://www.smarty.net/manual/en/language.function.html.checkboxes.php {html_checkboxes} - * (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.function.html.checkboxes.php {html_checkboxes} + * (Smarty online manual) * @author Christopher Kvarme - * @author credits to Monte Ohrt + * @author credits to Monte Ohrt * @version 1.0 - * @param array $params parameters + * + * @param array $params parameters * @param object $template template object + * * @return string - * @uses smarty_function_escape_special_chars() + * @uses smarty_function_escape_special_chars() */ function smarty_function_html_checkboxes($params, $template) { @@ -89,7 +90,7 @@ 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 { @@ -101,7 +102,7 @@ function smarty_function_html_checkboxes($params, $template) 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); @@ -116,7 +117,8 @@ function smarty_function_html_checkboxes($params, $template) case 'assign': break; - case 'strict': break; + case 'strict': + break; case 'disabled': case 'readonly': @@ -131,11 +133,11 @@ function smarty_function_html_checkboxes($params, $template) break; } - // omit break; to fall through! + // omit break; to fall through! default: if (!is_array($_val)) { - $extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"'; + $extra .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_val) . '"'; } else { trigger_error("html_checkboxes: extra attribute '$_key' cannot be an array", E_USER_NOTICE); } @@ -143,17 +145,18 @@ function smarty_function_html_checkboxes($params, $template) } } - if (!isset($options) && !isset($values)) - return ''; /* raise error here? */ + if (!isset($options) && !isset($values)) { + return ''; + } /* raise error here? */ $_html_result = array(); if (isset($options)) { - foreach ($options as $_key=>$_val) { + foreach ($options as $_key => $_val) { $_html_result[] = smarty_function_html_checkboxes_output($name, $_key, $_val, $selected, $extra, $separator, $labels, $label_ids, $escape); } } else { - foreach ($values as $_i=>$_key) { + foreach ($values as $_i => $_key) { $_val = isset($output[$_i]) ? $output[$_i] : ''; $_html_result[] = smarty_function_html_checkboxes_output($name, $_key, $_val, $selected, $extra, $separator, $labels, $label_ids, $escape); } @@ -164,10 +167,9 @@ function smarty_function_html_checkboxes($params, $template) } else { return implode("\n", $_html_result); } - } -function smarty_function_html_checkboxes_output($name, $value, $output, $selected, $extra, $separator, $labels, $label_ids, $escape=true) +function smarty_function_html_checkboxes_output($name, $value, $output, $selected, $extra, $separator, $labels, $label_ids, $escape = true) { $_output = ''; @@ -175,7 +177,7 @@ 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 ''; } @@ -187,7 +189,7 @@ 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 ''; } @@ -229,7 +231,7 @@ function smarty_function_html_checkboxes_output($name, $value, $output, $selecte $_output .= ''; } - $_output .= $separator; + $_output .= $separator; return $_output; } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_image.php b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_image.php similarity index 93% rename from lib/classes/Smarty-3.1.15/libs/plugins/function.html_image.php rename to lib/classes/Smarty-3.1.21/libs/plugins/function.html_image.php index 1674a262..5037e8bd 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_image.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_image.php @@ -2,13 +2,12 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_image} function plugin - * * Type: function
* Name: html_image
* Date: Feb 24, 2003
@@ -24,15 +23,18 @@ * - path_prefix - prefix for path output (optional, default empty) * * - * @link http://www.smarty.net/manual/en/language.function.html.image.php {html_image} - * (Smarty online manual) - * @author Monte Ohrt - * @author credits to Duda + * @link http://www.smarty.net/manual/en/language.function.html.image.php {html_image} + * (Smarty online manual) + * @author Monte Ohrt + * @author credits to Duda * @version 1.0 + * * @param array $params parameters * @param Smarty_Internal_Template $template template object + * + * @throws SmartyException * @return string - * @uses smarty_function_escape_special_chars() + * @uses smarty_function_escape_special_chars() */ function smarty_function_html_image($params, $template) { @@ -112,7 +114,7 @@ function smarty_function_html_image($params, $template) } } else { // local file - if (!$template->smarty->security_policy->isTrustedResourceDir($params['file'])) { + if (!$template->smarty->security_policy->isTrustedResourceDir($_image_path)) { return; } } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_options.php b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_options.php similarity index 82% rename from lib/classes/Smarty-3.1.15/libs/plugins/function.html_options.php rename to lib/classes/Smarty-3.1.21/libs/plugins/function.html_options.php index 5ff98750..7ec3e065 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_options.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_options.php @@ -2,13 +2,12 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_options} function plugin - * * Type: function
* Name: html_options
* Purpose: Prints the list of ' . "\n"; - $idx++; + $idx ++; } else { $_idx = 0; - $_html_result = smarty_function_html_options_optgroup($key, $value, $selected, !empty($id) ? ($id.'-'.$idx) : null, $class, $_idx); - $idx++; + $_html_result = smarty_function_html_options_optgroup($key, $value, $selected, !empty($id) ? ($id . '-' . $idx) : null, $class, $_idx); + $idx ++; } return $_html_result; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_radios.php b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_radios.php similarity index 90% rename from lib/classes/Smarty-3.1.15/libs/plugins/function.html_radios.php rename to lib/classes/Smarty-3.1.21/libs/plugins/function.html_radios.php index 16606ebf..f121d5ea 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_radios.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_radios.php @@ -2,13 +2,12 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_radios} function plugin - * * File: function.html_radios.php
* Type: function
* Name: html_radios
@@ -32,15 +31,17 @@ * {html_radios values=$ids checked=$checked separator='
' output=$names} * * - * @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios} - * (Smarty online manual) - * @author Christopher Kvarme - * @author credits to Monte Ohrt + * @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios} + * (Smarty online manual) + * @author Christopher Kvarme + * @author credits to Monte Ohrt * @version 1.0 + * * @param array $params parameters * @param Smarty_Internal_Template $template template object + * * @return string - * @uses smarty_function_escape_special_chars() + * @uses smarty_function_escape_special_chars() */ function smarty_function_html_radios($params, $template) { @@ -72,7 +73,7 @@ function smarty_function_html_radios($params, $template) if (method_exists($_val, "__toString")) { $selected = smarty_function_escape_special_chars((string) $_val->__toString()); } else { - trigger_error("html_radios: selected attribute is an object of class '". get_class($_val) ."' without __toString() method", E_USER_NOTICE); + trigger_error("html_radios: selected attribute is an object of class '" . get_class($_val) . "' without __toString() method", E_USER_NOTICE); } } else { $selected = (string) $_val; @@ -102,7 +103,8 @@ function smarty_function_html_radios($params, $template) case 'assign': break; - case 'strict': break; + case 'strict': + break; case 'disabled': case 'readonly': @@ -117,7 +119,7 @@ function smarty_function_html_radios($params, $template) break; } - // omit break; to fall through! + // omit break; to fall through! default: if (!is_array($_val)) { @@ -163,7 +165,7 @@ function smarty_function_html_radios_output($name, $value, $output, $selected, $ 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 ''; } @@ -175,7 +177,7 @@ function smarty_function_html_radios_output($name, $value, $output, $selected, $ 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 ''; } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_select_date.php b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_select_date.php similarity index 84% rename from lib/classes/Smarty-3.1.15/libs/plugins/function.html_select_date.php rename to lib/classes/Smarty-3.1.21/libs/plugins/function.html_select_date.php index b1bfee2b..d6625665 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_select_date.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_select_date.php @@ -2,7 +2,7 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsFunction */ @@ -17,11 +17,9 @@ require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php'); /** * Smarty {html_select_date} plugin - * * Type: function
* Name: html_select_date
* Purpose: Prints the dropdowns for date selection. - * * ChangeLog: *
  *            - 1.0 initial release
@@ -41,17 +39,18 @@ require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
  *              added attributes month_names, *_id
  * 
* - * @link http://www.smarty.net/manual/en/language.function.html.select.date.php {html_select_date} - * (Smarty online manual) - * @version 2.0 - * @author Andrei Zmievski - * @author Monte Ohrt - * @author Rodney Rehm - * @param array $params parameters - * @param Smarty_Internal_Template $template template object + * @link http://www.smarty.net/manual/en/language.function.html.select.date.php {html_select_date} + * (Smarty online manual) + * @version 2.0 + * @author Andrei Zmievski + * @author Monte Ohrt + * @author Rodney Rehm + * + * @param array $params parameters + * * @return string */ -function smarty_function_html_select_date($params, $template) +function smarty_function_html_select_date($params) { // generate timestamps used for month names only static $_month_timestamps = null; @@ -59,7 +58,7 @@ function smarty_function_html_select_date($params, $template) if ($_month_timestamps === null) { $_current_year = date('Y'); $_month_timestamps = array(); - for ($i = 1; $i <= 12; $i++) { + for ($i = 1; $i <= 12; $i ++) { $_month_timestamps[$i] = mktime(0, 0, 0, $i, 1, 2000); } } @@ -181,22 +180,20 @@ function smarty_function_html_select_date($params, $template) if (isset($params['time']) && is_array($params['time'])) { if (isset($params['time'][$prefix . 'Year'])) { // $_REQUEST[$field_array] given - foreach (array('Y' => 'Year', 'm' => 'Month', 'd' => 'Day') as $_elementKey => $_elementName) { + foreach (array('Y' => 'Year', 'm' => 'Month', 'd' => 'Day') as $_elementKey => $_elementName) { $_variableName = '_' . strtolower($_elementName); $$_variableName = isset($params['time'][$prefix . $_elementName]) ? $params['time'][$prefix . $_elementName] : date($_elementKey); } - $time = mktime(0, 0, 0, $_month, $_day, $_year); } elseif (isset($params['time'][$field_array][$prefix . 'Year'])) { // $_REQUEST given - foreach (array('Y' => 'Year', 'm' => 'Month', 'd' => 'Day') as $_elementKey => $_elementName) { + foreach (array('Y' => 'Year', 'm' => 'Month', 'd' => 'Day') as $_elementKey => $_elementName) { $_variableName = '_' . strtolower($_elementName); $$_variableName = isset($params['time'][$field_array][$prefix . $_elementName]) ? $params['time'][$field_array][$prefix . $_elementName] : date($_elementKey); } - $time = mktime(0, 0, 0, $_month, $_day, $_year); } else { // no date found, use NOW list($_year, $_month, $_day) = $time = explode('-', date('Y-m-d')); @@ -219,9 +216,9 @@ function smarty_function_html_select_date($params, $template) if ($t === null) { $$key = (int) $_current_year; } elseif ($t[0] == '+') { - $$key = (int) ($_current_year + trim(substr($t, 1))); + $$key = (int) ($_current_year + (int)trim(substr($t, 1))); } elseif ($t[0] == '-') { - $$key = (int) ($_current_year - trim(substr($t, 1))); + $$key = (int) ($_current_year - (int)trim(substr($t, 1))); } else { $$key = (int) $$key; } @@ -236,7 +233,6 @@ function smarty_function_html_select_date($params, $template) // generate year if ($display_years) { - $_html_years = ''; $_extra = ''; $_name = $field_array ? ($field_array . '[' . $prefix . 'Year]') : ($prefix . 'Year'); if ($all_extra) { @@ -252,8 +248,8 @@ function smarty_function_html_select_date($params, $template) $_html_years = ' or if ($display_months) { - $_html_month = ''; $_extra = ''; $_name = $field_array ? ($field_array . '[' . $prefix . 'Month]') : ($prefix . 'Month'); if ($all_extra) { @@ -290,8 +285,8 @@ function smarty_function_html_select_date($params, $template) $_html_months = ' or if ($display_days) { - $_html_day = ''; $_extra = ''; $_name = $field_array ? ($field_array . '[' . $prefix . 'Day]') : ($prefix . 'Day'); if ($all_extra) { @@ -329,8 +323,8 @@ function smarty_function_html_select_date($params, $template) $_html_days = '' . $option_separator; if (isset($hour_empty) || isset($all_empty)) { - $_html_hours .= '' . $option_separator; + $_html_hours .= '' . $option_separator; } $start = $use_24_hours ? 0 : 1; $end = $use_24_hours ? 23 : 12; - for ($i=$start; $i <= $end; $i++) { + for ($i = $start; $i <= $end; $i ++) { $_val = sprintf('%02d', $i); $_text = $hour_format == '%02d' ? $_val : sprintf($hour_format, $i); $_value = $hour_value_format == '%02d' ? $_val : sprintf($hour_value_format, $i); @@ -226,7 +226,7 @@ function smarty_function_html_select_time($params, $template) if (!$use_24_hours) { $_hour12 = $_hour == 0 ? 12 - : ($_hour <= 12 ? $_hour : $_hour -12); + : ($_hour <= 12 ? $_hour : $_hour - 12); } $selected = $_hour !== null ? ($use_24_hours ? $_hour == $_val : $_hour12 == $_val) : null; @@ -253,8 +253,8 @@ function smarty_function_html_select_time($params, $template) $_html_minutes = '' . $option_separator; if (isset($second_empty) || isset($all_empty)) { - $_html_seconds .= '' . $option_separator; + $_html_seconds .= '' . $option_separator; } $selected = $_second !== null ? ($_second - $_second % $second_interval) : null; - for ($i=0; $i <= 59; $i += $second_interval) { + for ($i = 0; $i <= 59; $i += $second_interval) { $_val = sprintf('%02d', $i); $_text = $second_format == '%02d' ? $_val : sprintf($second_format, $i); $_value = $second_value_format == '%02d' ? $_val : sprintf($second_value_format, $i); @@ -333,8 +333,8 @@ function smarty_function_html_select_time($params, $template) $_html_meridian = ''; } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_table.php b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_table.php similarity index 85% rename from lib/classes/Smarty-3.1.15/libs/plugins/function.html_table.php rename to lib/classes/Smarty-3.1.21/libs/plugins/function.html_table.php index 275f6c24..ec7ba48a 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/function.html_table.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/function.html_table.php @@ -2,13 +2,12 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_table} function plugin - * * Type: function
* Name: html_table
* Date: Feb 17, 2003
@@ -37,17 +36,18 @@ * {table loop=$data cols="first,second,third" tr_attr=$colors} * * - * @author Monte Ohrt - * @author credit to Messju Mohr - * @author credit to boots - * @version 1.1 - * @link http://www.smarty.net/manual/en/language.function.html.table.php {html_table} - * (Smarty online manual) - * @param array $params parameters - * @param Smarty_Internal_Template $template template object + * @author Monte Ohrt + * @author credit to Messju Mohr + * @author credit to boots + * @version 1.1 + * @link http://www.smarty.net/manual/en/language.function.html.table.php {html_table} + * (Smarty online manual) + * + * @param array $params parameters + * * @return string */ -function smarty_function_html_table($params, $template) +function smarty_function_html_table($params) { $table_attr = 'border="1"'; $tr_attr = ''; @@ -63,7 +63,7 @@ function smarty_function_html_table($params, $template) $loop = null; if (!isset($params['loop'])) { - trigger_error("html_table: missing 'loop' parameter",E_USER_WARNING); + trigger_error("html_table: missing 'loop' parameter", E_USER_WARNING); return; } @@ -130,7 +130,7 @@ function smarty_function_html_table($params, $template) $cols = ($hdir == 'right') ? $cols : array_reverse($cols); $output .= "\n"; - for ($r = 0; $r < $cols_count; $r++) { + for ($r = 0; $r < $cols_count; $r ++) { $output .= ''; $output .= $cols[$r]; $output .= "\n"; @@ -139,12 +139,12 @@ function smarty_function_html_table($params, $template) } $output .= "\n"; - for ($r = 0; $r < $rows; $r++) { + for ($r = 0; $r < $rows; $r ++) { $output .= "\n"; - $rx = ($vdir == 'down') ? $r * $cols_count : ($rows-1 - $r) * $cols_count; + $rx = ($vdir == 'down') ? $r * $cols_count : ($rows - 1 - $r) * $cols_count; - for ($c = 0; $c < $cols_count; $c++) { - $x = ($hdir == 'right') ? $rx + $c : $rx + $cols_count-1 - $c; + for ($c = 0; $c < $cols_count; $c ++) { + $x = ($hdir == 'right') ? $rx + $c : $rx + $cols_count - 1 - $c; if ($inner != 'cols') { /* shuffle x to loop over rows*/ $x = floor($x / $cols_count) + ($x % $cols_count) * $rows; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/function.mailto.php b/lib/classes/Smarty-3.1.21/libs/plugins/function.mailto.php similarity index 85% rename from lib/classes/Smarty-3.1.15/libs/plugins/function.mailto.php rename to lib/classes/Smarty-3.1.21/libs/plugins/function.mailto.php index ac94ae04..520fb7aa 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/function.mailto.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/function.mailto.php @@ -2,13 +2,12 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {mailto} function plugin - * * Type: function
* Name: mailto
* Date: May 21, 2002 @@ -39,22 +38,23 @@ * {mailto address="me@domain.com" extra='class="mailto"'} * * - * @link http://www.smarty.net/manual/en/language.function.mailto.php {mailto} - * (Smarty online manual) - * @version 1.2 - * @author Monte Ohrt - * @author credits to Jason Sweat (added cc, bcc and subject functionality) - * @param array $params parameters - * @param Smarty_Internal_Template $template template object + * @link http://www.smarty.net/manual/en/language.function.mailto.php {mailto} + * (Smarty online manual) + * @version 1.2 + * @author Monte Ohrt + * @author credits to Jason Sweat (added cc, bcc and subject functionality) + * + * @param array $params parameters + * * @return string */ -function smarty_function_mailto($params, $template) +function smarty_function_mailto($params) { static $_allowed_encoding = array('javascript' => true, 'javascript_charcode' => true, 'hex' => true, 'none' => true); $extra = ''; if (empty($params['address'])) { - trigger_error("mailto: missing 'address' parameter",E_USER_WARNING); + trigger_error("mailto: missing 'address' parameter", E_USER_WARNING); return; } else { @@ -72,8 +72,9 @@ function smarty_function_mailto($params, $template) case 'cc': case 'bcc': case 'followupto': - if (!empty($value)) - $mail_parms[] = $var . '=' . str_replace($search, $replace, rawurlencode($value)); + if (!empty($value)) { + $mail_parms[] = $var . '=' . str_replace($search, $replace, rawurlencode($value)); + } break; case 'subject': @@ -104,7 +105,7 @@ function smarty_function_mailto($params, $template) $string = 'document.write(\'' . $text . '\');'; $js_encode = ''; - for ($x = 0, $_length = strlen($string); $x < $_length; $x++) { + for ($x = 0, $_length = strlen($string); $x < $_length; $x ++) { $js_encode .= '%' . bin2hex($string[$x]); } @@ -112,7 +113,7 @@ function smarty_function_mailto($params, $template) } elseif ($encode == 'javascript_charcode') { $string = '' . $text . ''; - for ($x = 0, $y = strlen($string); $x < $y; $x++) { + for ($x = 0, $y = strlen($string); $x < $y; $x ++) { $ord[] = ord($string[$x]); } @@ -127,12 +128,12 @@ function smarty_function_mailto($params, $template) } elseif ($encode == 'hex') { preg_match('!^(.*)(\?.*)$!', $address, $match); if (!empty($match[2])) { - trigger_error("mailto: hex encoding does not work with extra attributes. Try javascript.",E_USER_WARNING); + trigger_error("mailto: hex encoding does not work with extra attributes. Try javascript.", E_USER_WARNING); return; } $address_encode = ''; - for ($x = 0, $_length = strlen($address); $x < $_length; $x++) { + for ($x = 0, $_length = strlen($address); $x < $_length; $x ++) { if (preg_match('!\w!' . Smarty::$_UTF8_MODIFIER, $address[$x])) { $address_encode .= '%' . bin2hex($address[$x]); } else { @@ -140,7 +141,7 @@ function smarty_function_mailto($params, $template) } } $text_encode = ''; - for ($x = 0, $_length = strlen($text); $x < $_length; $x++) { + for ($x = 0, $_length = strlen($text); $x < $_length; $x ++) { $text_encode .= '&#x' . bin2hex($text[$x]) . ';'; } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/function.math.php b/lib/classes/Smarty-3.1.21/libs/plugins/function.math.php similarity index 63% rename from lib/classes/Smarty-3.1.15/libs/plugins/function.math.php rename to lib/classes/Smarty-3.1.21/libs/plugins/function.math.php index 7bcc8acf..aba76e82 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/function.math.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/function.math.php @@ -1,36 +1,37 @@ * Name: math
* Purpose: handle math computations in template * - * @link http://www.smarty.net/manual/en/language.function.math.php {math} - * (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.function.math.php {math} + * (Smarty online manual) * @author Monte Ohrt + * * @param array $params parameters * @param Smarty_Internal_Template $template template object + * * @return string|null */ function smarty_function_math($params, $template) { static $_allowed_funcs = array( - 'int' => true, 'abs' => true, 'ceil' => true, 'cos' => true, 'exp' => true, 'floor' => true, - 'log' => true, 'log10' => true, 'max' => true, 'min' => true, 'pi' => true, 'pow' => true, - 'rand' => true, 'round' => true, 'sin' => true, 'sqrt' => true, 'srand' => true ,'tan' => true + 'int' => true, 'abs' => true, 'ceil' => true, 'cos' => true, 'exp' => true, 'floor' => true, + 'log' => true, 'log10' => true, 'max' => true, 'min' => true, 'pi' => true, 'pow' => true, + 'rand' => true, 'round' => true, 'sin' => true, 'sqrt' => true, 'srand' => true, 'tan' => true ); // be sure equation parameter is present if (empty($params['equation'])) { - trigger_error("math: missing equation parameter",E_USER_WARNING); + trigger_error("math: missing equation parameter", E_USER_WARNING); return; } @@ -38,18 +39,18 @@ function smarty_function_math($params, $template) $equation = $params['equation']; // make sure parenthesis are balanced - if (substr_count($equation,"(") != substr_count($equation,")")) { - trigger_error("math: unbalanced parenthesis",E_USER_WARNING); + if (substr_count($equation, "(") != substr_count($equation, ")")) { + trigger_error("math: unbalanced parenthesis", E_USER_WARNING); return; } // match all vars in equation, make sure all are passed - preg_match_all("!(?:0x[a-fA-F0-9]+)|([a-zA-Z][a-zA-Z0-9_]*)!",$equation, $match); + preg_match_all("!(?:0x[a-fA-F0-9]+)|([a-zA-Z][a-zA-Z0-9_]*)!", $equation, $match); foreach ($match[1] as $curr_var) { if ($curr_var && !isset($params[$curr_var]) && !isset($_allowed_funcs[$curr_var])) { - trigger_error("math: function call $curr_var not allowed",E_USER_WARNING); + trigger_error("math: function call $curr_var not allowed", E_USER_WARNING); return; } @@ -58,13 +59,13 @@ function smarty_function_math($params, $template) foreach ($params as $key => $val) { if ($key != "equation" && $key != "format" && $key != "assign") { // make sure value is not empty - if (strlen($val)==0) { - trigger_error("math: parameter $key is empty",E_USER_WARNING); + if (strlen($val) == 0) { + trigger_error("math: parameter $key is empty", E_USER_WARNING); return; } if (!is_numeric($val)) { - trigger_error("math: parameter $key: is not numeric",E_USER_WARNING); + trigger_error("math: parameter $key: is not numeric", E_USER_WARNING); return; } @@ -72,19 +73,19 @@ function smarty_function_math($params, $template) } } $smarty_math_result = null; - eval("\$smarty_math_result = ".$equation.";"); + eval("\$smarty_math_result = " . $equation . ";"); if (empty($params['format'])) { if (empty($params['assign'])) { return $smarty_math_result; } else { - $template->assign($params['assign'],$smarty_math_result); + $template->assign($params['assign'], $smarty_math_result); } } else { if (empty($params['assign'])) { - printf($params['format'],$smarty_math_result); + printf($params['format'], $smarty_math_result); } else { - $template->assign($params['assign'],sprintf($params['format'],$smarty_math_result)); + $template->assign($params['assign'], sprintf($params['format'], $smarty_math_result)); } } } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.capitalize.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.capitalize.php similarity index 62% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifier.capitalize.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifier.capitalize.php index b3036b86..a8ad7637 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.capitalize.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.capitalize.php @@ -2,22 +2,21 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifier */ /** * Smarty capitalize modifier plugin - * * Type: modifier
* Name: capitalize
* Purpose: capitalize words in the string - * * {@internal {$string|capitalize:true:true} is the fastest option for MBString enabled systems }} * * @param string $string string to capitalize * @param boolean $uc_digits also capitalize "x123" to "X123" * @param boolean $lc_rest capitalize first letters, lowercase all following letters "aAa" to "Aaa" + * * @return string capitalized string * @author Monte Ohrt * @author Rodney Rehm @@ -27,10 +26,10 @@ function smarty_modifier_capitalize($string, $uc_digits = false, $lc_rest = fals if (Smarty::$_MBSTRING) { if ($lc_rest) { // uppercase (including hyphenated words) - $upper_string = mb_convert_case( $string, MB_CASE_TITLE, Smarty::$_CHARSET ); + $upper_string = mb_convert_case($string, MB_CASE_TITLE, Smarty::$_CHARSET); } else { // uppercase word breaks - $upper_string = preg_replace_callback("!(^|[^\p{L}'])([\p{Ll}])!S" . Smarty::$_UTF8_MODIFIER, create_function ('$matches', 'return stripslashes($matches[1]).mb_convert_case(stripslashes($matches[2]),MB_CASE_UPPER, "' . addslashes(Smarty::$_CHARSET) . '");'), $string); + $upper_string = preg_replace_callback("!(^|[^\p{L}'])([\p{Ll}])!S" . Smarty::$_UTF8_MODIFIER, 'smarty_mod_cap_mbconvert_cb', $string); } // check uc_digits case if (!$uc_digits) { @@ -40,8 +39,7 @@ function smarty_modifier_capitalize($string, $uc_digits = false, $lc_rest = fals } } } - $upper_string = preg_replace_callback("!((^|\s)['\"])(\w)!" . Smarty::$_UTF8_MODIFIER, create_function ('$matches', 'return stripslashes($matches[1]).mb_convert_case(stripslashes($matches[3]),MB_CASE_UPPER, "' . addslashes(Smarty::$_CHARSET) . '");'), $upper_string); - + $upper_string = preg_replace_callback("!((^|\s)['\"])(\w)!" . Smarty::$_UTF8_MODIFIER, 'smarty_mod_cap_mbconvert2_cb', $upper_string); return $upper_string; } @@ -50,7 +48,7 @@ function smarty_modifier_capitalize($string, $uc_digits = false, $lc_rest = fals $string = strtolower($string); } // uppercase (including hyphenated words) - $upper_string = preg_replace_callback("!(^|[^\p{L}'])([\p{Ll}])!S" . Smarty::$_UTF8_MODIFIER, create_function ('$matches', 'return stripslashes($matches[1]).ucfirst(stripslashes($matches[2]));'), $string); + $upper_string = preg_replace_callback("!(^|[^\p{L}'])([\p{Ll}])!S" . Smarty::$_UTF8_MODIFIER, 'smarty_mod_cap_ucfirst_cb', $string); // check uc_digits case if (!$uc_digits) { if (preg_match_all("!\b([\p{L}]*[\p{N}]+[\p{L}]*)\b!" . Smarty::$_UTF8_MODIFIER, $string, $matches, PREG_OFFSET_CAPTURE)) { @@ -59,7 +57,34 @@ function smarty_modifier_capitalize($string, $uc_digits = false, $lc_rest = fals } } } - $upper_string = preg_replace_callback("!((^|\s)['\"])(\w)!" . Smarty::$_UTF8_MODIFIER, create_function ('$matches', 'return stripslashes($matches[1]).ucfirst(stripslashes($matches[3]));'), $upper_string); - + $upper_string = preg_replace_callback("!((^|\s)['\"])(\w)!" . Smarty::$_UTF8_MODIFIER, 'smarty_mod_cap_ucfirst2_cb', $upper_string); return $upper_string; } + +/* + * + * Bug: create_function() use exhausts memory when used in long loops + * Fix: use declared functions for callbacks instead of using create_function() + * Note: This can be fixed using anonymous functions instead, but that requires PHP >= 5.3 + * + * @author Kyle Renfrow + */ +function smarty_mod_cap_mbconvert_cb($matches) +{ + return stripslashes($matches[1]) . mb_convert_case(stripslashes($matches[2]), MB_CASE_UPPER, Smarty::$_CHARSET); +} + +function smarty_mod_cap_mbconvert2_cb($matches) +{ + return stripslashes($matches[1]) . mb_convert_case(stripslashes($matches[3]), MB_CASE_UPPER, Smarty::$_CHARSET); +} + +function smarty_mod_cap_ucfirst_cb($matches) +{ + return stripslashes($matches[1]) . ucfirst(stripslashes($matches[2])); +} + +function smarty_mod_cap_ucfirst2_cb($matches) +{ + return stripslashes($matches[1]) . ucfirst(stripslashes($matches[3])); +} diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.date_format.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.date_format.php similarity index 80% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifier.date_format.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifier.date_format.php index e1a9d33e..5ad7540b 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.date_format.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.date_format.php @@ -2,13 +2,12 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifier */ /** * Smarty date_format modifier plugin - * * Type: modifier
* Name: date_format
* Purpose: format datestamps via strftime
@@ -17,23 +16,25 @@ * - format: strftime format for output * - default_date: default date if $string is empty * - * @link http://www.smarty.net/manual/en/language.modifier.date.format.php date_format (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.modifier.date.format.php date_format (Smarty online manual) * @author Monte Ohrt + * * @param string $string input date string * @param string $format strftime format for output * @param string $default_date default date if $string is empty * @param string $formatter either 'strftime' or 'auto' + * * @return string |void - * @uses smarty_make_timestamp() + * @uses smarty_make_timestamp() */ -function smarty_modifier_date_format($string, $format=null, $default_date='', $formatter='auto') +function smarty_modifier_date_format($string, $format = null, $default_date = '', $formatter = 'auto') { if ($format === null) { $format = Smarty::$_DATE_FORMAT; } /** - * Include the {@link shared.make_timestamp.php} plugin - */ + * Include the {@link shared.make_timestamp.php} plugin + */ require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php'); if ($string != '' && $string != '0000-00-00' && $string != '0000-00-00 00:00:00') { $timestamp = smarty_make_timestamp($string); @@ -42,7 +43,7 @@ function smarty_modifier_date_format($string, $format=null, $default_date='', $f } else { return; } - if ($formatter=='strftime'||($formatter=='auto'&&strpos($format,'%')!==false)) { + if ($formatter == 'strftime' || ($formatter == 'auto' && strpos($format, '%') !== false)) { if (DS == '\\') { $_win_from = array('%D', '%h', '%n', '%r', '%R', '%t', '%T'); $_win_to = array('%m/%d/%y', '%b', "\n", '%I:%M:%S %p', '%H:%M', "\t", '%H:%M:%S'); diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.debug_print_var.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.debug_print_var.php similarity index 77% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifier.debug_print_var.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifier.debug_print_var.php index ea63c8a7..66363d25 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.debug_print_var.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.debug_print_var.php @@ -2,38 +2,39 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage Debug */ /** * Smarty debug_print_var modifier plugin - * * Type: modifier
* Name: debug_print_var
* Purpose: formats variable contents for display in the console * * @author Monte Ohrt - * @param array|object $var variable to be formatted - * @param integer $depth maximum recursion depth if $var is an array - * @param integer $length maximum string length if $var is a string + * + * @param array|object $var variable to be formatted + * @param integer $depth maximum recursion depth if $var is an array + * @param integer $length maximum string length if $var is a string + * * @return string */ -function smarty_modifier_debug_print_var ($var, $depth = 0, $length = 40) +function smarty_modifier_debug_print_var($var, $depth = 0, $length = 40) { $_replace = array("\n" => '\n', - "\r" => '\r', - "\t" => '\t' - ); + "\r" => '\r', + "\t" => '\t' + ); switch (gettype($var)) { case 'array' : $results = 'Array (' . count($var) . ')'; foreach ($var as $curr_key => $curr_val) { $results .= '
' . str_repeat(' ', $depth * 2) - . '' . strtr($curr_key, $_replace) . ' => ' - . smarty_modifier_debug_print_var($curr_val, ++$depth, $length); - $depth--; + . '' . strtr($curr_key, $_replace) . ' => ' + . smarty_modifier_debug_print_var($curr_val, ++$depth, $length); + $depth --; } break; @@ -42,9 +43,9 @@ function smarty_modifier_debug_print_var ($var, $depth = 0, $length = 40) $results = '' . get_class($var) . ' Object (' . count($object_vars) . ')'; foreach ($object_vars as $curr_key => $curr_val) { $results .= '
' . str_repeat(' ', $depth * 2) - . ' ->' . strtr($curr_key, $_replace) . ' = ' - . smarty_modifier_debug_print_var($curr_val, ++$depth, $length); - $depth--; + . ' ->' . strtr($curr_key, $_replace) . ' = ' + . smarty_modifier_debug_print_var($curr_val, ++$depth, $length); + $depth --; } break; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.escape.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.escape.php similarity index 95% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifier.escape.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifier.escape.php index bc8ad42a..9fdb0702 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.escape.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.escape.php @@ -2,23 +2,24 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifier */ /** * Smarty escape modifier plugin - * * Type: modifier
* Name: escape
* Purpose: escape string for output * - * @link http://www.smarty.net/manual/en/language.modifier.count.characters.php count_characters (Smarty online manual) + * @link http://www.smarty.net/docs/en/language.modifier.escape * @author Monte Ohrt + * * @param string $string input string * @param string $esc_type escape type * @param string $char_set character set, used for htmlspecialchars() or htmlentities() * @param boolean $double_encode encode already encoded entitites again, used for htmlspecialchars() or htmlentities() + * * @return string escaped input string */ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = null, $double_encode = true) @@ -105,7 +106,7 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = null, $ // Note that the UTF-8 encoded character ä will be represented as %c3%a4 $return = ''; $_length = strlen($string); - for ($x = 0; $x < $_length; $x++) { + for ($x = 0; $x < $_length; $x ++) { $return .= '%' . bin2hex($string[$x]); } @@ -124,7 +125,7 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = null, $ } // no MBString fallback $_length = strlen($string); - for ($x = 0; $x < $_length; $x++) { + for ($x = 0; $x < $_length; $x ++) { $return .= '&#x' . bin2hex($string[$x]) . ';'; } @@ -143,7 +144,7 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = null, $ } // no MBString fallback $_length = strlen($string); - for ($x = 0; $x < $_length; $x++) { + for ($x = 0; $x < $_length; $x ++) { $return .= '&#' . ord($string[$x]) . ';'; } @@ -179,7 +180,7 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = null, $ } $_length = strlen($string); - for ($_i = 0; $_i < $_length; $_i++) { + for ($_i = 0; $_i < $_length; $_i ++) { $_ord = ord(substr($string, $_i, 1)); // non-standard char, escape it if ($_ord >= 126) { diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.regex_replace.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.regex_replace.php similarity index 66% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifier.regex_replace.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifier.regex_replace.php index a44afb5f..abb1ff54 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.regex_replace.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.regex_replace.php @@ -2,23 +2,24 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifier */ /** * Smarty regex_replace modifier plugin - * * Type: modifier
* Name: regex_replace
* Purpose: regular expression search/replace * - * @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php + * @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php * regex_replace (Smarty online manual) - * @author Monte Ohrt - * @param string $string input string - * @param string|array $search regular expression(s) to search for - * @param string|array $replace string(s) that should be replaced + * @author Monte Ohrt + * + * @param string $string input string + * @param string|array $search regular expression(s) to search for + * @param string|array $replace string(s) that should be replaced + * * @return string */ function smarty_modifier_regex_replace($string, $search, $replace) @@ -36,6 +37,7 @@ function smarty_modifier_regex_replace($string, $search, $replace) /** * @param string $search string(s) that should be replaced + * * @return string * @ignore */ @@ -43,12 +45,12 @@ function _smarty_regex_replace_check($search) { // null-byte injection detection // anything behind the first null-byte is ignored - if (($pos = strpos($search,"\0")) !== false) { - $search = substr($search,0,$pos); + if (($pos = strpos($search, "\0")) !== false) { + $search = substr($search, 0, $pos); } // remove eval-modifier from $search if (preg_match('!([a-zA-Z\s]+)$!s', $search, $match) && (strpos($match[1], 'e') !== false)) { - $search = substr($search, 0, -strlen($match[1])) . preg_replace('![e\s]+!', '', $match[1]); + $search = substr($search, 0, - strlen($match[1])) . preg_replace('![e\s]+!', '', $match[1]); } return $search; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.replace.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.replace.php similarity index 84% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifier.replace.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifier.replace.php index cf4f6459..aa5e8570 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.replace.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.replace.php @@ -1,23 +1,25 @@ * Name: replace
* Purpose: simple search/replace * - * @link http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual) + * @link http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual) * @author Monte Ohrt * @author Uwe Tews + * * @param string $string input string * @param string $search text to search for * @param string $replace replacement text + * * @return string */ function smarty_modifier_replace($string, $search, $replace) diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.spacify.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.spacify.php similarity index 76% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifier.spacify.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifier.spacify.php index 1a5f425a..e5c41ad8 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.spacify.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.spacify.php @@ -1,25 +1,27 @@ * Name: spacify
* Purpose: add spaces between characters in a string * - * @link http://smarty.php.net/manual/en/language.modifier.spacify.php spacify (Smarty online manual) + * @link http://smarty.php.net/manual/en/language.modifier.spacify.php spacify (Smarty online manual) * @author Monte Ohrt + * * @param string $string input string * @param string $spacify_char string to insert between characters. + * * @return string */ function smarty_modifier_spacify($string, $spacify_char = ' ') { // well… what about charsets besides latin and UTF-8? - return implode($spacify_char, preg_split('//' . Smarty::$_UTF8_MODIFIER, $string, -1, PREG_SPLIT_NO_EMPTY)); + return implode($spacify_char, preg_split('//' . Smarty::$_UTF8_MODIFIER, $string, - 1, PREG_SPLIT_NO_EMPTY)); } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.truncate.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.truncate.php similarity index 92% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifier.truncate.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifier.truncate.php index e2810ed7..fbe62e82 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifier.truncate.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifier.truncate.php @@ -2,32 +2,34 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifier */ /** * Smarty truncate modifier plugin - * * Type: modifier
* Name: truncate
* Purpose: Truncate a string to a certain length if necessary, * optionally splitting in the middle of a word, and * appending the $etc string or inserting $etc into the middle. * - * @link http://smarty.php.net/manual/en/language.modifier.truncate.php truncate (Smarty online manual) + * @link http://smarty.php.net/manual/en/language.modifier.truncate.php truncate (Smarty online manual) * @author Monte Ohrt + * * @param string $string input string * @param integer $length length of truncated text * @param string $etc end string * @param boolean $break_words truncate at word boundary * @param boolean $middle truncate in the middle of text + * * @return string truncated string */ function smarty_modifier_truncate($string, $length = 80, $etc = '...', $break_words = false, $middle = false) { - if ($length == 0) + if ($length == 0) { return ''; + } if (Smarty::$_MBSTRING) { if (mb_strlen($string, Smarty::$_CHARSET) > $length) { diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.cat.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.cat.php similarity index 63% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.cat.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.cat.php index 5dff7474..db9d81fb 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.cat.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.cat.php @@ -2,13 +2,12 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty cat modifier plugin - * * Type: modifier
* Name: cat
* Date: Feb 24, 2003
@@ -16,13 +15,15 @@ * Input: string to catenate
* Example: {$var|cat:"foo"} * - * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat - * (Smarty online manual) + * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat + * (Smarty online manual) * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_cat($params, $compiler) +function smarty_modifiercompiler_cat($params) { - return '('.implode(').(', $params).')'; + return '(' . implode(').(', $params) . ')'; } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_characters.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_characters.php similarity index 77% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_characters.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_characters.php index 778d0385..f8463d80 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_characters.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_characters.php @@ -2,23 +2,24 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_characters modifier plugin - * * Type: modifier
* Name: count_characteres
* Purpose: count the number of characters in a text * - * @link http://www.smarty.net/manual/en/language.modifier.count.characters.php count_characters (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.modifier.count.characters.php count_characters (Smarty online manual) * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_count_characters($params, $compiler) +function smarty_modifiercompiler_count_characters($params) { if (!isset($params[1]) || $params[1] != 'true') { return 'preg_match_all(\'/[^\s]/' . Smarty::$_UTF8_MODIFIER . '\',' . $params[0] . ', $tmp)'; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_paragraphs.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_paragraphs.php similarity index 71% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_paragraphs.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_paragraphs.php index 581d291c..34f0bbb8 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_paragraphs.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_paragraphs.php @@ -2,24 +2,25 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_paragraphs modifier plugin - * * Type: modifier
* Name: count_paragraphs
* Purpose: count the number of paragraphs in a text * - * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php + * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php * count_paragraphs (Smarty online manual) - * @author Uwe Tews + * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_count_paragraphs($params, $compiler) +function smarty_modifiercompiler_count_paragraphs($params) { // count \r or \n characters return '(preg_match_all(\'#[\r\n]+#\', ' . $params[0] . ', $tmp)+1)'; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_sentences.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_sentences.php similarity index 74% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_sentences.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_sentences.php index 5cb0f2ae..f1ec5600 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_sentences.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_sentences.php @@ -2,24 +2,25 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_sentences modifier plugin - * * Type: modifier
* Name: count_sentences * Purpose: count the number of sentences in a text * - * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php + * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php * count_sentences (Smarty online manual) - * @author Uwe Tews + * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_count_sentences($params, $compiler) +function smarty_modifiercompiler_count_sentences($params) { // find periods, question marks, exclamation marks with a word before but not after. return 'preg_match_all("#\w[\.\?\!](\W|$)#S' . Smarty::$_UTF8_MODIFIER . '", ' . $params[0] . ', $tmp)'; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_words.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_words.php similarity index 79% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_words.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_words.php index 9146900d..8b4330f1 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.count_words.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.count_words.php @@ -2,23 +2,24 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_words modifier plugin - * * Type: modifier
* Name: count_words
* Purpose: count the number of words in a text * - * @link http://www.smarty.net/manual/en/language.modifier.count.words.php count_words (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.modifier.count.words.php count_words (Smarty online manual) * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code -*/ -function smarty_modifiercompiler_count_words($params, $compiler) + */ +function smarty_modifiercompiler_count_words($params) { if (Smarty::$_MBSTRING) { // return 'preg_match_all(\'#[\w\pL]+#' . Smarty::$_UTF8_MODIFIER . '\', ' . $params[0] . ', $tmp)'; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.default.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.default.php similarity index 76% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.default.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.default.php index 83b3f365..fe777623 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.default.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.default.php @@ -2,23 +2,24 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty default modifier plugin - * * Type: modifier
* Name: default
* Purpose: designate default value for empty variables * - * @link http://www.smarty.net/manual/en/language.modifier.default.php default (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.modifier.default.php default (Smarty online manual) * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_default ($params, $compiler) +function smarty_modifiercompiler_default($params) { $output = $params[0]; if (!isset($params[1])) { diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.escape.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.escape.php similarity index 72% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.escape.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.escape.php index 6c6a356a..7e848aae 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.escape.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.escape.php @@ -2,25 +2,27 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * @ignore */ -require_once( SMARTY_PLUGINS_DIR .'shared.literal_compiler_param.php' ); +require_once(SMARTY_PLUGINS_DIR . 'shared.literal_compiler_param.php'); /** * Smarty escape modifier plugin - * * Type: modifier
* Name: escape
* Purpose: escape string for output * - * @link http://www.smarty.net/docsv2/en/language.modifier.escape count_characters (Smarty online manual) + * @link http://www.smarty.net/docsv2/en/language.modifier.escape count_characters (Smarty online manual) * @author Rodney Rehm + * * @param array $params parameters + * @param $compiler + * * @return string with compiled code */ function smarty_modifiercompiler_escape($params, $compiler) @@ -43,13 +45,13 @@ function smarty_modifiercompiler_escape($params, $compiler) case 'html': if ($_double_encode) { return 'htmlspecialchars(' - . $params[0] .', ENT_QUOTES, ' - . var_export($char_set, true) . ', ' - . var_export($double_encode, true) . ')'; + . $params[0] . ', ENT_QUOTES, ' + . var_export($char_set, true) . ', ' + . var_export($double_encode, true) . ')'; } elseif ($double_encode) { return 'htmlspecialchars(' - . $params[0] .', ENT_QUOTES, ' - . var_export($char_set, true) . ')'; + . $params[0] . ', ENT_QUOTES, ' + . var_export($char_set, true) . ')'; } else { // fall back to modifier.escape.php } @@ -59,18 +61,18 @@ function smarty_modifiercompiler_escape($params, $compiler) if ($_double_encode) { // php >=5.2.3 - go native return 'mb_convert_encoding(htmlspecialchars(' - . $params[0] .', ENT_QUOTES, ' - . var_export($char_set, true) . ', ' - . var_export($double_encode, true) - . '), "HTML-ENTITIES", ' - . var_export($char_set, true) . ')'; + . $params[0] . ', ENT_QUOTES, ' + . var_export($char_set, true) . ', ' + . var_export($double_encode, true) + . '), "HTML-ENTITIES", ' + . var_export($char_set, true) . ')'; } elseif ($double_encode) { // php <5.2.3 - only handle double encoding return 'mb_convert_encoding(htmlspecialchars(' - . $params[0] .', ENT_QUOTES, ' - . var_export($char_set, true) - . '), "HTML-ENTITIES", ' - . var_export($char_set, true) . ')'; + . $params[0] . ', ENT_QUOTES, ' + . var_export($char_set, true) + . '), "HTML-ENTITIES", ' + . var_export($char_set, true) . ')'; } else { // fall back to modifier.escape.php } @@ -80,14 +82,14 @@ function smarty_modifiercompiler_escape($params, $compiler) if ($_double_encode) { // php >=5.2.3 - go native return 'htmlentities(' - . $params[0] .', ENT_QUOTES, ' - . var_export($char_set, true) . ', ' - . var_export($double_encode, true) . ')'; + . $params[0] . ', ENT_QUOTES, ' + . var_export($char_set, true) . ', ' + . var_export($double_encode, true) . ')'; } elseif ($double_encode) { // php <5.2.3 - only handle double encoding return 'htmlentities(' - . $params[0] .', ENT_QUOTES, ' - . var_export($char_set, true) . ')'; + . $params[0] . ', ENT_QUOTES, ' + . var_export($char_set, true) . ')'; } else { // fall back to modifier.escape.php } @@ -105,20 +107,20 @@ function smarty_modifiercompiler_escape($params, $compiler) case 'javascript': // escape quotes and backslashes, newlines, etc. return 'strtr(' . $params[0] . ', array("\\\\" => "\\\\\\\\", "\'" => "\\\\\'", "\"" => "\\\\\"", "\\r" => "\\\\r", "\\n" => "\\\n", " "<\/" ))'; - } - } catch (SmartyException $e) { + } + catch (SmartyException $e) { // pass through to regular plugin fallback } // could not optimize |escape call, so fallback to regular plugin if ($compiler->template->caching && ($compiler->tag_nocache | $compiler->nocache)) { - $compiler->template->required_plugins['nocache']['escape']['modifier']['file'] = SMARTY_PLUGINS_DIR .'modifier.escape.php'; + $compiler->template->required_plugins['nocache']['escape']['modifier']['file'] = SMARTY_PLUGINS_DIR . 'modifier.escape.php'; $compiler->template->required_plugins['nocache']['escape']['modifier']['function'] = 'smarty_modifier_escape'; } else { - $compiler->template->required_plugins['compiled']['escape']['modifier']['file'] = SMARTY_PLUGINS_DIR .'modifier.escape.php'; + $compiler->template->required_plugins['compiled']['escape']['modifier']['file'] = SMARTY_PLUGINS_DIR . 'modifier.escape.php'; $compiler->template->required_plugins['compiled']['escape']['modifier']['function'] = 'smarty_modifier_escape'; } - return 'smarty_modifier_escape(' . join( ', ', $params ) . ')'; + return 'smarty_modifier_escape(' . join(', ', $params) . ')'; } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.from_charset.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.from_charset.php similarity index 88% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.from_charset.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.from_charset.php index 1dfee367..dab43e9c 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.from_charset.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.from_charset.php @@ -2,22 +2,23 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty from_charset modifier plugin - * * Type: modifier
* Name: from_charset
* Purpose: convert character encoding from $charset to internal encoding * * @author Rodney Rehm + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_from_charset($params, $compiler) +function smarty_modifiercompiler_from_charset($params) { if (!Smarty::$_MBSTRING) { // FIXME: (rodneyrehm) shouldn't this throw an error? diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.indent.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.indent.php similarity index 74% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.indent.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.indent.php index 85bc6105..e3ca2082 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.indent.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.indent.php @@ -1,24 +1,26 @@ * Name: indent
* Purpose: indent lines of text * - * @link http://www.smarty.net/manual/en/language.modifier.indent.php indent (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.modifier.indent.php indent (Smarty online manual) * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_indent($params, $compiler) +function smarty_modifiercompiler_indent($params) { if (!isset($params[1])) { $params[1] = 4; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.lower.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.lower.php similarity index 71% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.lower.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.lower.php index b1a23186..1d255f37 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.lower.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.lower.php @@ -1,28 +1,30 @@ * Name: lower
* Purpose: convert string to lowercase * - * @link http://www.smarty.net/manual/en/language.modifier.lower.php lower (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.modifier.lower.php lower (Smarty online manual) * @author Monte Ohrt * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_lower($params, $compiler) +function smarty_modifiercompiler_lower($params) { if (Smarty::$_MBSTRING) { - return 'mb_strtolower(' . $params[0] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')' ; + return 'mb_strtolower(' . $params[0] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')'; } // no MBString fallback return 'strtolower(' . $params[0] . ')'; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.noprint.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.noprint.php similarity index 70% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.noprint.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.noprint.php index 71f6bfae..4906908b 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.noprint.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.noprint.php @@ -2,22 +2,20 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty noprint modifier plugin - * * Type: modifier
* Name: noprint
* Purpose: return an empty string * * @author Uwe Tews - * @param array $params parameters * @return string with compiled code */ -function smarty_modifiercompiler_noprint($params, $compiler) +function smarty_modifiercompiler_noprint() { return "''"; } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.string_format.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.string_format.php similarity index 65% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.string_format.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.string_format.php index defbf6e2..71cdf281 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.string_format.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.string_format.php @@ -2,23 +2,24 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty string_format modifier plugin - * * Type: modifier
* Name: string_format
* Purpose: format strings via sprintf * - * @link http://www.smarty.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual) * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_string_format($params, $compiler) +function smarty_modifiercompiler_string_format($params) { return 'sprintf(' . $params[1] . ',' . $params[0] . ')'; } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.strip.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.strip.php similarity index 78% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.strip.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.strip.php index 6c732e81..fcd6cbae 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.strip.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.strip.php @@ -2,13 +2,12 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty strip modifier plugin - * * Type: modifier
* Name: strip
* Purpose: Replace all repeated spaces, newlines, tabs @@ -16,13 +15,15 @@ * Example: {$var|strip} {$var|strip:" "}
* Date: September 25th, 2002 * - * @link http://www.smarty.net/manual/en/language.modifier.strip.php strip (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.modifier.strip.php strip (Smarty online manual) * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_strip($params, $compiler) +function smarty_modifiercompiler_strip($params) { if (!isset($params[1])) { $params[1] = "' '"; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.strip_tags.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.strip_tags.php similarity index 52% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.strip_tags.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.strip_tags.php index bc5eab26..3e6e1304 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.strip_tags.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.strip_tags.php @@ -2,26 +2,27 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty strip_tags modifier plugin - * * Type: modifier
* Name: strip_tags
* Purpose: strip html tags from text * - * @link http://www.smarty.net/manual/en/language.modifier.strip.tags.php strip_tags (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.modifier.strip.tags.php strip_tags (Smarty online manual) * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_strip_tags($params, $compiler) +function smarty_modifiercompiler_strip_tags($params) { - if (!isset($params[1]) || $params[1] === true || trim($params[1],'"') == 'true') { - return "preg_replace('!<[^>]*?>!', ' ', {$params[0]})"; + if (!isset($params[1]) || $params[1] === true || trim($params[1], '"') == 'true') { + return "preg_replace('!<[^>]*?>!', ' ', {$params[0]})"; } else { return 'strip_tags(' . $params[0] . ')'; } diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.to_charset.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.to_charset.php similarity index 88% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.to_charset.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.to_charset.php index af75779a..9122d8bb 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.to_charset.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.to_charset.php @@ -2,22 +2,23 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty to_charset modifier plugin - * * Type: modifier
* Name: to_charset
* Purpose: convert character encoding from internal encoding to $charset * * @author Rodney Rehm + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_to_charset($params, $compiler) +function smarty_modifiercompiler_to_charset($params) { if (!Smarty::$_MBSTRING) { // FIXME: (rodneyrehm) shouldn't this throw an error? diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.unescape.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.unescape.php similarity index 93% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.unescape.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.unescape.php index 19474fcb..3b17ea2e 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.unescape.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.unescape.php @@ -2,22 +2,23 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty unescape modifier plugin - * * Type: modifier
* Name: unescape
* Purpose: unescape html entities * * @author Rodney Rehm + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_unescape($params, $compiler) +function smarty_modifiercompiler_unescape($params) { if (!isset($params[1])) { $params[1] = 'html'; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.upper.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.upper.php similarity index 69% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.upper.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.upper.php index f10ed187..52ca4e8f 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.upper.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.upper.php @@ -2,26 +2,27 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty upper modifier plugin - * * Type: modifier
* Name: lower
* Purpose: convert string to uppercase * - * @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Smarty online manual) + * @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Smarty online manual) * @author Uwe Tews + * * @param array $params parameters + * * @return string with compiled code */ -function smarty_modifiercompiler_upper($params, $compiler) +function smarty_modifiercompiler_upper($params) { if (Smarty::$_MBSTRING) { - return 'mb_strtoupper(' . $params[0] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')' ; + return 'mb_strtoupper(' . $params[0] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')'; } // no MBString fallback return 'strtoupper(' . $params[0] . ')'; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.wordwrap.php b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.wordwrap.php similarity index 75% rename from lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.wordwrap.php rename to lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.wordwrap.php index 39312b41..2ad928ea 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/modifiercompiler.wordwrap.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/modifiercompiler.wordwrap.php @@ -2,20 +2,22 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty wordwrap modifier plugin - * * Type: modifier
* Name: wordwrap
* Purpose: wrap a string of text at a given length * - * @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php wordwrap (Smarty online manual) + * @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php wordwrap (Smarty online manual) * @author Uwe Tews + * * @param array $params parameters + * @param $compiler + * * @return string with compiled code */ function smarty_modifiercompiler_wordwrap($params, $compiler) @@ -31,11 +33,11 @@ function smarty_modifiercompiler_wordwrap($params, $compiler) } $function = 'wordwrap'; if (Smarty::$_MBSTRING) { - if ($compiler->template->caching && ($compiler->tag_nocache | $compiler->nocache)) { - $compiler->template->required_plugins['nocache']['wordwrap']['modifier']['file'] = SMARTY_PLUGINS_DIR .'shared.mb_wordwrap.php'; + if ($compiler->template->caching && ($compiler->tag_nocache | $compiler->nocache)) { + $compiler->template->required_plugins['nocache']['wordwrap']['modifier']['file'] = SMARTY_PLUGINS_DIR . 'shared.mb_wordwrap.php'; $compiler->template->required_plugins['nocache']['wordwrap']['modifier']['function'] = 'smarty_mb_wordwrap'; } else { - $compiler->template->required_plugins['compiled']['wordwrap']['modifier']['file'] = SMARTY_PLUGINS_DIR .'shared.mb_wordwrap.php'; + $compiler->template->required_plugins['compiled']['wordwrap']['modifier']['file'] = SMARTY_PLUGINS_DIR . 'shared.mb_wordwrap.php'; $compiler->template->required_plugins['compiled']['wordwrap']['modifier']['function'] = 'smarty_mb_wordwrap'; } $function = 'smarty_mb_wordwrap'; diff --git a/lib/classes/Smarty-3.1.15/libs/plugins/outputfilter.trimwhitespace.php b/lib/classes/Smarty-3.1.21/libs/plugins/outputfilter.trimwhitespace.php similarity index 79% rename from lib/classes/Smarty-3.1.15/libs/plugins/outputfilter.trimwhitespace.php rename to lib/classes/Smarty-3.1.21/libs/plugins/outputfilter.trimwhitespace.php index 9da7f3db..62ab4e77 100644 --- a/lib/classes/Smarty-3.1.15/libs/plugins/outputfilter.trimwhitespace.php +++ b/lib/classes/Smarty-3.1.21/libs/plugins/outputfilter.trimwhitespace.php @@ -2,22 +2,22 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsFilter */ /** * Smarty trimwhitespace outputfilter plugin - * * Trim unnecessary whitespace from HTML markup. * * @author Rodney Rehm - * @param string $source input string - * @param Smarty_Internal_Template $smarty Smarty object + * + * @param string $source input string + * * @return string filtered output - * @todo substr_replace() is not overloaded by mbstring.func_overload - so this function might fail! + * @todo substr_replace() is not overloaded by mbstring.func_overload - so this function might fail! */ -function smarty_outputfilter_trimwhitespace($source, Smarty_Internal_Template $smarty) +function smarty_outputfilter_trimwhitespace($source) { $store = array(); $_store = 0; @@ -35,13 +35,13 @@ function smarty_outputfilter_trimwhitespace($source, Smarty_Internal_Template $s $source = substr_replace($source, $replace, $match[0][1] - $_offset, $_length); $_offset += $_length - strlen($replace); - $_store++; + $_store ++; } } // Strip all HTML-Comments // yes, even the ones in