diff --git a/change_log.txt b/change_log.txt index d0f7bc88..7460697f 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +10/19/2009 +- fixed modifier support on block tags + 10/17/2009 - remove ?>\n 75, 'rhs' => 6 ), array( 'lhs' => 75, 'rhs' => 6 ), array( 'lhs' => 76, 'rhs' => 2 ), + array( 'lhs' => 76, 'rhs' => 4 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 79, 'rhs' => 2 ), array( 'lhs' => 79, 'rhs' => 1 ), @@ -1796,31 +1798,31 @@ static public $yy_action = array( */ static public $yyReduceMap = array( 0 => 0, - 44 => 0, - 53 => 0, + 45 => 0, 54 => 0, - 56 => 0, + 55 => 0, 57 => 0, 58 => 0, - 74 => 0, - 143 => 0, + 59 => 0, + 75 => 0, + 144 => 0, 1 => 1, - 41 => 1, - 47 => 1, - 50 => 1, + 42 => 1, + 48 => 1, 51 => 1, - 88 => 1, - 111 => 1, - 150 => 1, - 159 => 1, - 161 => 1, + 52 => 1, + 89 => 1, + 112 => 1, + 151 => 1, + 160 => 1, 162 => 1, 163 => 1, + 164 => 1, 2 => 2, - 78 => 2, - 149 => 2, - 157 => 2, - 160 => 2, + 79 => 2, + 150 => 2, + 158 => 2, + 161 => 2, 3 => 3, 4 => 3, 5 => 5, @@ -1845,36 +1847,36 @@ static public $yy_action = array( 24 => 24, 25 => 25, 26 => 26, - 32 => 26, - 103 => 26, - 148 => 26, + 33 => 26, + 104 => 26, + 149 => 26, 27 => 27, 28 => 28, 29 => 29, 30 => 30, 31 => 31, - 33 => 33, + 32 => 32, 34 => 34, - 35 => 34, - 36 => 36, + 35 => 35, + 36 => 35, 37 => 37, 38 => 38, 39 => 39, 40 => 40, - 42 => 42, + 41 => 41, 43 => 43, - 45 => 45, + 44 => 44, 46 => 46, - 48 => 48, - 49 => 48, - 52 => 52, - 55 => 55, - 59 => 59, + 47 => 47, + 49 => 49, + 50 => 49, + 53 => 53, + 56 => 56, 60 => 60, 61 => 61, - 63 => 61, 62 => 62, - 64 => 64, + 64 => 62, + 63 => 63, 65 => 65, 66 => 66, 67 => 67, @@ -1884,24 +1886,24 @@ static public $yy_action = array( 71 => 71, 72 => 72, 73 => 73, - 75 => 75, + 74 => 74, 76 => 76, 77 => 77, - 79 => 79, - 108 => 79, + 78 => 78, 80 => 80, + 109 => 80, 81 => 81, 82 => 82, 83 => 83, - 86 => 83, 84 => 84, + 87 => 84, 85 => 85, - 87 => 87, - 89 => 89, + 86 => 86, + 88 => 88, 90 => 90, 91 => 91, - 113 => 91, 92 => 92, + 114 => 92, 93 => 93, 94 => 94, 95 => 95, @@ -1912,30 +1914,30 @@ static public $yy_action = array( 100 => 100, 101 => 101, 102 => 102, - 104 => 104, + 103 => 103, 105 => 105, 106 => 106, 107 => 107, - 109 => 109, + 108 => 108, 110 => 110, - 112 => 112, - 114 => 114, + 111 => 111, + 113 => 113, 115 => 115, - 118 => 115, - 129 => 115, 116 => 116, + 119 => 116, + 130 => 116, 117 => 117, - 119 => 119, + 118 => 118, 120 => 120, 121 => 121, - 126 => 121, 122 => 122, - 125 => 122, + 127 => 122, 123 => 123, - 128 => 123, + 126 => 123, 124 => 124, - 127 => 124, - 130 => 130, + 129 => 124, + 125 => 125, + 128 => 125, 131 => 131, 132 => 132, 133 => 133, @@ -1948,17 +1950,18 @@ static public $yy_action = array( 140 => 140, 141 => 141, 142 => 142, - 144 => 144, + 143 => 143, 145 => 145, 146 => 146, 147 => 147, - 151 => 151, + 148 => 148, 152 => 152, 153 => 153, 154 => 154, 155 => 155, 156 => 156, - 158 => 158, + 157 => 157, + 159 => 159, ); /* Beginning here are the reduction cases. A typical example ** follows: @@ -1968,32 +1971,32 @@ static public $yy_action = array( */ #line 79 "internal.templateparser.y" function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } -#line 1976 "internal.templateparser.php" +#line 1979 "internal.templateparser.php" #line 85 "internal.templateparser.y" function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } -#line 1979 "internal.templateparser.php" +#line 1982 "internal.templateparser.php" #line 87 "internal.templateparser.y" function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } -#line 1982 "internal.templateparser.php" +#line 1985 "internal.templateparser.php" #line 93 "internal.templateparser.y" function yy_r3(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); if ($this->compiler->has_code) { $tmp =''; foreach ($this->prefix_code as $code) {$tmp.=$code;} $this->prefix_code=array(); $this->_retvalue = $this->cacher->processNocacheCode($tmp.$s[0].$this->yystack[$this->yyidx + -1]->minor, $this->compiler,$this->nocache,true); } else { $this->_retvalue = $s[0].$this->yystack[$this->yyidx + -1]->minor;} $this->nocache=false; } -#line 1989 "internal.templateparser.php" +#line 1992 "internal.templateparser.php" #line 105 "internal.templateparser.y" function yy_r5(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0]; } -#line 1992 "internal.templateparser.php" +#line 1995 "internal.templateparser.php" #line 108 "internal.templateparser.y" function yy_r6(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s2); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->yystack[$this->yyidx + -1]->minor.$s2[0], $this->compiler,false,false); } -#line 1995 "internal.templateparser.php" +#line 1998 "internal.templateparser.php" #line 110 "internal.templateparser.y" function yy_r7(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false,false); } -#line 1998 "internal.templateparser.php" +#line 2001 "internal.templateparser.php" #line 112 "internal.templateparser.y" function yy_r8(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false,false); } -#line 2001 "internal.templateparser.php" +#line 2004 "internal.templateparser.php" #line 114 "internal.templateparser.y" function yy_r9(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) { $this->_retvalue = $this->cacher->processNocacheCode("yystack[$this->yyidx + -1]->minor)."?>';?>\n", $this->compiler, false, false); @@ -2005,7 +2008,7 @@ static public $yy_action = array( $this->_retvalue = ''; } } -#line 2013 "internal.templateparser.php" +#line 2016 "internal.templateparser.php" #line 125 "internal.templateparser.y" function yy_r10(){preg_match('/\s*/',$this->yystack[$this->yyidx + -3]->minor,$s); $this->_retvalue = $s[0]; if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU || $this->sec_obj->php_handling == SMARTY_PHP_ALLOW) { @@ -2016,28 +2019,28 @@ static public $yy_action = array( $this->_retvalue .= ''; } } -#line 2024 "internal.templateparser.php" +#line 2027 "internal.templateparser.php" #line 136 "internal.templateparser.y" function yy_r11(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode("", $this->compiler, true, true); } -#line 2027 "internal.templateparser.php" +#line 2030 "internal.templateparser.php" #line 137 "internal.templateparser.y" function yy_r12(){$this->_retvalue = $this->cacher->processNocacheCode("';?>\n", $this->compiler, true, true); } -#line 2030 "internal.templateparser.php" +#line 2033 "internal.templateparser.php" #line 139 "internal.templateparser.y" function yy_r13(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false,false); } -#line 2033 "internal.templateparser.php" +#line 2036 "internal.templateparser.php" #line 146 "internal.templateparser.y" function yy_r14(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); } -#line 2036 "internal.templateparser.php" +#line 2039 "internal.templateparser.php" #line 151 "internal.templateparser.y" function yy_r17(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor)); } -#line 2039 "internal.templateparser.php" +#line 2042 "internal.templateparser.php" #line 154 "internal.templateparser.y" function yy_r19(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } -#line 2042 "internal.templateparser.php" +#line 2045 "internal.templateparser.php" #line 156 "internal.templateparser.y" function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); } -#line 2045 "internal.templateparser.php" +#line 2048 "internal.templateparser.php" #line 158 "internal.templateparser.y" function yy_r21(){ $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor).'smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) { @@ -2052,81 +2055,96 @@ static public $yy_action = array( } } } -#line 2060 "internal.templateparser.php" +#line 2063 "internal.templateparser.php" #line 172 "internal.templateparser.y" function yy_r22(){if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); } -#line 2066 "internal.templateparser.php" +#line 2069 "internal.templateparser.php" #line 176 "internal.templateparser.y" function yy_r23(){ if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); } -#line 2072 "internal.templateparser.php" +#line 2075 "internal.templateparser.php" #line 181 "internal.templateparser.y" function yy_r24(){ if ($this->yystack[$this->yyidx + -8]->minor != 'for') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -8]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -8]->minor,array('start'=>$this->yystack[$this->yyidx + -6]->minor,'ifexp'=>$this->yystack[$this->yyidx + -4]->minor,'varloop'=>$this->yystack[$this->yyidx + -1]->minor,'loop'=>$this->yystack[$this->yyidx + 0]->minor)); } -#line 2079 "internal.templateparser.php" +#line 2082 "internal.templateparser.php" #line 186 "internal.templateparser.y" function yy_r25(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; } -#line 2082 "internal.templateparser.php" +#line 2085 "internal.templateparser.php" #line 187 "internal.templateparser.y" function yy_r26(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } -#line 2085 "internal.templateparser.php" +#line 2088 "internal.templateparser.php" #line 189 "internal.templateparser.y" function yy_r27(){ if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); } -#line 2092 "internal.templateparser.php" +#line 2095 "internal.templateparser.php" #line 194 "internal.templateparser.y" function yy_r28(){ if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); } -#line 2099 "internal.templateparser.php" +#line 2102 "internal.templateparser.php" #line 201 "internal.templateparser.y" function yy_r29(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',$this->yystack[$this->yyidx + 0]->minor); } -#line 2102 "internal.templateparser.php" -#line 203 "internal.templateparser.y" - function yy_r30(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2105 "internal.templateparser.php" -#line 210 "internal.templateparser.y" - function yy_r31(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } -#line 2108 "internal.templateparser.php" -#line 214 "internal.templateparser.y" - function yy_r33(){ $this->_retvalue = array(); } -#line 2111 "internal.templateparser.php" -#line 217 "internal.templateparser.y" - function yy_r34(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } -#line 2114 "internal.templateparser.php" -#line 219 "internal.templateparser.y" - function yy_r36(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); } -#line 2117 "internal.templateparser.php" -#line 224 "internal.templateparser.y" - function yy_r37(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } +#line 202 "internal.templateparser.y" + function yy_r30(){ $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',$this->yystack[$this->yyidx + 0]->minor).'smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) { + $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; + } else { + if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) { + if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) { + $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; + } + } else { + $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\""); + } + } + } #line 2120 "internal.templateparser.php" -#line 225 "internal.templateparser.y" - function yy_r38(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; } +#line 216 "internal.templateparser.y" + function yy_r31(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2123 "internal.templateparser.php" -#line 227 "internal.templateparser.y" - function yy_r39(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); } +#line 223 "internal.templateparser.y" + function yy_r32(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2126 "internal.templateparser.php" -#line 233 "internal.templateparser.y" - function yy_r40(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } +#line 227 "internal.templateparser.y" + function yy_r34(){ $this->_retvalue = array(); } #line 2129 "internal.templateparser.php" -#line 236 "internal.templateparser.y" - function yy_r42(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; } +#line 230 "internal.templateparser.y" + function yy_r35(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } #line 2132 "internal.templateparser.php" +#line 232 "internal.templateparser.y" + function yy_r37(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); } +#line 2135 "internal.templateparser.php" #line 237 "internal.templateparser.y" - function yy_r43(){ + function yy_r38(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } +#line 2138 "internal.templateparser.php" +#line 238 "internal.templateparser.y" + function yy_r39(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; } +#line 2141 "internal.templateparser.php" +#line 240 "internal.templateparser.y" + function yy_r40(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); } +#line 2144 "internal.templateparser.php" +#line 246 "internal.templateparser.y" + function yy_r41(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } +#line 2147 "internal.templateparser.php" +#line 249 "internal.templateparser.y" + function yy_r43(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; } +#line 2150 "internal.templateparser.php" +#line 250 "internal.templateparser.y" + function yy_r44(){ if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -1]->minor[0],'modifier')) { $this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")"; } else { @@ -2139,270 +2157,270 @@ static public $yy_action = array( } } } -#line 2147 "internal.templateparser.php" -#line 254 "internal.templateparser.y" - function yy_r45(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } -#line 2150 "internal.templateparser.php" -#line 256 "internal.templateparser.y" - function yy_r46(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } -#line 2153 "internal.templateparser.php" -#line 263 "internal.templateparser.y" - function yy_r48(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; } -#line 2156 "internal.templateparser.php" -#line 277 "internal.templateparser.y" - function yy_r52(){$this->_retvalue = ' & '; } -#line 2159 "internal.templateparser.php" -#line 283 "internal.templateparser.y" - function yy_r55(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } -#line 2162 "internal.templateparser.php" -#line 291 "internal.templateparser.y" - function yy_r59(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2165 "internal.templateparser.php" -#line 293 "internal.templateparser.y" - function yy_r60(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; } +#line 267 "internal.templateparser.y" + function yy_r46(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2168 "internal.templateparser.php" -#line 294 "internal.templateparser.y" - function yy_r61(){ $this->_retvalue = "''"; } +#line 269 "internal.templateparser.y" + function yy_r47(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } #line 2171 "internal.templateparser.php" -#line 296 "internal.templateparser.y" - function yy_r62(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; } +#line 276 "internal.templateparser.y" + function yy_r49(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; } #line 2174 "internal.templateparser.php" -#line 299 "internal.templateparser.y" - function yy_r64(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } +#line 290 "internal.templateparser.y" + function yy_r53(){$this->_retvalue = ' & '; } #line 2177 "internal.templateparser.php" -#line 300 "internal.templateparser.y" - function yy_r65(){ $this->prefix_number++; $this->prefix_code[] = 'prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; } +#line 296 "internal.templateparser.y" + function yy_r56(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2180 "internal.templateparser.php" -#line 302 "internal.templateparser.y" - function yy_r66(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } +#line 304 "internal.templateparser.y" + function yy_r60(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2183 "internal.templateparser.php" -#line 303 "internal.templateparser.y" - function yy_r67(){ $this->prefix_number++; $this->prefix_code[] = 'prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; } +#line 306 "internal.templateparser.y" + function yy_r61(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; } #line 2186 "internal.templateparser.php" -#line 305 "internal.templateparser.y" - function yy_r68(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } -#line 2189 "internal.templateparser.php" #line 307 "internal.templateparser.y" - function yy_r69(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } -#line 2192 "internal.templateparser.php" + function yy_r62(){ $this->_retvalue = "''"; } +#line 2189 "internal.templateparser.php" #line 309 "internal.templateparser.y" - function yy_r70(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.'::$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } + function yy_r63(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; } +#line 2192 "internal.templateparser.php" +#line 312 "internal.templateparser.y" + function yy_r65(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2195 "internal.templateparser.php" -#line 311 "internal.templateparser.y" - function yy_r71(){ $this->prefix_number++; $this->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; } +#line 313 "internal.templateparser.y" + function yy_r66(){ $this->prefix_number++; $this->prefix_code[] = 'prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; } #line 2198 "internal.templateparser.php" +#line 315 "internal.templateparser.y" + function yy_r67(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } +#line 2201 "internal.templateparser.php" +#line 316 "internal.templateparser.y" + function yy_r68(){ $this->prefix_number++; $this->prefix_code[] = 'prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; } +#line 2204 "internal.templateparser.php" +#line 318 "internal.templateparser.y" + function yy_r69(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } +#line 2207 "internal.templateparser.php" #line 320 "internal.templateparser.y" - function yy_r72(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + 0]->minor['index']);} else { + function yy_r70(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } +#line 2210 "internal.templateparser.php" +#line 322 "internal.templateparser.y" + function yy_r71(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.'::$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } +#line 2213 "internal.templateparser.php" +#line 324 "internal.templateparser.y" + function yy_r72(){ $this->prefix_number++; $this->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; } +#line 2216 "internal.templateparser.php" +#line 333 "internal.templateparser.y" + function yy_r73(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + 0]->minor['index']);} else { $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['index']; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"))->nocache;} } -#line 2202 "internal.templateparser.php" -#line 323 "internal.templateparser.y" - function yy_r73(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; } -#line 2205 "internal.templateparser.php" -#line 327 "internal.templateparser.y" - function yy_r75(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; } -#line 2208 "internal.templateparser.php" -#line 328 "internal.templateparser.y" - function yy_r76(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; } -#line 2211 "internal.templateparser.php" -#line 331 "internal.templateparser.y" - function yy_r77(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); } -#line 2214 "internal.templateparser.php" -#line 339 "internal.templateparser.y" - function yy_r79(){return; } -#line 2217 "internal.templateparser.php" -#line 343 "internal.templateparser.y" - function yy_r80(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; } #line 2220 "internal.templateparser.php" -#line 344 "internal.templateparser.y" - function yy_r81(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; } +#line 336 "internal.templateparser.y" + function yy_r74(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; } #line 2223 "internal.templateparser.php" -#line 345 "internal.templateparser.y" - function yy_r82(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; } +#line 340 "internal.templateparser.y" + function yy_r76(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; } #line 2226 "internal.templateparser.php" -#line 346 "internal.templateparser.y" - function yy_r83(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; } +#line 341 "internal.templateparser.y" + function yy_r77(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; } #line 2229 "internal.templateparser.php" -#line 348 "internal.templateparser.y" - function yy_r84(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; } +#line 344 "internal.templateparser.y" + function yy_r78(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2232 "internal.templateparser.php" -#line 349 "internal.templateparser.y" - function yy_r85(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; } +#line 352 "internal.templateparser.y" + function yy_r80(){return; } #line 2235 "internal.templateparser.php" -#line 353 "internal.templateparser.y" - function yy_r87(){$this->_retvalue = ''; } +#line 356 "internal.templateparser.y" + function yy_r81(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; } #line 2238 "internal.templateparser.php" -#line 361 "internal.templateparser.y" - function yy_r89(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } +#line 357 "internal.templateparser.y" + function yy_r82(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; } #line 2241 "internal.templateparser.php" -#line 363 "internal.templateparser.y" - function yy_r90(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } +#line 358 "internal.templateparser.y" + function yy_r83(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; } #line 2244 "internal.templateparser.php" -#line 365 "internal.templateparser.y" - function yy_r91(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; } +#line 359 "internal.templateparser.y" + function yy_r84(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; } #line 2247 "internal.templateparser.php" -#line 370 "internal.templateparser.y" - function yy_r92(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + -1]->minor['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['index'].$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} } -#line 2251 "internal.templateparser.php" -#line 373 "internal.templateparser.y" - function yy_r93(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } -#line 2254 "internal.templateparser.php" -#line 375 "internal.templateparser.y" - function yy_r94(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } -#line 2257 "internal.templateparser.php" -#line 377 "internal.templateparser.y" - function yy_r95(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } -#line 2260 "internal.templateparser.php" +#line 361 "internal.templateparser.y" + function yy_r85(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; } +#line 2250 "internal.templateparser.php" +#line 362 "internal.templateparser.y" + function yy_r86(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; } +#line 2253 "internal.templateparser.php" +#line 366 "internal.templateparser.y" + function yy_r88(){$this->_retvalue = ''; } +#line 2256 "internal.templateparser.php" +#line 374 "internal.templateparser.y" + function yy_r90(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } +#line 2259 "internal.templateparser.php" +#line 376 "internal.templateparser.y" + function yy_r91(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } +#line 2262 "internal.templateparser.php" #line 378 "internal.templateparser.y" - function yy_r96(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } -#line 2263 "internal.templateparser.php" -#line 379 "internal.templateparser.y" - function yy_r97(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } -#line 2266 "internal.templateparser.php" -#line 380 "internal.templateparser.y" - function yy_r98(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } + function yy_r92(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; } +#line 2265 "internal.templateparser.php" +#line 383 "internal.templateparser.y" + function yy_r93(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + -1]->minor['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['index'].$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} } #line 2269 "internal.templateparser.php" -#line 382 "internal.templateparser.y" - function yy_r99(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; } +#line 386 "internal.templateparser.y" + function yy_r94(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2272 "internal.templateparser.php" #line 388 "internal.templateparser.y" - function yy_r100(){if (!$this->template->security || $this->smarty->security_handler->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) { + function yy_r95(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } +#line 2275 "internal.templateparser.php" +#line 390 "internal.templateparser.y" + function yy_r96(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } +#line 2278 "internal.templateparser.php" +#line 391 "internal.templateparser.y" + function yy_r97(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } +#line 2281 "internal.templateparser.php" +#line 392 "internal.templateparser.y" + function yy_r98(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } +#line 2284 "internal.templateparser.php" +#line 393 "internal.templateparser.y" + function yy_r99(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } +#line 2287 "internal.templateparser.php" +#line 395 "internal.templateparser.y" + function yy_r100(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; } +#line 2290 "internal.templateparser.php" +#line 401 "internal.templateparser.y" + function yy_r101(){if (!$this->template->security || $this->smarty->security_handler->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) { if ($this->yystack[$this->yyidx + -3]->minor == 'isset' || $this->yystack[$this->yyidx + -3]->minor == 'empty' || $this->yystack[$this->yyidx + -3]->minor == 'array' || is_callable($this->yystack[$this->yyidx + -3]->minor)) { $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; } else { $this->compiler->trigger_template_error ("unknown function \"" . $this->yystack[$this->yyidx + -3]->minor . "\""); } } } -#line 2281 "internal.templateparser.php" -#line 399 "internal.templateparser.y" - function yy_r101(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; } -#line 2284 "internal.templateparser.php" -#line 403 "internal.templateparser.y" - function yy_r102(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; } -#line 2287 "internal.templateparser.php" -#line 407 "internal.templateparser.y" - function yy_r104(){ return; } -#line 2290 "internal.templateparser.php" -#line 412 "internal.templateparser.y" - function yy_r105(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); } -#line 2293 "internal.templateparser.php" -#line 413 "internal.templateparser.y" - function yy_r106(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); } -#line 2296 "internal.templateparser.php" -#line 425 "internal.templateparser.y" - function yy_r107(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2299 "internal.templateparser.php" -#line 429 "internal.templateparser.y" - function yy_r109(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; } +#line 412 "internal.templateparser.y" + function yy_r102(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2302 "internal.templateparser.php" -#line 430 "internal.templateparser.y" - function yy_r110(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } +#line 416 "internal.templateparser.y" + function yy_r103(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; } #line 2305 "internal.templateparser.php" -#line 437 "internal.templateparser.y" - function yy_r112(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; } +#line 420 "internal.templateparser.y" + function yy_r105(){ return; } #line 2308 "internal.templateparser.php" -#line 442 "internal.templateparser.y" - function yy_r114(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; } +#line 425 "internal.templateparser.y" + function yy_r106(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); } #line 2311 "internal.templateparser.php" -#line 444 "internal.templateparser.y" - function yy_r115(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } +#line 426 "internal.templateparser.y" + function yy_r107(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); } #line 2314 "internal.templateparser.php" -#line 445 "internal.templateparser.y" - function yy_r116(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; } +#line 438 "internal.templateparser.y" + function yy_r108(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2317 "internal.templateparser.php" -#line 446 "internal.templateparser.y" - function yy_r117(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; } +#line 442 "internal.templateparser.y" + function yy_r110(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; } #line 2320 "internal.templateparser.php" -#line 448 "internal.templateparser.y" - function yy_r119(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } +#line 443 "internal.templateparser.y" + function yy_r111(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2323 "internal.templateparser.php" -#line 449 "internal.templateparser.y" - function yy_r120(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } -#line 2326 "internal.templateparser.php" #line 450 "internal.templateparser.y" - function yy_r121(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } + function yy_r113(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; } +#line 2326 "internal.templateparser.php" +#line 455 "internal.templateparser.y" + function yy_r115(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; } #line 2329 "internal.templateparser.php" -#line 451 "internal.templateparser.y" - function yy_r122(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } +#line 457 "internal.templateparser.y" + function yy_r116(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2332 "internal.templateparser.php" -#line 452 "internal.templateparser.y" - function yy_r123(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } +#line 458 "internal.templateparser.y" + function yy_r117(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2335 "internal.templateparser.php" -#line 453 "internal.templateparser.y" - function yy_r124(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } -#line 2338 "internal.templateparser.php" #line 459 "internal.templateparser.y" - function yy_r130(){$this->prefix_number++; $this->prefix_code[] = '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 2341 "internal.templateparser.php" + function yy_r118(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; } +#line 2338 "internal.templateparser.php" #line 461 "internal.templateparser.y" - function yy_r131(){$this->_retvalue = '=='; } -#line 2344 "internal.templateparser.php" + function yy_r120(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } +#line 2341 "internal.templateparser.php" #line 462 "internal.templateparser.y" - function yy_r132(){$this->_retvalue = '!='; } -#line 2347 "internal.templateparser.php" + function yy_r121(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } +#line 2344 "internal.templateparser.php" #line 463 "internal.templateparser.y" - function yy_r133(){$this->_retvalue = '>'; } -#line 2350 "internal.templateparser.php" + function yy_r122(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } +#line 2347 "internal.templateparser.php" #line 464 "internal.templateparser.y" - function yy_r134(){$this->_retvalue = '<'; } -#line 2353 "internal.templateparser.php" + function yy_r123(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } +#line 2350 "internal.templateparser.php" #line 465 "internal.templateparser.y" - function yy_r135(){$this->_retvalue = '>='; } -#line 2356 "internal.templateparser.php" + function yy_r124(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } +#line 2353 "internal.templateparser.php" #line 466 "internal.templateparser.y" - function yy_r136(){$this->_retvalue = '<='; } -#line 2359 "internal.templateparser.php" -#line 467 "internal.templateparser.y" - function yy_r137(){$this->_retvalue = '==='; } -#line 2362 "internal.templateparser.php" -#line 468 "internal.templateparser.y" - function yy_r138(){$this->_retvalue = '!=='; } -#line 2365 "internal.templateparser.php" -#line 470 "internal.templateparser.y" - function yy_r139(){$this->_retvalue = '&&'; } -#line 2368 "internal.templateparser.php" -#line 471 "internal.templateparser.y" - function yy_r140(){$this->_retvalue = '||'; } -#line 2371 "internal.templateparser.php" + function yy_r125(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } +#line 2356 "internal.templateparser.php" #line 472 "internal.templateparser.y" - function yy_r141(){$this->_retvalue = ' XOR '; } -#line 2374 "internal.templateparser.php" + function yy_r131(){$this->prefix_number++; $this->prefix_code[] = '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 2359 "internal.templateparser.php" +#line 474 "internal.templateparser.y" + function yy_r132(){$this->_retvalue = '=='; } +#line 2362 "internal.templateparser.php" +#line 475 "internal.templateparser.y" + function yy_r133(){$this->_retvalue = '!='; } +#line 2365 "internal.templateparser.php" +#line 476 "internal.templateparser.y" + function yy_r134(){$this->_retvalue = '>'; } +#line 2368 "internal.templateparser.php" #line 477 "internal.templateparser.y" - function yy_r142(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; } -#line 2377 "internal.templateparser.php" + function yy_r135(){$this->_retvalue = '<'; } +#line 2371 "internal.templateparser.php" +#line 478 "internal.templateparser.y" + function yy_r136(){$this->_retvalue = '>='; } +#line 2374 "internal.templateparser.php" #line 479 "internal.templateparser.y" - function yy_r144(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; } -#line 2380 "internal.templateparser.php" + function yy_r137(){$this->_retvalue = '<='; } +#line 2377 "internal.templateparser.php" #line 480 "internal.templateparser.y" - function yy_r145(){ return; } -#line 2383 "internal.templateparser.php" + function yy_r138(){$this->_retvalue = '==='; } +#line 2380 "internal.templateparser.php" #line 481 "internal.templateparser.y" - function yy_r146(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; } + function yy_r139(){$this->_retvalue = '!=='; } +#line 2383 "internal.templateparser.php" +#line 483 "internal.templateparser.y" + function yy_r140(){$this->_retvalue = '&&'; } #line 2386 "internal.templateparser.php" -#line 482 "internal.templateparser.y" - function yy_r147(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; } +#line 484 "internal.templateparser.y" + function yy_r141(){$this->_retvalue = '||'; } #line 2389 "internal.templateparser.php" -#line 491 "internal.templateparser.y" - function yy_r151(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; } +#line 485 "internal.templateparser.y" + function yy_r142(){$this->_retvalue = ' XOR '; } #line 2392 "internal.templateparser.php" -#line 492 "internal.templateparser.y" - function yy_r152(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; } +#line 490 "internal.templateparser.y" + function yy_r143(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2395 "internal.templateparser.php" -#line 493 "internal.templateparser.y" - function yy_r153(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.'."'; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache; } +#line 492 "internal.templateparser.y" + function yy_r145(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; } #line 2398 "internal.templateparser.php" -#line 494 "internal.templateparser.y" - function yy_r154(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0].'".('.$this->yystack[$this->yyidx + -1]->minor.')."'; } +#line 493 "internal.templateparser.y" + function yy_r146(){ return; } #line 2401 "internal.templateparser.php" -#line 495 "internal.templateparser.y" - function yy_r155(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->prefix_number++; $this->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = $s[0].'".$_tmp'.$this->prefix_number.'."'; } +#line 494 "internal.templateparser.y" + function yy_r147(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2404 "internal.templateparser.php" -#line 496 "internal.templateparser.y" - function yy_r156(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; } +#line 495 "internal.templateparser.y" + function yy_r148(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2407 "internal.templateparser.php" -#line 498 "internal.templateparser.y" - function yy_r158(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; } +#line 504 "internal.templateparser.y" + function yy_r152(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; } #line 2410 "internal.templateparser.php" +#line 505 "internal.templateparser.y" + function yy_r153(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; } +#line 2413 "internal.templateparser.php" +#line 506 "internal.templateparser.y" + function yy_r154(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.'."'; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache; } +#line 2416 "internal.templateparser.php" +#line 507 "internal.templateparser.y" + function yy_r155(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0].'".('.$this->yystack[$this->yyidx + -1]->minor.')."'; } +#line 2419 "internal.templateparser.php" +#line 508 "internal.templateparser.y" + function yy_r156(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->prefix_number++; $this->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = $s[0].'".$_tmp'.$this->prefix_number.'."'; } +#line 2422 "internal.templateparser.php" +#line 509 "internal.templateparser.y" + function yy_r157(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; } +#line 2425 "internal.templateparser.php" +#line 511 "internal.templateparser.y" + function yy_r159(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; } +#line 2428 "internal.templateparser.php" /** * placeholder for the left hand side in a reduce operation. @@ -2519,7 +2537,7 @@ static public $yy_action = array( $this->internalError = true; $this->yymajor = $yymajor; $this->compiler->trigger_template_error(); -#line 2528 "internal.templateparser.php" +#line 2546 "internal.templateparser.php" } /** @@ -2543,7 +2561,7 @@ static public $yy_action = array( $this->internalError = false; $this->retvalue = $this->_retvalue; //echo $this->retvalue."\n\n"; -#line 2553 "internal.templateparser.php" +#line 2571 "internal.templateparser.php" } /**