- removed assert() from config and template parser

This commit is contained in:
uwe.tews@googlemail.com
2011-02-01 12:51:01 +00:00
parent 0860e69018
commit 5c8541eae3
4 changed files with 358 additions and 361 deletions

View File

@@ -1,4 +1,6 @@
===== SVN trunk ===== ===== SVN trunk =====
01/02/2011
- removed assert() from config and template parser
31/01/2011 31/01/2011
- bugfix the lexer/parser did fail on special characters like VT - bugfix the lexer/parser did fail on special characters like VT

View File

@@ -7,7 +7,6 @@
* @subpackage Config * @subpackage Config
* @author Uwe Tews * @author Uwe Tews
*/ */
/** /**
* Smarty Internal Plugin Configfilelexer * Smarty Internal Plugin Configfilelexer
*/ */
@@ -21,10 +20,10 @@ class Smarty_Internal_Configfilelexer
public $node; public $node;
public $line; public $line;
private $state = 1; private $state = 1;
public $smarty_token_names = array ( // Text for parser error messages public $smarty_token_names = array ( // Text for parser error messages
); );
function __construct($data, $smarty) function __construct($data, $smarty)
{ {
// set instance object // set instance object
@@ -85,7 +84,7 @@ class Smarty_Internal_Configfilelexer
if ($this->counter >= strlen($this->data)) { if ($this->counter >= strlen($this->data)) {
return false; // end of input return false; // end of input
} }
$yy_global_pattern = "/^(#)|^(\\[)|^(\\])|^(=)|^([ \t\r]+)|^(\n)|^([0-9]*[a-zA-Z_]\\w*)/"; $yy_global_pattern = "/^(#)|^(\\[)|^(\\])|^(=)|^([ \t\r]+)|^(\n)|^([0-9]*[a-zA-Z_]\\w*)/iS";
do { do {
if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) { if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) {
@@ -192,7 +191,7 @@ class Smarty_Internal_Configfilelexer
if ($this->counter >= strlen($this->data)) { if ($this->counter >= strlen($this->data)) {
return false; // end of input return false; // end of input
} }
$yy_global_pattern = "/^([ \t\r]+)|^(\\d+\\.\\d+(?=[ \t\r]*[\n#]))|^(\\d+(?=[ \t\r]*[\n#]))|^('[^'\\\\]*(?:\\\\.[^'\\\\]*)*'(?=[ \t\r]*[\n#]))|^(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"(?=[ \t\r]*[\n#]))|^(\"\"\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"\"\"(?=[ \t\r]*[\n#]))|^([a-zA-Z]+(?=[ \t\r]*[\n#]))|^([^\n]+?(?=[ \t\r]*\n))|^(\n)/"; $yy_global_pattern = "/^([ \t\r]+)|^(\\d+\\.\\d+(?=[ \t\r]*[\n#]))|^(\\d+(?=[ \t\r]*[\n#]))|^('[^'\\\\]*(?:\\\\.[^'\\\\]*)*'(?=[ \t\r]*[\n#]))|^(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"(?=[ \t\r]*[\n#]))|^(\"\"\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"\"\"(?=[ \t\r]*[\n#]))|^([a-zA-Z]+(?=[ \t\r]*[\n#]))|^([^\n]+?(?=[ \t\r]*\n))|^(\n)/iS";
do { do {
if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) { if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) {
@@ -313,7 +312,7 @@ class Smarty_Internal_Configfilelexer
if ($this->counter >= strlen($this->data)) { if ($this->counter >= strlen($this->data)) {
return false; // end of input return false; // end of input
} }
$yy_global_pattern = "/^([^\n]+?(?=[ \t\r]*\n))/"; $yy_global_pattern = "/^([^\n]+?(?=[ \t\r]*\n))/iS";
do { do {
if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) { if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) {
@@ -382,7 +381,7 @@ class Smarty_Internal_Configfilelexer
if ($this->counter >= strlen($this->data)) { if ($this->counter >= strlen($this->data)) {
return false; // end of input return false; // end of input
} }
$yy_global_pattern = "/^([ \t\r]+)|^([^\n]+?(?=[ \t\r]*\n))|^(\n)/"; $yy_global_pattern = "/^([ \t\r]+)|^([^\n]+?(?=[ \t\r]*\n))|^(\n)/iS";
do { do {
if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) { if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) {
@@ -460,7 +459,7 @@ class Smarty_Internal_Configfilelexer
if ($this->counter >= strlen($this->data)) { if ($this->counter >= strlen($this->data)) {
return false; // end of input return false; // end of input
} }
$yy_global_pattern = "/^(\\.)|^(.*?(?=[\.=[\]\r\n]))/"; $yy_global_pattern = "/^(\\.)|^(.*?(?=[\.=[\]\r\n]))/iS";
do { do {
if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) { if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) {
@@ -522,6 +521,6 @@ class Smarty_Internal_Configfilelexer
$this->yypopstate(); $this->yypopstate();
} }
}
}
?> ?>

View File

@@ -113,7 +113,6 @@ class Smarty_Internal_Configfileparser#line 79 "smarty_internal_configfileparser
if (in_array(strtolower($str) ,array('on','yes','true'))) { if (in_array(strtolower($str) ,array('on','yes','true'))) {
$res = true; $res = true;
} else { } else {
assert(in_array(strtolower($str), array('off','no','false')));
$res = false; $res = false;
} }
return $res; return $res;
@@ -164,7 +163,7 @@ class Smarty_Internal_Configfileparser#line 79 "smarty_internal_configfileparser
private function add_global_vars(Array $vars) { private function add_global_vars(Array $vars) {
if (!isset($this->compiler->config_data['vars'])) { if (!isset($this->compiler->config_data['vars'])) {
$this->compiler->config_data['vars'] = Array(); $this->compiler->config_data['vars'] = Array();
} }
foreach ($vars as $var) { foreach ($vars as $var) {
$this->set_var($var, $this->compiler->config_data); $this->set_var($var, $this->compiler->config_data);
@@ -179,7 +178,7 @@ class Smarty_Internal_Configfileparser#line 79 "smarty_internal_configfileparser
$this->set_var($var, $this->compiler->config_data['sections'][$section_name]); $this->set_var($var, $this->compiler->config_data['sections'][$section_name]);
} }
} }
#line 175 "smarty_internal_configfileparser.php" #line 174 "smarty_internal_configfileparser.php"
const TPC_OPENB = 1; const TPC_OPENB = 1;
const TPC_SECTION = 2; const TPC_SECTION = 2;
@@ -404,7 +403,7 @@ static public $yy_action = array(
$this->yystack[$this->yyidx]->stateno, $this->yystack[$this->yyidx]->stateno,
self::$yyRuleInfo[$yyruleno]['lhs']); self::$yyRuleInfo[$yyruleno]['lhs']);
if (isset(self::$yyExpectedTokens[$nextstate])) { if (isset(self::$yyExpectedTokens[$nextstate])) {
$expected = array_merge($expected, self::$yyExpectedTokens[$nextstate]); $expected = array_merge($expected, self::$yyExpectedTokens[$nextstate]);
if (in_array($token, if (in_array($token,
self::$yyExpectedTokens[$nextstate], true)) { self::$yyExpectedTokens[$nextstate], true)) {
$this->yyidx = $yyidx; $this->yyidx = $yyidx;
@@ -439,8 +438,8 @@ static public $yy_action = array(
} }
break; break;
} while (true); } while (true);
$this->yyidx = $yyidx; $this->yyidx = $yyidx;
$this->yystack = $stack; $this->yystack = $stack;
return array_unique($expected); return array_unique($expected);
} }
@@ -583,11 +582,11 @@ static public $yy_action = array(
while ($this->yyidx >= 0) { while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack(); $this->yy_pop_parser_stack();
} }
#line 127 "smarty_internal_configfileparser.y" #line 126 "smarty_internal_configfileparser.y"
$this->internalError = true; $this->internalError = true;
$this->compiler->trigger_config_file_error("Stack overflow in configfile parser"); $this->compiler->trigger_config_file_error("Stack overflow in configfile parser");
#line 586 "smarty_internal_configfileparser.php" #line 585 "smarty_internal_configfileparser.php"
return; return;
} }
$yytos = new TPC_yyStackEntry; $yytos = new TPC_yyStackEntry;
@@ -652,51 +651,51 @@ static public $yy_action = array(
15 => 15, 15 => 15,
16 => 16, 16 => 16,
); );
#line 133 "smarty_internal_configfileparser.y" #line 132 "smarty_internal_configfileparser.y"
function yy_r0(){ $this->_retvalue = null; } function yy_r0(){ $this->_retvalue = null; }
#line 653 "smarty_internal_configfileparser.php" #line 652 "smarty_internal_configfileparser.php"
#line 136 "smarty_internal_configfileparser.y" #line 135 "smarty_internal_configfileparser.y"
function yy_r1(){ $this->add_global_vars($this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = null; } function yy_r1(){ $this->add_global_vars($this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = null; }
#line 656 "smarty_internal_configfileparser.php" #line 655 "smarty_internal_configfileparser.php"
#line 142 "smarty_internal_configfileparser.y" #line 141 "smarty_internal_configfileparser.y"
function yy_r4(){ $this->add_section_vars($this->yystack[$this->yyidx + -3]->minor, $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = null; } function yy_r4(){ $this->add_section_vars($this->yystack[$this->yyidx + -3]->minor, $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = null; }
#line 659 "smarty_internal_configfileparser.php" #line 658 "smarty_internal_configfileparser.php"
#line 143 "smarty_internal_configfileparser.y" #line 142 "smarty_internal_configfileparser.y"
function yy_r5(){ if ($this->smarty->config_read_hidden) { $this->add_section_vars($this->yystack[$this->yyidx + -3]->minor, $this->yystack[$this->yyidx + 0]->minor); } $this->_retvalue = null; } function yy_r5(){ if ($this->smarty->config_read_hidden) { $this->add_section_vars($this->yystack[$this->yyidx + -3]->minor, $this->yystack[$this->yyidx + 0]->minor); } $this->_retvalue = null; }
#line 662 "smarty_internal_configfileparser.php" #line 661 "smarty_internal_configfileparser.php"
#line 146 "smarty_internal_configfileparser.y" #line 145 "smarty_internal_configfileparser.y"
function yy_r6(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; } function yy_r6(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; }
#line 665 "smarty_internal_configfileparser.php" #line 664 "smarty_internal_configfileparser.php"
#line 147 "smarty_internal_configfileparser.y" #line 146 "smarty_internal_configfileparser.y"
function yy_r7(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor, Array($this->yystack[$this->yyidx + 0]->minor)); } function yy_r7(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor, Array($this->yystack[$this->yyidx + 0]->minor)); }
#line 668 "smarty_internal_configfileparser.php" #line 667 "smarty_internal_configfileparser.php"
#line 148 "smarty_internal_configfileparser.y" #line 147 "smarty_internal_configfileparser.y"
function yy_r8(){ $this->_retvalue = Array(); } function yy_r8(){ $this->_retvalue = Array(); }
#line 671 "smarty_internal_configfileparser.php" #line 670 "smarty_internal_configfileparser.php"
#line 152 "smarty_internal_configfileparser.y" #line 151 "smarty_internal_configfileparser.y"
function yy_r9(){ $this->_retvalue = Array("key" => $this->yystack[$this->yyidx + -2]->minor, "value" => $this->yystack[$this->yyidx + 0]->minor); } function yy_r9(){ $this->_retvalue = Array("key" => $this->yystack[$this->yyidx + -2]->minor, "value" => $this->yystack[$this->yyidx + 0]->minor); }
#line 674 "smarty_internal_configfileparser.php" #line 673 "smarty_internal_configfileparser.php"
#line 154 "smarty_internal_configfileparser.y" #line 153 "smarty_internal_configfileparser.y"
function yy_r10(){ $this->_retvalue = (float) $this->yystack[$this->yyidx + 0]->minor; } function yy_r10(){ $this->_retvalue = (float) $this->yystack[$this->yyidx + 0]->minor; }
#line 677 "smarty_internal_configfileparser.php" #line 676 "smarty_internal_configfileparser.php"
#line 155 "smarty_internal_configfileparser.y" #line 154 "smarty_internal_configfileparser.y"
function yy_r11(){ $this->_retvalue = (int) $this->yystack[$this->yyidx + 0]->minor; } function yy_r11(){ $this->_retvalue = (int) $this->yystack[$this->yyidx + 0]->minor; }
#line 680 "smarty_internal_configfileparser.php" #line 679 "smarty_internal_configfileparser.php"
#line 156 "smarty_internal_configfileparser.y" #line 155 "smarty_internal_configfileparser.y"
function yy_r12(){ $this->_retvalue = $this->parse_bool($this->yystack[$this->yyidx + 0]->minor); } function yy_r12(){ $this->_retvalue = $this->parse_bool($this->yystack[$this->yyidx + 0]->minor); }
#line 683 "smarty_internal_configfileparser.php" #line 682 "smarty_internal_configfileparser.php"
#line 157 "smarty_internal_configfileparser.y" #line 156 "smarty_internal_configfileparser.y"
function yy_r13(){ $this->_retvalue = self::parse_single_quoted_string($this->yystack[$this->yyidx + 0]->minor); } function yy_r13(){ $this->_retvalue = self::parse_single_quoted_string($this->yystack[$this->yyidx + 0]->minor); }
#line 686 "smarty_internal_configfileparser.php" #line 685 "smarty_internal_configfileparser.php"
#line 158 "smarty_internal_configfileparser.y" #line 157 "smarty_internal_configfileparser.y"
function yy_r14(){ $this->_retvalue = self::parse_double_quoted_string($this->yystack[$this->yyidx + 0]->minor); } function yy_r14(){ $this->_retvalue = self::parse_double_quoted_string($this->yystack[$this->yyidx + 0]->minor); }
#line 689 "smarty_internal_configfileparser.php" #line 688 "smarty_internal_configfileparser.php"
#line 159 "smarty_internal_configfileparser.y" #line 158 "smarty_internal_configfileparser.y"
function yy_r15(){ $this->_retvalue = self::parse_tripple_double_quoted_string($this->yystack[$this->yyidx + 0]->minor); } function yy_r15(){ $this->_retvalue = self::parse_tripple_double_quoted_string($this->yystack[$this->yyidx + 0]->minor); }
#line 692 "smarty_internal_configfileparser.php" #line 691 "smarty_internal_configfileparser.php"
#line 160 "smarty_internal_configfileparser.y" #line 159 "smarty_internal_configfileparser.y"
function yy_r16(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } function yy_r16(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 695 "smarty_internal_configfileparser.php" #line 694 "smarty_internal_configfileparser.php"
private $_retvalue; private $_retvalue;
@@ -753,12 +752,12 @@ static public $yy_action = array(
function yy_syntax_error($yymajor, $TOKEN) function yy_syntax_error($yymajor, $TOKEN)
{ {
#line 120 "smarty_internal_configfileparser.y" #line 119 "smarty_internal_configfileparser.y"
$this->internalError = true; $this->internalError = true;
$this->yymajor = $yymajor; $this->yymajor = $yymajor;
$this->compiler->trigger_config_file_error(); $this->compiler->trigger_config_file_error();
#line 758 "smarty_internal_configfileparser.php" #line 757 "smarty_internal_configfileparser.php"
} }
function yy_accept() function yy_accept()
@@ -769,13 +768,13 @@ static public $yy_action = array(
while ($this->yyidx >= 0) { while ($this->yyidx >= 0) {
$stack = $this->yy_pop_parser_stack(); $stack = $this->yy_pop_parser_stack();
} }
#line 112 "smarty_internal_configfileparser.y" #line 111 "smarty_internal_configfileparser.y"
$this->successful = !$this->internalError; $this->successful = !$this->internalError;
$this->internalError = false; $this->internalError = false;
$this->retvalue = $this->_retvalue; $this->retvalue = $this->_retvalue;
//echo $this->retvalue."\n\n"; //echo $this->retvalue."\n\n";
#line 776 "smarty_internal_configfileparser.php" #line 775 "smarty_internal_configfileparser.php"
} }
function doParse($yymajor, $yytokenvalue) function doParse($yymajor, $yytokenvalue)
@@ -868,5 +867,4 @@ static public $yy_action = array(
} while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0);
} }
} }
?> ?>

View File

@@ -117,17 +117,15 @@ class Smarty_Internal_Templateparser#line 79 "smarty_internal_templateparser.php
public static function escape_start_tag($tag_text) { public static function escape_start_tag($tag_text) {
$tag = preg_replace('/\A<\?(.*)\z/', '<<?php ?>?\1', $tag_text, -1 , $count); //Escape tag $tag = preg_replace('/\A<\?(.*)\z/', '<<?php ?>?\1', $tag_text, -1 , $count); //Escape tag
assert($tag !== false && $count === 1);
return $tag; return $tag;
} }
public static function escape_end_tag($tag_text) { public static function escape_end_tag($tag_text) {
assert($tag_text === '?>');
return '?<?php ?>>'; return '?<?php ?>>';
} }
#line 123 "smarty_internal_templateparser.php" #line 121 "smarty_internal_templateparser.php"
const TP_VERT = 1; const TP_VERT = 1;
const TP_COLON = 2; const TP_COLON = 2;
@@ -1730,11 +1728,11 @@ static public $yy_action = array(
while ($this->yyidx >= 0) { while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack(); $this->yy_pop_parser_stack();
} }
#line 75 "smarty_internal_templateparser.y" #line 73 "smarty_internal_templateparser.y"
$this->internalError = true; $this->internalError = true;
$this->compiler->trigger_template_error("Stack overflow in template parser"); $this->compiler->trigger_template_error("Stack overflow in template parser");
#line 1733 "smarty_internal_templateparser.php" #line 1731 "smarty_internal_templateparser.php"
return; return;
} }
$yytos = new TP_yyStackEntry; $yytos = new TP_yyStackEntry;
@@ -2156,13 +2154,13 @@ static public $yy_action = array(
196 => 196, 196 => 196,
198 => 198, 198 => 198,
); );
#line 86 "smarty_internal_templateparser.y" #line 84 "smarty_internal_templateparser.y"
function yy_r0(){ $this->_retvalue = $this->root_buffer->to_smarty_php(); } function yy_r0(){ $this->_retvalue = $this->root_buffer->to_smarty_php(); }
#line 2157 "smarty_internal_templateparser.php" #line 2155 "smarty_internal_templateparser.php"
#line 92 "smarty_internal_templateparser.y" #line 90 "smarty_internal_templateparser.y"
function yy_r1(){ $this->current_buffer->append_subtree($this->yystack[$this->yyidx + 0]->minor); } function yy_r1(){ $this->current_buffer->append_subtree($this->yystack[$this->yyidx + 0]->minor); }
#line 2160 "smarty_internal_templateparser.php" #line 2158 "smarty_internal_templateparser.php"
#line 104 "smarty_internal_templateparser.y" #line 102 "smarty_internal_templateparser.y"
function yy_r4(){ function yy_r4(){
if ($this->compiler->has_code) { if ($this->compiler->has_code) {
$tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array();
@@ -2173,14 +2171,14 @@ static public $yy_action = array(
$this->compiler->has_variable_string = false; $this->compiler->has_variable_string = false;
$this->block_nesting_level = count($this->compiler->_tag_stack); $this->block_nesting_level = count($this->compiler->_tag_stack);
} }
#line 2172 "smarty_internal_templateparser.php" #line 2170 "smarty_internal_templateparser.php"
#line 116 "smarty_internal_templateparser.y" #line 114 "smarty_internal_templateparser.y"
function yy_r5(){ $this->_retvalue = new _smarty_tag($this, ''); } function yy_r5(){ $this->_retvalue = new _smarty_tag($this, ''); }
#line 2175 "smarty_internal_templateparser.php" #line 2173 "smarty_internal_templateparser.php"
#line 119 "smarty_internal_templateparser.y" #line 117 "smarty_internal_templateparser.y"
function yy_r6(){ $this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor); } function yy_r6(){ $this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor); }
#line 2178 "smarty_internal_templateparser.php" #line 2176 "smarty_internal_templateparser.php"
#line 122 "smarty_internal_templateparser.y" #line 120 "smarty_internal_templateparser.y"
function yy_r7(){ function yy_r7(){
if ($this->php_handling == Smarty::PHP_PASSTHRU) { if ($this->php_handling == Smarty::PHP_PASSTHRU) {
$this->_retvalue = new _smarty_text($this, self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)); $this->_retvalue = new _smarty_text($this, self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor));
@@ -2192,8 +2190,8 @@ static public $yy_action = array(
$this->_retvalue = new _smarty_text($this, ''); $this->_retvalue = new _smarty_text($this, '');
} }
} }
#line 2191 "smarty_internal_templateparser.php" #line 2189 "smarty_internal_templateparser.php"
#line 134 "smarty_internal_templateparser.y" #line 132 "smarty_internal_templateparser.y"
function yy_r8(){if ($this->is_xml) { function yy_r8(){if ($this->is_xml) {
$this->compiler->tag_nocache = true; $this->compiler->tag_nocache = true;
$this->is_xml = true; $this->is_xml = true;
@@ -2208,8 +2206,8 @@ static public $yy_action = array(
$this->_retvalue = new _smarty_text($this, ''); $this->_retvalue = new _smarty_text($this, '');
} }
} }
#line 2207 "smarty_internal_templateparser.php" #line 2205 "smarty_internal_templateparser.php"
#line 150 "smarty_internal_templateparser.y" #line 148 "smarty_internal_templateparser.y"
function yy_r9(){ function yy_r9(){
if ($this->php_handling == Smarty::PHP_PASSTHRU) { if ($this->php_handling == Smarty::PHP_PASSTHRU) {
$this->_retvalue = new _smarty_text($this, '<<?php ?>%'); $this->_retvalue = new _smarty_text($this, '<<?php ?>%');
@@ -2229,8 +2227,8 @@ static public $yy_action = array(
} }
} }
} }
#line 2228 "smarty_internal_templateparser.php" #line 2226 "smarty_internal_templateparser.php"
#line 171 "smarty_internal_templateparser.y" #line 169 "smarty_internal_templateparser.y"
function yy_r10(){ function yy_r10(){
if ($this->php_handling == Smarty::PHP_PASSTHRU) { if ($this->php_handling == Smarty::PHP_PASSTHRU) {
$this->_retvalue = new _smarty_text($this, '%<?php ?>>'); $this->_retvalue = new _smarty_text($this, '%<?php ?>>');
@@ -2250,159 +2248,159 @@ static public $yy_action = array(
} }
} }
} }
#line 2249 "smarty_internal_templateparser.php" #line 2247 "smarty_internal_templateparser.php"
#line 191 "smarty_internal_templateparser.y" #line 189 "smarty_internal_templateparser.y"
function yy_r11(){if ($this->lex->strip) { function yy_r11(){if ($this->lex->strip) {
$this->_retvalue = new _smarty_text($this, preg_replace('![\$this->yystack[$this->yyidx + 0]->minor ]*[\r\n]+[\$this->yystack[$this->yyidx + 0]->minor ]*!', '', self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor))); $this->_retvalue = new _smarty_text($this, preg_replace('![\$this->yystack[$this->yyidx + 0]->minor ]*[\r\n]+[\$this->yystack[$this->yyidx + 0]->minor ]*!', '', self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)));
} else { } else {
$this->_retvalue = new _smarty_text($this, self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)); $this->_retvalue = new _smarty_text($this, self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor));
} }
} }
#line 2257 "smarty_internal_templateparser.php" #line 2255 "smarty_internal_templateparser.php"
#line 199 "smarty_internal_templateparser.y" #line 197 "smarty_internal_templateparser.y"
function yy_r12(){ $this->compiler->tag_nocache = true; $this->is_xml = true; $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true)); } function yy_r12(){ $this->compiler->tag_nocache = true; $this->is_xml = true; $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true)); }
#line 2260 "smarty_internal_templateparser.php" #line 2258 "smarty_internal_templateparser.php"
#line 202 "smarty_internal_templateparser.y" #line 200 "smarty_internal_templateparser.y"
function yy_r13(){if ($this->lex->strip) { function yy_r13(){if ($this->lex->strip) {
$this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor)); $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor));
} else { } else {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
} }
} }
#line 2268 "smarty_internal_templateparser.php" #line 2266 "smarty_internal_templateparser.php"
#line 208 "smarty_internal_templateparser.y" #line 206 "smarty_internal_templateparser.y"
function yy_r14(){ function yy_r14(){
$this->_retvalue = new _smarty_linebreak($this, $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = new _smarty_linebreak($this, $this->yystack[$this->yyidx + 0]->minor);
} }
#line 2273 "smarty_internal_templateparser.php" #line 2271 "smarty_internal_templateparser.php"
#line 213 "smarty_internal_templateparser.y" #line 211 "smarty_internal_templateparser.y"
function yy_r15(){ $this->_retvalue = ''; } function yy_r15(){ $this->_retvalue = ''; }
#line 2276 "smarty_internal_templateparser.php" #line 2274 "smarty_internal_templateparser.php"
#line 214 "smarty_internal_templateparser.y" #line 212 "smarty_internal_templateparser.y"
function yy_r16(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; } function yy_r16(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; }
#line 2279 "smarty_internal_templateparser.php" #line 2277 "smarty_internal_templateparser.php"
#line 216 "smarty_internal_templateparser.y" #line 214 "smarty_internal_templateparser.y"
function yy_r17(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } function yy_r17(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2282 "smarty_internal_templateparser.php" #line 2280 "smarty_internal_templateparser.php"
#line 219 "smarty_internal_templateparser.y" #line 217 "smarty_internal_templateparser.y"
function yy_r19(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } function yy_r19(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2285 "smarty_internal_templateparser.php" #line 2283 "smarty_internal_templateparser.php"
#line 221 "smarty_internal_templateparser.y" #line 219 "smarty_internal_templateparser.y"
function yy_r21(){ $this->_retvalue = self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor); } function yy_r21(){ $this->_retvalue = self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor); }
#line 2288 "smarty_internal_templateparser.php" #line 2286 "smarty_internal_templateparser.php"
#line 223 "smarty_internal_templateparser.y" #line 221 "smarty_internal_templateparser.y"
function yy_r23(){ $this->_retvalue = self::escape_end_tag($this->yystack[$this->yyidx + 0]->minor); } function yy_r23(){ $this->_retvalue = self::escape_end_tag($this->yystack[$this->yyidx + 0]->minor); }
#line 2291 "smarty_internal_templateparser.php" #line 2289 "smarty_internal_templateparser.php"
#line 224 "smarty_internal_templateparser.y" #line 222 "smarty_internal_templateparser.y"
function yy_r24(){ $this->_retvalue = '<<?php ?>%'; } function yy_r24(){ $this->_retvalue = '<<?php ?>%'; }
#line 2294 "smarty_internal_templateparser.php" #line 2292 "smarty_internal_templateparser.php"
#line 225 "smarty_internal_templateparser.y" #line 223 "smarty_internal_templateparser.y"
function yy_r25(){ $this->_retvalue = '%<?php ?>>'; } function yy_r25(){ $this->_retvalue = '%<?php ?>>'; }
#line 2297 "smarty_internal_templateparser.php" #line 2295 "smarty_internal_templateparser.php"
#line 233 "smarty_internal_templateparser.y" #line 231 "smarty_internal_templateparser.y"
function yy_r26(){ $this->_retvalue = $this->compiler->compileTag('private_print_expression',array(),array('value'=>$this->yystack[$this->yyidx + -1]->minor)); } function yy_r26(){ $this->_retvalue = $this->compiler->compileTag('private_print_expression',array(),array('value'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2300 "smarty_internal_templateparser.php" #line 2298 "smarty_internal_templateparser.php"
#line 234 "smarty_internal_templateparser.y" #line 232 "smarty_internal_templateparser.y"
function yy_r27(){ $this->_retvalue = $this->compiler->compileTag('private_print_expression',$this->yystack[$this->yyidx + -1]->minor,array('value'=>$this->yystack[$this->yyidx + -2]->minor)); } function yy_r27(){ $this->_retvalue = $this->compiler->compileTag('private_print_expression',$this->yystack[$this->yyidx + -1]->minor,array('value'=>$this->yystack[$this->yyidx + -2]->minor)); }
#line 2303 "smarty_internal_templateparser.php" #line 2301 "smarty_internal_templateparser.php"
#line 236 "smarty_internal_templateparser.y" #line 234 "smarty_internal_templateparser.y"
function yy_r29(){ $this->_retvalue = $this->compiler->compileTag('private_print_expression',$this->yystack[$this->yyidx + -1]->minor,array('value'=>$this->yystack[$this->yyidx + -3]->minor,'modifierlist'=>$this->yystack[$this->yyidx + -2]->minor)); } function yy_r29(){ $this->_retvalue = $this->compiler->compileTag('private_print_expression',$this->yystack[$this->yyidx + -1]->minor,array('value'=>$this->yystack[$this->yyidx + -3]->minor,'modifierlist'=>$this->yystack[$this->yyidx + -2]->minor)); }
#line 2306 "smarty_internal_templateparser.php" #line 2304 "smarty_internal_templateparser.php"
#line 244 "smarty_internal_templateparser.y" #line 242 "smarty_internal_templateparser.y"
function yy_r31(){ $this->_retvalue = $this->compiler->compileTag('assign',array(array('value'=>$this->yystack[$this->yyidx + -1]->minor),array('var'=>"'".$this->yystack[$this->yyidx + -3]->minor."'"))); } function yy_r31(){ $this->_retvalue = $this->compiler->compileTag('assign',array(array('value'=>$this->yystack[$this->yyidx + -1]->minor),array('var'=>"'".$this->yystack[$this->yyidx + -3]->minor."'"))); }
#line 2309 "smarty_internal_templateparser.php" #line 2307 "smarty_internal_templateparser.php"
#line 246 "smarty_internal_templateparser.y" #line 244 "smarty_internal_templateparser.y"
function yy_r33(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array(array('value'=>$this->yystack[$this->yyidx + -2]->minor),array('var'=>"'".$this->yystack[$this->yyidx + -4]->minor."'")),$this->yystack[$this->yyidx + -1]->minor)); } function yy_r33(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array(array('value'=>$this->yystack[$this->yyidx + -2]->minor),array('var'=>"'".$this->yystack[$this->yyidx + -4]->minor."'")),$this->yystack[$this->yyidx + -1]->minor)); }
#line 2312 "smarty_internal_templateparser.php" #line 2310 "smarty_internal_templateparser.php"
#line 247 "smarty_internal_templateparser.y" #line 245 "smarty_internal_templateparser.y"
function yy_r34(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array(array('value'=>$this->yystack[$this->yyidx + -2]->minor),array('var'=>$this->yystack[$this->yyidx + -4]->minor['var'])),$this->yystack[$this->yyidx + -1]->minor),array('smarty_internal_index'=>$this->yystack[$this->yyidx + -4]->minor['smarty_internal_index'])); } function yy_r34(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array(array('value'=>$this->yystack[$this->yyidx + -2]->minor),array('var'=>$this->yystack[$this->yyidx + -4]->minor['var'])),$this->yystack[$this->yyidx + -1]->minor),array('smarty_internal_index'=>$this->yystack[$this->yyidx + -4]->minor['smarty_internal_index'])); }
#line 2315 "smarty_internal_templateparser.php" #line 2313 "smarty_internal_templateparser.php"
#line 249 "smarty_internal_templateparser.y" #line 247 "smarty_internal_templateparser.y"
function yy_r35(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + -1]->minor); } function yy_r35(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + -1]->minor); }
#line 2318 "smarty_internal_templateparser.php" #line 2316 "smarty_internal_templateparser.php"
#line 250 "smarty_internal_templateparser.y" #line 248 "smarty_internal_templateparser.y"
function yy_r36(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,array()); } function yy_r36(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,array()); }
#line 2321 "smarty_internal_templateparser.php" #line 2319 "smarty_internal_templateparser.php"
#line 252 "smarty_internal_templateparser.y" #line 250 "smarty_internal_templateparser.y"
function yy_r37(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor,array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor)); } function yy_r37(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor,array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor)); }
#line 2324 "smarty_internal_templateparser.php" #line 2322 "smarty_internal_templateparser.php"
#line 254 "smarty_internal_templateparser.y" #line 252 "smarty_internal_templateparser.y"
function yy_r38(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + -1]->minor).'<?php echo '; function yy_r38(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + -1]->minor).'<?php echo ';
$this->_retvalue .= $this->compiler->compileTag('private_modifier',array(),array('modifierlist'=>$this->yystack[$this->yyidx + -2]->minor,'value'=>'ob_get_clean()')).'?>'; $this->_retvalue .= $this->compiler->compileTag('private_modifier',array(),array('modifierlist'=>$this->yystack[$this->yyidx + -2]->minor,'value'=>'ob_get_clean()')).'?>';
} }
#line 2329 "smarty_internal_templateparser.php" #line 2327 "smarty_internal_templateparser.php"
#line 258 "smarty_internal_templateparser.y" #line 256 "smarty_internal_templateparser.y"
function yy_r39(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,$this->yystack[$this->yyidx + -1]->minor,array('object_methode'=>$this->yystack[$this->yyidx + -3]->minor)).'<?php echo '; function yy_r39(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,$this->yystack[$this->yyidx + -1]->minor,array('object_methode'=>$this->yystack[$this->yyidx + -3]->minor)).'<?php echo ';
$this->_retvalue .= $this->compiler->compileTag('private_modifier',array(),array('modifierlist'=>$this->yystack[$this->yyidx + -2]->minor,'value'=>'ob_get_clean()')).'?>'; $this->_retvalue .= $this->compiler->compileTag('private_modifier',array(),array('modifierlist'=>$this->yystack[$this->yyidx + -2]->minor,'value'=>'ob_get_clean()')).'?>';
} }
#line 2334 "smarty_internal_templateparser.php" #line 2332 "smarty_internal_templateparser.php"
#line 262 "smarty_internal_templateparser.y" #line 260 "smarty_internal_templateparser.y"
function yy_r40(){ $tag = trim(substr($this->yystack[$this->yyidx + -3]->minor,$this->lex->ldel_length)); $this->_retvalue = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,array(),array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); } function yy_r40(){ $tag = trim(substr($this->yystack[$this->yyidx + -3]->minor,$this->lex->ldel_length)); $this->_retvalue = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,array(),array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2337 "smarty_internal_templateparser.php" #line 2335 "smarty_internal_templateparser.php"
#line 263 "smarty_internal_templateparser.y" #line 261 "smarty_internal_templateparser.y"
function yy_r41(){ $tag = trim(substr($this->yystack[$this->yyidx + -4]->minor,$this->lex->ldel_length)); $this->_retvalue = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,$this->yystack[$this->yyidx + -1]->minor,array('if condition'=>$this->yystack[$this->yyidx + -2]->minor)); } function yy_r41(){ $tag = trim(substr($this->yystack[$this->yyidx + -4]->minor,$this->lex->ldel_length)); $this->_retvalue = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,$this->yystack[$this->yyidx + -1]->minor,array('if condition'=>$this->yystack[$this->yyidx + -2]->minor)); }
#line 2340 "smarty_internal_templateparser.php" #line 2338 "smarty_internal_templateparser.php"
#line 267 "smarty_internal_templateparser.y" #line 265 "smarty_internal_templateparser.y"
function yy_r44(){ function yy_r44(){
$this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('start'=>$this->yystack[$this->yyidx + -10]->minor),array('ifexp'=>$this->yystack[$this->yyidx + -7]->minor),array('var'=>$this->yystack[$this->yyidx + -3]->minor),array('step'=>$this->yystack[$this->yyidx + -2]->minor))),1); } $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('start'=>$this->yystack[$this->yyidx + -10]->minor),array('ifexp'=>$this->yystack[$this->yyidx + -7]->minor),array('var'=>$this->yystack[$this->yyidx + -3]->minor),array('step'=>$this->yystack[$this->yyidx + -2]->minor))),1); }
#line 2344 "smarty_internal_templateparser.php" #line 2342 "smarty_internal_templateparser.php"
#line 270 "smarty_internal_templateparser.y" #line 268 "smarty_internal_templateparser.y"
function yy_r45(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; } function yy_r45(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
#line 2347 "smarty_internal_templateparser.php" #line 2345 "smarty_internal_templateparser.php"
#line 271 "smarty_internal_templateparser.y" #line 269 "smarty_internal_templateparser.y"
function yy_r46(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } function yy_r46(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2350 "smarty_internal_templateparser.php" #line 2348 "smarty_internal_templateparser.php"
#line 272 "smarty_internal_templateparser.y" #line 270 "smarty_internal_templateparser.y"
function yy_r47(){ $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('start'=>$this->yystack[$this->yyidx + -4]->minor),array('to'=>$this->yystack[$this->yyidx + -2]->minor))),0); } function yy_r47(){ $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('start'=>$this->yystack[$this->yyidx + -4]->minor),array('to'=>$this->yystack[$this->yyidx + -2]->minor))),0); }
#line 2353 "smarty_internal_templateparser.php" #line 2351 "smarty_internal_templateparser.php"
#line 273 "smarty_internal_templateparser.y" #line 271 "smarty_internal_templateparser.y"
function yy_r48(){ $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('start'=>$this->yystack[$this->yyidx + -6]->minor),array('to'=>$this->yystack[$this->yyidx + -4]->minor),array('step'=>$this->yystack[$this->yyidx + -2]->minor))),0); } function yy_r48(){ $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('start'=>$this->yystack[$this->yyidx + -6]->minor),array('to'=>$this->yystack[$this->yyidx + -4]->minor),array('step'=>$this->yystack[$this->yyidx + -2]->minor))),0); }
#line 2356 "smarty_internal_templateparser.php" #line 2354 "smarty_internal_templateparser.php"
#line 275 "smarty_internal_templateparser.y" #line 273 "smarty_internal_templateparser.y"
function yy_r49(){ $this->_retvalue = $this->compiler->compileTag('foreach',$this->yystack[$this->yyidx + -1]->minor); } function yy_r49(){ $this->_retvalue = $this->compiler->compileTag('foreach',$this->yystack[$this->yyidx + -1]->minor); }
#line 2359 "smarty_internal_templateparser.php" #line 2357 "smarty_internal_templateparser.php"
#line 277 "smarty_internal_templateparser.y" #line 275 "smarty_internal_templateparser.y"
function yy_r50(){ function yy_r50(){
$this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -5]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor)))); } $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -5]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor)))); }
#line 2363 "smarty_internal_templateparser.php" #line 2361 "smarty_internal_templateparser.php"
#line 279 "smarty_internal_templateparser.y" #line 277 "smarty_internal_templateparser.y"
function yy_r51(){ function yy_r51(){
$this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -8]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor),array('key'=>$this->yystack[$this->yyidx + -5]->minor)))); } $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -8]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor),array('key'=>$this->yystack[$this->yyidx + -5]->minor)))); }
#line 2367 "smarty_internal_templateparser.php" #line 2365 "smarty_internal_templateparser.php"
#line 281 "smarty_internal_templateparser.y" #line 279 "smarty_internal_templateparser.y"
function yy_r52(){ function yy_r52(){
$this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -5]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor)))); } $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -5]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor)))); }
#line 2371 "smarty_internal_templateparser.php" #line 2369 "smarty_internal_templateparser.php"
#line 283 "smarty_internal_templateparser.y" #line 281 "smarty_internal_templateparser.y"
function yy_r53(){ function yy_r53(){
$this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -8]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor),array('key'=>$this->yystack[$this->yyidx + -5]->minor)))); } $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -8]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor),array('key'=>$this->yystack[$this->yyidx + -5]->minor)))); }
#line 2375 "smarty_internal_templateparser.php" #line 2373 "smarty_internal_templateparser.php"
#line 287 "smarty_internal_templateparser.y" #line 285 "smarty_internal_templateparser.y"
function yy_r54(){ $this->_retvalue = SMARTY_INTERNAL_COMPILE_BLOCK::compileChildBlock($this->compiler); } function yy_r54(){ $this->_retvalue = SMARTY_INTERNAL_COMPILE_BLOCK::compileChildBlock($this->compiler); }
#line 2378 "smarty_internal_templateparser.php" #line 2376 "smarty_internal_templateparser.php"
#line 291 "smarty_internal_templateparser.y" #line 289 "smarty_internal_templateparser.y"
function yy_r55(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',array()); } function yy_r55(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',array()); }
#line 2381 "smarty_internal_templateparser.php" #line 2379 "smarty_internal_templateparser.php"
#line 293 "smarty_internal_templateparser.y" #line 291 "smarty_internal_templateparser.y"
function yy_r56(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array(),array('modifier_list'=>$this->yystack[$this->yyidx + -1]->minor)); function yy_r56(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array(),array('modifier_list'=>$this->yystack[$this->yyidx + -1]->minor));
} }
#line 2385 "smarty_internal_templateparser.php" #line 2383 "smarty_internal_templateparser.php"
#line 296 "smarty_internal_templateparser.y" #line 294 "smarty_internal_templateparser.y"
function yy_r57(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array(),array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); } function yy_r57(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array(),array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2388 "smarty_internal_templateparser.php" #line 2386 "smarty_internal_templateparser.php"
#line 297 "smarty_internal_templateparser.y" #line 295 "smarty_internal_templateparser.y"
function yy_r58(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor.'close',array(),array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor, 'modifier_list'=>$this->yystack[$this->yyidx + -1]->minor)); } function yy_r58(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor.'close',array(),array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor, 'modifier_list'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2391 "smarty_internal_templateparser.php" #line 2389 "smarty_internal_templateparser.php"
#line 303 "smarty_internal_templateparser.y" #line 301 "smarty_internal_templateparser.y"
function yy_r59(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } function yy_r59(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; }
#line 2394 "smarty_internal_templateparser.php" #line 2392 "smarty_internal_templateparser.php"
#line 305 "smarty_internal_templateparser.y" #line 303 "smarty_internal_templateparser.y"
function yy_r60(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } function yy_r60(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
#line 2397 "smarty_internal_templateparser.php" #line 2395 "smarty_internal_templateparser.php"
#line 307 "smarty_internal_templateparser.y" #line 305 "smarty_internal_templateparser.y"
function yy_r61(){ $this->_retvalue = array(); } function yy_r61(){ $this->_retvalue = array(); }
#line 2400 "smarty_internal_templateparser.php" #line 2398 "smarty_internal_templateparser.php"
#line 310 "smarty_internal_templateparser.y" #line 308 "smarty_internal_templateparser.y"
function yy_r62(){ if (preg_match('~^true$~i', $this->yystack[$this->yyidx + 0]->minor)) { function yy_r62(){ if (preg_match('~^true$~i', $this->yystack[$this->yyidx + 0]->minor)) {
$this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>'true'); $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>'true');
} elseif (preg_match('~^false$~i', $this->yystack[$this->yyidx + 0]->minor)) { } elseif (preg_match('~^false$~i', $this->yystack[$this->yyidx + 0]->minor)) {
@@ -2411,86 +2409,86 @@ static public $yy_action = array(
$this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>'null'); $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>'null');
} else } else
$this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>"'".$this->yystack[$this->yyidx + 0]->minor."'"); } $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>"'".$this->yystack[$this->yyidx + 0]->minor."'"); }
#line 2410 "smarty_internal_templateparser.php" #line 2408 "smarty_internal_templateparser.php"
#line 318 "smarty_internal_templateparser.y" #line 316 "smarty_internal_templateparser.y"
function yy_r63(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } function yy_r63(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2413 "smarty_internal_templateparser.php" #line 2411 "smarty_internal_templateparser.php"
#line 320 "smarty_internal_templateparser.y" #line 318 "smarty_internal_templateparser.y"
function yy_r65(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + 0]->minor."'"; } function yy_r65(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + 0]->minor."'"; }
#line 2416 "smarty_internal_templateparser.php" #line 2414 "smarty_internal_templateparser.php"
#line 323 "smarty_internal_templateparser.y" #line 321 "smarty_internal_templateparser.y"
function yy_r68(){$this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } function yy_r68(){$this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2419 "smarty_internal_templateparser.php" #line 2417 "smarty_internal_templateparser.php"
#line 330 "smarty_internal_templateparser.y" #line 328 "smarty_internal_templateparser.y"
function yy_r70(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; } function yy_r70(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
#line 2422 "smarty_internal_templateparser.php" #line 2420 "smarty_internal_templateparser.php"
#line 332 "smarty_internal_templateparser.y" #line 330 "smarty_internal_templateparser.y"
function yy_r71(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); } function yy_r71(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2425 "smarty_internal_templateparser.php" #line 2423 "smarty_internal_templateparser.php"
#line 334 "smarty_internal_templateparser.y" #line 332 "smarty_internal_templateparser.y"
function yy_r73(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; } function yy_r73(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; }
#line 2428 "smarty_internal_templateparser.php" #line 2426 "smarty_internal_templateparser.php"
#line 345 "smarty_internal_templateparser.y" #line 343 "smarty_internal_templateparser.y"
function yy_r76(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; } function yy_r76(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; }
#line 2431 "smarty_internal_templateparser.php" #line 2429 "smarty_internal_templateparser.php"
#line 347 "smarty_internal_templateparser.y" #line 345 "smarty_internal_templateparser.y"
function yy_r77(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . trim($this->yystack[$this->yyidx + -1]->minor) . $this->yystack[$this->yyidx + 0]->minor; } function yy_r77(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . trim($this->yystack[$this->yyidx + -1]->minor) . $this->yystack[$this->yyidx + 0]->minor; }
#line 2434 "smarty_internal_templateparser.php" #line 2432 "smarty_internal_templateparser.php"
#line 353 "smarty_internal_templateparser.y" #line 351 "smarty_internal_templateparser.y"
function yy_r80(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } function yy_r80(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2437 "smarty_internal_templateparser.php" #line 2435 "smarty_internal_templateparser.php"
#line 356 "smarty_internal_templateparser.y" #line 354 "smarty_internal_templateparser.y"
function yy_r81(){ $this->_retvalue = $this->compiler->compileTag('private_modifier',array(),array('value'=>$this->yystack[$this->yyidx + -1]->minor,'modifierlist'=>$this->yystack[$this->yyidx + 0]->minor)); } function yy_r81(){ $this->_retvalue = $this->compiler->compileTag('private_modifier',array(),array('value'=>$this->yystack[$this->yyidx + -1]->minor,'modifierlist'=>$this->yystack[$this->yyidx + 0]->minor)); }
#line 2440 "smarty_internal_templateparser.php" #line 2438 "smarty_internal_templateparser.php"
#line 360 "smarty_internal_templateparser.y" #line 358 "smarty_internal_templateparser.y"
function yy_r82(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } function yy_r82(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2443 "smarty_internal_templateparser.php" #line 2441 "smarty_internal_templateparser.php"
#line 361 "smarty_internal_templateparser.y" #line 359 "smarty_internal_templateparser.y"
function yy_r83(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; } function yy_r83(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2446 "smarty_internal_templateparser.php" #line 2444 "smarty_internal_templateparser.php"
#line 362 "smarty_internal_templateparser.y" #line 360 "smarty_internal_templateparser.y"
function yy_r84(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; } function yy_r84(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2449 "smarty_internal_templateparser.php" #line 2447 "smarty_internal_templateparser.php"
#line 364 "smarty_internal_templateparser.y" #line 362 "smarty_internal_templateparser.y"
function yy_r86(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } function yy_r86(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2452 "smarty_internal_templateparser.php" #line 2450 "smarty_internal_templateparser.php"
#line 365 "smarty_internal_templateparser.y" #line 363 "smarty_internal_templateparser.y"
function yy_r87(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } function yy_r87(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2455 "smarty_internal_templateparser.php" #line 2453 "smarty_internal_templateparser.php"
#line 366 "smarty_internal_templateparser.y" #line 364 "smarty_internal_templateparser.y"
function yy_r88(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } function yy_r88(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2458 "smarty_internal_templateparser.php" #line 2456 "smarty_internal_templateparser.php"
#line 367 "smarty_internal_templateparser.y" #line 365 "smarty_internal_templateparser.y"
function yy_r89(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } function yy_r89(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2461 "smarty_internal_templateparser.php" #line 2459 "smarty_internal_templateparser.php"
#line 368 "smarty_internal_templateparser.y" #line 366 "smarty_internal_templateparser.y"
function yy_r90(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } function yy_r90(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2464 "smarty_internal_templateparser.php" #line 2462 "smarty_internal_templateparser.php"
#line 369 "smarty_internal_templateparser.y" #line 367 "smarty_internal_templateparser.y"
function yy_r91(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } function yy_r91(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2467 "smarty_internal_templateparser.php" #line 2465 "smarty_internal_templateparser.php"
#line 375 "smarty_internal_templateparser.y" #line 373 "smarty_internal_templateparser.y"
function yy_r97(){$this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number; } function yy_r97(){$this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number; }
#line 2470 "smarty_internal_templateparser.php" #line 2468 "smarty_internal_templateparser.php"
#line 381 "smarty_internal_templateparser.y" #line 379 "smarty_internal_templateparser.y"
function yy_r98(){ $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.' ? $_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'\')->value : '.$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable('$this->yystack[$this->yyidx + -2]->minor', null, true, false)->nocache; } function yy_r98(){ $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.' ? $_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'\')->value : '.$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable('$this->yystack[$this->yyidx + -2]->minor', null, true, false)->nocache; }
#line 2473 "smarty_internal_templateparser.php" #line 2471 "smarty_internal_templateparser.php"
#line 382 "smarty_internal_templateparser.y" #line 380 "smarty_internal_templateparser.y"
function yy_r99(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; } function yy_r99(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; }
#line 2476 "smarty_internal_templateparser.php" #line 2474 "smarty_internal_templateparser.php"
#line 389 "smarty_internal_templateparser.y" #line 387 "smarty_internal_templateparser.y"
function yy_r102(){ $this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; } function yy_r102(){ $this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2479 "smarty_internal_templateparser.php" #line 2477 "smarty_internal_templateparser.php"
#line 395 "smarty_internal_templateparser.y" #line 393 "smarty_internal_templateparser.y"
function yy_r107(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } function yy_r107(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2482 "smarty_internal_templateparser.php" #line 2480 "smarty_internal_templateparser.php"
#line 396 "smarty_internal_templateparser.y" #line 394 "smarty_internal_templateparser.y"
function yy_r108(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'; } function yy_r108(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'; }
#line 2485 "smarty_internal_templateparser.php" #line 2483 "smarty_internal_templateparser.php"
#line 397 "smarty_internal_templateparser.y" #line 395 "smarty_internal_templateparser.y"
function yy_r109(){ $this->_retvalue = '.'.$this->yystack[$this->yyidx + 0]->minor; } function yy_r109(){ $this->_retvalue = '.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2488 "smarty_internal_templateparser.php" #line 2486 "smarty_internal_templateparser.php"
#line 399 "smarty_internal_templateparser.y" #line 397 "smarty_internal_templateparser.y"
function yy_r110(){ if (preg_match('~^true$~i', $this->yystack[$this->yyidx + 0]->minor)) { function yy_r110(){ if (preg_match('~^true$~i', $this->yystack[$this->yyidx + 0]->minor)) {
$this->_retvalue = 'true'; $this->_retvalue = 'true';
} elseif (preg_match('~^false$~i', $this->yystack[$this->yyidx + 0]->minor)) { } elseif (preg_match('~^false$~i', $this->yystack[$this->yyidx + 0]->minor)) {
@@ -2499,11 +2497,11 @@ static public $yy_action = array(
$this->_retvalue = 'null'; $this->_retvalue = 'null';
} else } else
$this->_retvalue = "'".$this->yystack[$this->yyidx + 0]->minor."'"; } $this->_retvalue = "'".$this->yystack[$this->yyidx + 0]->minor."'"; }
#line 2498 "smarty_internal_templateparser.php" #line 2496 "smarty_internal_templateparser.php"
#line 410 "smarty_internal_templateparser.y" #line 408 "smarty_internal_templateparser.y"
function yy_r112(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; } function yy_r112(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2501 "smarty_internal_templateparser.php" #line 2499 "smarty_internal_templateparser.php"
#line 416 "smarty_internal_templateparser.y" #line 414 "smarty_internal_templateparser.y"
function yy_r115(){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)) { function yy_r115(){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])) { 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; $this->_retvalue = $this->smarty->registered_classes[$this->yystack[$this->yyidx + -2]->minor].'::'.$this->yystack[$this->yyidx + 0]->minor;
@@ -2514,15 +2512,15 @@ static public $yy_action = array(
$this->compiler->trigger_template_error ("static class '".$this->yystack[$this->yyidx + -2]->minor."' is undefined or not allowed by security setting"); $this->compiler->trigger_template_error ("static class '".$this->yystack[$this->yyidx + -2]->minor."' is undefined or not allowed by security setting");
} }
} }
#line 2513 "smarty_internal_templateparser.php" #line 2511 "smarty_internal_templateparser.php"
#line 426 "smarty_internal_templateparser.y" #line 424 "smarty_internal_templateparser.y"
function yy_r116(){ 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 { function yy_r116(){ 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 = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -2]->minor['smarty_internal_index'].'::'.$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor['var'],"'"), null, true, false)->nocache;} } $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -2]->minor['smarty_internal_index'].'::'.$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor['var'],"'"), null, true, false)->nocache;} }
#line 2517 "smarty_internal_templateparser.php" #line 2515 "smarty_internal_templateparser.php"
#line 429 "smarty_internal_templateparser.y" #line 427 "smarty_internal_templateparser.y"
function yy_r117(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + 0]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; } function yy_r117(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + 0]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; }
#line 2520 "smarty_internal_templateparser.php" #line 2518 "smarty_internal_templateparser.php"
#line 439 "smarty_internal_templateparser.y" #line 437 "smarty_internal_templateparser.y"
function yy_r119(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { function yy_r119(){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']); $smarty_var = $this->compiler->compileTag('private_special_variable',array(),$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']);
$this->_retvalue = $smarty_var; $this->_retvalue = $smarty_var;
@@ -2538,105 +2536,105 @@ static public $yy_action = array(
$this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"), null, true, false)->nocache; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"), null, true, false)->nocache;
} }
} }
#line 2537 "smarty_internal_templateparser.php" #line 2535 "smarty_internal_templateparser.php"
#line 455 "smarty_internal_templateparser.y" #line 453 "smarty_internal_templateparser.y"
function yy_r120(){if (isset($this->compiler->local_var[$this->yystack[$this->yyidx + -2]->minor])) { function yy_r120(){if (isset($this->compiler->local_var[$this->yystack[$this->yyidx + -2]->minor])) {
$this->_retvalue = '$_smarty_tpl->tpl_vars['. $this->yystack[$this->yyidx + -2]->minor .']->'.$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = '$_smarty_tpl->tpl_vars['. $this->yystack[$this->yyidx + -2]->minor .']->'.$this->yystack[$this->yyidx + 0]->minor;
} else { } else {
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor;
} }
$this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"), null, true, false)->nocache; } $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"), null, true, false)->nocache; }
#line 2545 "smarty_internal_templateparser.php" #line 2543 "smarty_internal_templateparser.php"
#line 464 "smarty_internal_templateparser.y" #line 462 "smarty_internal_templateparser.y"
function yy_r122(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; } function yy_r122(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
#line 2548 "smarty_internal_templateparser.php" #line 2546 "smarty_internal_templateparser.php"
#line 465 "smarty_internal_templateparser.y" #line 463 "smarty_internal_templateparser.y"
function yy_r123(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; } function yy_r123(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }
#line 2551 "smarty_internal_templateparser.php" #line 2549 "smarty_internal_templateparser.php"
#line 468 "smarty_internal_templateparser.y" #line 466 "smarty_internal_templateparser.y"
function yy_r124(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'smarty_internal_index'=>$this->yystack[$this->yyidx + 0]->minor); } function yy_r124(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'smarty_internal_index'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2554 "smarty_internal_templateparser.php" #line 2552 "smarty_internal_templateparser.php"
#line 474 "smarty_internal_templateparser.y" #line 472 "smarty_internal_templateparser.y"
function yy_r125(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } function yy_r125(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2557 "smarty_internal_templateparser.php" #line 2555 "smarty_internal_templateparser.php"
#line 476 "smarty_internal_templateparser.y" #line 474 "smarty_internal_templateparser.y"
function yy_r126(){return; } function yy_r126(){return; }
#line 2560 "smarty_internal_templateparser.php" #line 2558 "smarty_internal_templateparser.php"
#line 480 "smarty_internal_templateparser.y" #line 478 "smarty_internal_templateparser.y"
function yy_r127(){ $this->_retvalue = '[$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor .')->value]'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable('$this->yystack[$this->yyidx + 0]->minor', null, true, false)->nocache; } function yy_r127(){ $this->_retvalue = '[$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor .')->value]'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable('$this->yystack[$this->yyidx + 0]->minor', null, true, false)->nocache; }
#line 2563 "smarty_internal_templateparser.php" #line 2561 "smarty_internal_templateparser.php"
#line 481 "smarty_internal_templateparser.y" #line 479 "smarty_internal_templateparser.y"
function yy_r128(){ $this->_retvalue = '[$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor.']'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"), null, true, false)->nocache; } function yy_r128(){ $this->_retvalue = '[$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor.']'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"), null, true, false)->nocache; }
#line 2566 "smarty_internal_templateparser.php" #line 2564 "smarty_internal_templateparser.php"
#line 482 "smarty_internal_templateparser.y" #line 480 "smarty_internal_templateparser.y"
function yy_r129(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; } function yy_r129(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
#line 2569 "smarty_internal_templateparser.php" #line 2567 "smarty_internal_templateparser.php"
#line 483 "smarty_internal_templateparser.y" #line 481 "smarty_internal_templateparser.y"
function yy_r130(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; } function yy_r130(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
#line 2572 "smarty_internal_templateparser.php" #line 2570 "smarty_internal_templateparser.php"
#line 484 "smarty_internal_templateparser.y" #line 482 "smarty_internal_templateparser.y"
function yy_r131(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; } function yy_r131(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
#line 2575 "smarty_internal_templateparser.php" #line 2573 "smarty_internal_templateparser.php"
#line 486 "smarty_internal_templateparser.y" #line 484 "smarty_internal_templateparser.y"
function yy_r132(){ $this->_retvalue = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; } function yy_r132(){ $this->_retvalue = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
#line 2578 "smarty_internal_templateparser.php" #line 2576 "smarty_internal_templateparser.php"
#line 487 "smarty_internal_templateparser.y" #line 485 "smarty_internal_templateparser.y"
function yy_r133(){ $this->_retvalue = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; } function yy_r133(){ $this->_retvalue = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; }
#line 2581 "smarty_internal_templateparser.php" #line 2579 "smarty_internal_templateparser.php"
#line 491 "smarty_internal_templateparser.y" #line 489 "smarty_internal_templateparser.y"
function yy_r135(){$this->_retvalue = '[]'; } function yy_r135(){$this->_retvalue = '[]'; }
#line 2584 "smarty_internal_templateparser.php" #line 2582 "smarty_internal_templateparser.php"
#line 499 "smarty_internal_templateparser.y" #line 497 "smarty_internal_templateparser.y"
function yy_r137(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } function yy_r137(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2587 "smarty_internal_templateparser.php" #line 2585 "smarty_internal_templateparser.php"
#line 501 "smarty_internal_templateparser.y" #line 499 "smarty_internal_templateparser.y"
function yy_r138(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } function yy_r138(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2590 "smarty_internal_templateparser.php" #line 2588 "smarty_internal_templateparser.php"
#line 503 "smarty_internal_templateparser.y" #line 501 "smarty_internal_templateparser.y"
function yy_r139(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; } function yy_r139(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2593 "smarty_internal_templateparser.php" #line 2591 "smarty_internal_templateparser.php"
#line 508 "smarty_internal_templateparser.y" #line 506 "smarty_internal_templateparser.y"
function yy_r140(){ 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 { function yy_r140(){ 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 = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index'].$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"), null, true, false)->nocache;} } $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index'].$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"), null, true, false)->nocache;} }
#line 2597 "smarty_internal_templateparser.php" #line 2595 "smarty_internal_templateparser.php"
#line 511 "smarty_internal_templateparser.y" #line 509 "smarty_internal_templateparser.y"
function yy_r141(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } function yy_r141(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2600 "smarty_internal_templateparser.php" #line 2598 "smarty_internal_templateparser.php"
#line 513 "smarty_internal_templateparser.y" #line 511 "smarty_internal_templateparser.y"
function yy_r142(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } function yy_r142(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2603 "smarty_internal_templateparser.php" #line 2601 "smarty_internal_templateparser.php"
#line 515 "smarty_internal_templateparser.y" #line 513 "smarty_internal_templateparser.y"
function yy_r143(){if ($this->security && substr($this->yystack[$this->yyidx + -1]->minor,0,1) == '_') { function yy_r143(){if ($this->security && substr($this->yystack[$this->yyidx + -1]->minor,0,1) == '_') {
$this->compiler->trigger_template_error (self::Err1); $this->compiler->trigger_template_error (self::Err1);
} }
$this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;
} }
#line 2610 "smarty_internal_templateparser.php" #line 2608 "smarty_internal_templateparser.php"
#line 520 "smarty_internal_templateparser.y" #line 518 "smarty_internal_templateparser.y"
function yy_r144(){if ($this->security) { function yy_r144(){if ($this->security) {
$this->compiler->trigger_template_error (self::Err2); $this->compiler->trigger_template_error (self::Err2);
} }
$this->_retvalue = '->{$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor .')->value'.$this->yystack[$this->yyidx + 0]->minor.'}'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor,"'"), null, true, false)->nocache; $this->_retvalue = '->{$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor .')->value'.$this->yystack[$this->yyidx + 0]->minor.'}'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor,"'"), null, true, false)->nocache;
} }
#line 2617 "smarty_internal_templateparser.php" #line 2615 "smarty_internal_templateparser.php"
#line 525 "smarty_internal_templateparser.y" #line 523 "smarty_internal_templateparser.y"
function yy_r145(){if ($this->security) { function yy_r145(){if ($this->security) {
$this->compiler->trigger_template_error (self::Err2); $this->compiler->trigger_template_error (self::Err2);
} }
$this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}';
} }
#line 2624 "smarty_internal_templateparser.php" #line 2622 "smarty_internal_templateparser.php"
#line 530 "smarty_internal_templateparser.y" #line 528 "smarty_internal_templateparser.y"
function yy_r146(){if ($this->security) { function yy_r146(){if ($this->security) {
$this->compiler->trigger_template_error (self::Err2); $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.'}'; $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}';
} }
#line 2631 "smarty_internal_templateparser.php" #line 2629 "smarty_internal_templateparser.php"
#line 536 "smarty_internal_templateparser.y" #line 534 "smarty_internal_templateparser.y"
function yy_r147(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; } function yy_r147(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2634 "smarty_internal_templateparser.php" #line 2632 "smarty_internal_templateparser.php"
#line 542 "smarty_internal_templateparser.y" #line 540 "smarty_internal_templateparser.y"
function yy_r148(){if (!$this->security || $this->smarty->security_policy->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) { function yy_r148(){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)) { 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); $func_name = strtolower($this->yystack[$this->yyidx + -3]->minor);
@@ -2663,115 +2661,115 @@ static public $yy_action = array(
} }
} }
} }
#line 2662 "smarty_internal_templateparser.php" #line 2660 "smarty_internal_templateparser.php"
#line 572 "smarty_internal_templateparser.y" #line 570 "smarty_internal_templateparser.y"
function yy_r149(){if ($this->security && substr($this->yystack[$this->yyidx + -3]->minor,0,1) == '_') { function yy_r149(){if ($this->security && substr($this->yystack[$this->yyidx + -3]->minor,0,1) == '_') {
$this->compiler->trigger_template_error (self::Err1); $this->compiler->trigger_template_error (self::Err1);
} }
$this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". implode(',',$this->yystack[$this->yyidx + -1]->minor) .")"; $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". implode(',',$this->yystack[$this->yyidx + -1]->minor) .")";
} }
#line 2669 "smarty_internal_templateparser.php" #line 2667 "smarty_internal_templateparser.php"
#line 577 "smarty_internal_templateparser.y" #line 575 "smarty_internal_templateparser.y"
function yy_r150(){if ($this->security) { function yy_r150(){if ($this->security) {
$this->compiler->trigger_template_error (self::Err2); $this->compiler->trigger_template_error (self::Err2);
} }
$this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = '$_tmp'.$this->prefix_number.'('. implode(',',$this->yystack[$this->yyidx + -1]->minor) .')'; $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = '$_tmp'.$this->prefix_number.'('. implode(',',$this->yystack[$this->yyidx + -1]->minor) .')';
} }
#line 2676 "smarty_internal_templateparser.php" #line 2674 "smarty_internal_templateparser.php"
#line 585 "smarty_internal_templateparser.y" #line 583 "smarty_internal_templateparser.y"
function yy_r151(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -2]->minor,array($this->yystack[$this->yyidx + 0]->minor)); } function yy_r151(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -2]->minor,array($this->yystack[$this->yyidx + 0]->minor)); }
#line 2679 "smarty_internal_templateparser.php" #line 2677 "smarty_internal_templateparser.php"
#line 594 "smarty_internal_templateparser.y" #line 592 "smarty_internal_templateparser.y"
function yy_r154(){$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))); } function yy_r154(){$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 2682 "smarty_internal_templateparser.php" #line 2680 "smarty_internal_templateparser.php"
#line 595 "smarty_internal_templateparser.y" #line 593 "smarty_internal_templateparser.y"
function yy_r155(){$this->_retvalue = array(array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor)); } function yy_r155(){$this->_retvalue = array(array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor)); }
#line 2685 "smarty_internal_templateparser.php" #line 2683 "smarty_internal_templateparser.php"
#line 598 "smarty_internal_templateparser.y" #line 596 "smarty_internal_templateparser.y"
function yy_r157(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } function yy_r157(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
#line 2688 "smarty_internal_templateparser.php" #line 2686 "smarty_internal_templateparser.php"
#line 603 "smarty_internal_templateparser.y" #line 601 "smarty_internal_templateparser.y"
function yy_r158(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } function yy_r158(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
#line 2691 "smarty_internal_templateparser.php" #line 2689 "smarty_internal_templateparser.php"
#line 605 "smarty_internal_templateparser.y" #line 603 "smarty_internal_templateparser.y"
function yy_r159(){$this->_retvalue = array(); } function yy_r159(){$this->_retvalue = array(); }
#line 2694 "smarty_internal_templateparser.php" #line 2692 "smarty_internal_templateparser.php"
#line 607 "smarty_internal_templateparser.y" #line 605 "smarty_internal_templateparser.y"
function yy_r160(){$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } function yy_r160(){$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
#line 2697 "smarty_internal_templateparser.php" #line 2695 "smarty_internal_templateparser.php"
#line 617 "smarty_internal_templateparser.y" #line 615 "smarty_internal_templateparser.y"
function yy_r165(){ $this->_retvalue = '$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } function yy_r165(){ $this->_retvalue = '$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2700 "smarty_internal_templateparser.php" #line 2698 "smarty_internal_templateparser.php"
#line 619 "smarty_internal_templateparser.y" #line 617 "smarty_internal_templateparser.y"
function yy_r166(){ $this->_retvalue = '$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } function yy_r166(){ $this->_retvalue = '$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2703 "smarty_internal_templateparser.php" #line 2701 "smarty_internal_templateparser.php"
#line 628 "smarty_internal_templateparser.y" #line 626 "smarty_internal_templateparser.y"
function yy_r167(){$this->_retvalue = '=='; } function yy_r167(){$this->_retvalue = '=='; }
#line 2706 "smarty_internal_templateparser.php" #line 2704 "smarty_internal_templateparser.php"
#line 629 "smarty_internal_templateparser.y" #line 627 "smarty_internal_templateparser.y"
function yy_r168(){$this->_retvalue = '!='; } function yy_r168(){$this->_retvalue = '!='; }
#line 2709 "smarty_internal_templateparser.php" #line 2707 "smarty_internal_templateparser.php"
#line 630 "smarty_internal_templateparser.y" #line 628 "smarty_internal_templateparser.y"
function yy_r169(){$this->_retvalue = '>'; } function yy_r169(){$this->_retvalue = '>'; }
#line 2712 "smarty_internal_templateparser.php" #line 2710 "smarty_internal_templateparser.php"
#line 631 "smarty_internal_templateparser.y" #line 629 "smarty_internal_templateparser.y"
function yy_r170(){$this->_retvalue = '<'; } function yy_r170(){$this->_retvalue = '<'; }
#line 2715 "smarty_internal_templateparser.php" #line 2713 "smarty_internal_templateparser.php"
#line 632 "smarty_internal_templateparser.y" #line 630 "smarty_internal_templateparser.y"
function yy_r171(){$this->_retvalue = '>='; } function yy_r171(){$this->_retvalue = '>='; }
#line 2718 "smarty_internal_templateparser.php" #line 2716 "smarty_internal_templateparser.php"
#line 633 "smarty_internal_templateparser.y" #line 631 "smarty_internal_templateparser.y"
function yy_r172(){$this->_retvalue = '<='; } function yy_r172(){$this->_retvalue = '<='; }
#line 2721 "smarty_internal_templateparser.php" #line 2719 "smarty_internal_templateparser.php"
#line 634 "smarty_internal_templateparser.y" #line 632 "smarty_internal_templateparser.y"
function yy_r173(){$this->_retvalue = '==='; } function yy_r173(){$this->_retvalue = '==='; }
#line 2724 "smarty_internal_templateparser.php" #line 2722 "smarty_internal_templateparser.php"
#line 635 "smarty_internal_templateparser.y" #line 633 "smarty_internal_templateparser.y"
function yy_r174(){$this->_retvalue = '!=='; } function yy_r174(){$this->_retvalue = '!=='; }
#line 2727 "smarty_internal_templateparser.php" #line 2725 "smarty_internal_templateparser.php"
#line 636 "smarty_internal_templateparser.y" #line 634 "smarty_internal_templateparser.y"
function yy_r175(){$this->_retvalue = '%'; } function yy_r175(){$this->_retvalue = '%'; }
#line 2730 "smarty_internal_templateparser.php" #line 2728 "smarty_internal_templateparser.php"
#line 638 "smarty_internal_templateparser.y" #line 636 "smarty_internal_templateparser.y"
function yy_r176(){$this->_retvalue = '&&'; } function yy_r176(){$this->_retvalue = '&&'; }
#line 2733 "smarty_internal_templateparser.php" #line 2731 "smarty_internal_templateparser.php"
#line 639 "smarty_internal_templateparser.y" #line 637 "smarty_internal_templateparser.y"
function yy_r177(){$this->_retvalue = '||'; } function yy_r177(){$this->_retvalue = '||'; }
#line 2736 "smarty_internal_templateparser.php" #line 2734 "smarty_internal_templateparser.php"
#line 640 "smarty_internal_templateparser.y" #line 638 "smarty_internal_templateparser.y"
function yy_r178(){$this->_retvalue = ' XOR '; } function yy_r178(){$this->_retvalue = ' XOR '; }
#line 2739 "smarty_internal_templateparser.php" #line 2737 "smarty_internal_templateparser.php"
#line 645 "smarty_internal_templateparser.y" #line 643 "smarty_internal_templateparser.y"
function yy_r179(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; } function yy_r179(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2742 "smarty_internal_templateparser.php" #line 2740 "smarty_internal_templateparser.php"
#line 647 "smarty_internal_templateparser.y" #line 645 "smarty_internal_templateparser.y"
function yy_r181(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; } function yy_r181(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2745 "smarty_internal_templateparser.php" #line 2743 "smarty_internal_templateparser.php"
#line 648 "smarty_internal_templateparser.y" #line 646 "smarty_internal_templateparser.y"
function yy_r182(){ return; } function yy_r182(){ return; }
#line 2748 "smarty_internal_templateparser.php" #line 2746 "smarty_internal_templateparser.php"
#line 649 "smarty_internal_templateparser.y" #line 647 "smarty_internal_templateparser.y"
function yy_r183(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; } function yy_r183(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2751 "smarty_internal_templateparser.php" #line 2749 "smarty_internal_templateparser.php"
#line 650 "smarty_internal_templateparser.y" #line 648 "smarty_internal_templateparser.y"
function yy_r184(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; } function yy_r184(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2754 "smarty_internal_templateparser.php" #line 2752 "smarty_internal_templateparser.php"
#line 657 "smarty_internal_templateparser.y" #line 655 "smarty_internal_templateparser.y"
function yy_r186(){ $this->_retvalue = "''"; } function yy_r186(){ $this->_retvalue = "''"; }
#line 2757 "smarty_internal_templateparser.php" #line 2755 "smarty_internal_templateparser.php"
#line 658 "smarty_internal_templateparser.y" #line 656 "smarty_internal_templateparser.y"
function yy_r187(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor->to_smarty_php(); } function yy_r187(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor->to_smarty_php(); }
#line 2760 "smarty_internal_templateparser.php" #line 2758 "smarty_internal_templateparser.php"
#line 660 "smarty_internal_templateparser.y" #line 658 "smarty_internal_templateparser.y"
function yy_r188(){ $this->yystack[$this->yyidx + -1]->minor->append_subtree($this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; } function yy_r188(){ $this->yystack[$this->yyidx + -1]->minor->append_subtree($this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; }
#line 2763 "smarty_internal_templateparser.php" #line 2761 "smarty_internal_templateparser.php"
#line 661 "smarty_internal_templateparser.y" #line 659 "smarty_internal_templateparser.y"
function yy_r189(){ $this->_retvalue = new _smarty_doublequoted($this, $this->yystack[$this->yyidx + 0]->minor); } function yy_r189(){ $this->_retvalue = new _smarty_doublequoted($this, $this->yystack[$this->yyidx + 0]->minor); }
#line 2766 "smarty_internal_templateparser.php" #line 2764 "smarty_internal_templateparser.php"
#line 663 "smarty_internal_templateparser.y" #line 661 "smarty_internal_templateparser.y"
function yy_r190(){ $this->_retvalue = new _smarty_code($this, $this->yystack[$this->yyidx + -1]->minor); } function yy_r190(){ $this->_retvalue = new _smarty_code($this, $this->yystack[$this->yyidx + -1]->minor); }
#line 2769 "smarty_internal_templateparser.php" #line 2767 "smarty_internal_templateparser.php"
#line 665 "smarty_internal_templateparser.y" #line 663 "smarty_internal_templateparser.y"
function yy_r192(){if (isset($this->compiler->local_var["'".substr($this->yystack[$this->yyidx + 0]->minor,1)."'"])) { function yy_r192(){if (isset($this->compiler->local_var["'".substr($this->yystack[$this->yyidx + 0]->minor,1)."'"])) {
$this->_retvalue = new _smarty_code($this, '$_smarty_tpl->tpl_vars[\''. substr($this->yystack[$this->yyidx + 0]->minor,1) .'\']->value'); $this->_retvalue = new _smarty_code($this, '$_smarty_tpl->tpl_vars[\''. substr($this->yystack[$this->yyidx + 0]->minor,1) .'\']->value');
} else { } else {
@@ -2779,21 +2777,21 @@ static public $yy_action = array(
} }
$this->compiler->tag_nocache = $this->compiler->tag_nocache | $this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"), null, true, false)->nocache; $this->compiler->tag_nocache = $this->compiler->tag_nocache | $this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"), null, true, false)->nocache;
} }
#line 2778 "smarty_internal_templateparser.php" #line 2776 "smarty_internal_templateparser.php"
#line 673 "smarty_internal_templateparser.y" #line 671 "smarty_internal_templateparser.y"
function yy_r194(){ $this->_retvalue = new _smarty_code($this, '('.$this->yystack[$this->yyidx + -1]->minor.')'); } function yy_r194(){ $this->_retvalue = new _smarty_code($this, '('.$this->yystack[$this->yyidx + -1]->minor.')'); }
#line 2781 "smarty_internal_templateparser.php" #line 2779 "smarty_internal_templateparser.php"
#line 674 "smarty_internal_templateparser.y" #line 672 "smarty_internal_templateparser.y"
function yy_r195(){ function yy_r195(){
$this->_retvalue = new _smarty_tag($this, $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = new _smarty_tag($this, $this->yystack[$this->yyidx + 0]->minor);
} }
#line 2786 "smarty_internal_templateparser.php" #line 2784 "smarty_internal_templateparser.php"
#line 677 "smarty_internal_templateparser.y" #line 675 "smarty_internal_templateparser.y"
function yy_r196(){ $this->_retvalue = new _smarty_dq_content($this, $this->yystack[$this->yyidx + 0]->minor); } function yy_r196(){ $this->_retvalue = new _smarty_dq_content($this, $this->yystack[$this->yyidx + 0]->minor); }
#line 2789 "smarty_internal_templateparser.php" #line 2787 "smarty_internal_templateparser.php"
#line 684 "smarty_internal_templateparser.y" #line 682 "smarty_internal_templateparser.y"
function yy_r198(){$this->_retvalue = ''; } function yy_r198(){$this->_retvalue = ''; }
#line 2792 "smarty_internal_templateparser.php" #line 2790 "smarty_internal_templateparser.php"
private $_retvalue; private $_retvalue;
@@ -2850,12 +2848,12 @@ static public $yy_action = array(
function yy_syntax_error($yymajor, $TOKEN) function yy_syntax_error($yymajor, $TOKEN)
{ {
#line 68 "smarty_internal_templateparser.y" #line 66 "smarty_internal_templateparser.y"
$this->internalError = true; $this->internalError = true;
$this->yymajor = $yymajor; $this->yymajor = $yymajor;
$this->compiler->trigger_template_error(); $this->compiler->trigger_template_error();
#line 2855 "smarty_internal_templateparser.php" #line 2853 "smarty_internal_templateparser.php"
} }
function yy_accept() function yy_accept()
@@ -2866,13 +2864,13 @@ static public $yy_action = array(
while ($this->yyidx >= 0) { while ($this->yyidx >= 0) {
$stack = $this->yy_pop_parser_stack(); $stack = $this->yy_pop_parser_stack();
} }
#line 60 "smarty_internal_templateparser.y" #line 58 "smarty_internal_templateparser.y"
$this->successful = !$this->internalError; $this->successful = !$this->internalError;
$this->internalError = false; $this->internalError = false;
$this->retvalue = $this->_retvalue; $this->retvalue = $this->_retvalue;
//echo $this->retvalue."\n\n"; //echo $this->retvalue."\n\n";
#line 2873 "smarty_internal_templateparser.php" #line 2871 "smarty_internal_templateparser.php"
} }
function doParse($yymajor, $yytokenvalue) function doParse($yymajor, $yytokenvalue)