<?php
class TP_yyToken implements ArrayAccess
{
public $string = '';
public $me
tadata = array();
function __co
nstruct($s, $m = array())
{
if ($s instanceof TP_yyToken) {
$this->string = $s->string;
$this->me
tadata = $s->me
tadata;
} else {
$this->string = (string) $s;
if ($m instanceof TP_yyToken) {
$this->me
tadata = $m->me
tadata;
} elseif (is_array($m)) {
$this->me
tadata = $m;
}
}
}
function __toString()
{
return $this->_string;
}
function offsetExists($offset)
{
return isset($this->me
tadata[$offset]);
}
function offsetGet($offset)
{
return $this->me
tadata[$offset];
}
function offsetSet($offset, $value)
{
if ($offset === null) {
if (isset($value[0])) {
$x = ($value instanceof TP_yyToken) ?
$value->me
tada
ta: $value;
$this->me
tadata = array_merge($this->me
tadata, $x);
return;
}
$offset = count($this->me
tadata);
}
if ($value === null) {
return;
}
if ($value instanceof TP_yyToken) {
if ($value->me
tadata) {
$this->me
tadata[$offset] = $value->me
tadata;
}
} elseif ($value) {
$this->me
tadata[$offset] = $value;
}
}
function offsetUnset($offset)
{
unset($this->me
tadata[$offset]);
}
}
class TP_yyStackEntry
{
public $stateno;
public $major;
public $minor;
};
#line 12 "smarty_internal_templateparser.y"
class Smarty_Internal_Templateparser#line 79 "smarty_internal_templateparser.php"
{
#line 14 "smarty_internal_templateparser.y"
co
nst Err1 = "Security error: Call to private object member not allowed";
co
nst Err2 = "Security error: Call to dynamic object member not allowed";
co
nst Err3 = "PHP in template not allowed. Use SmartyBC to enable it";
// states whether the parse was successful or not
public $successful = true;
public $retvalue = 0;
private $lex;
private $internalError = false;
function __co
nstruct($lex, $compiler) {
$this->lex = $lex;
$this->compiler = $compiler;
$this->smarty = $this->compiler->smarty;
$this->template = $this->compiler->template;
$this->compiler->has_variable_string = false;
$this->compiler->prefix_code = array();
$this->prefix_number = 0;
$this->block_nesting_level = 0;
if ($this->security = isset($this->smarty->security_policy)) {
$this->php_handling = $this->smarty->security_policy->php_handling;
} else {
$this->php_handling = $this->smarty->php_handling;
}
$this->is_xml = false;
$this->asp_tags = (ini_get('asp_tags') != '0');
$this->current_buffer = $this->root_buffer = new _smarty_template_buffer($this);
}
public static function escape_start_tag($tag_text) {
$tag = preg_replace('/A<?(.*)z/', '<<?php ?>?1', $tag_text, -1 , $count); //Escape tag
return $tag;
}
public static function escape_end_tag($tag_text) {
return '?<?php ?>>';
}
public function compileVariable($variable) {
if (strpos($variable,'(') == 0) {
// not a variable variable
$var = tri
m($variable,''');
$this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable($var, null, true, false)->nocache;
$this->template->properties['variables'][$var] = $this->compiler->tag_nocache|$this->compiler->nocache;
}
// return '(isset($_smarty_tpl->tpl_vars['. $variable .'])?$_smarty_tpl->tpl_vars['. $variable .']->value:$_smarty_tpl->getVariable('. $variable .')->value)';
return '$_smarty_tpl->tpl_vars['. $variable .']->value';
}
#line 131 "smarty_internal_templateparser.php"
co
nst TP_VERT = 1;
co
nst TP_co
lon = 2;
co
nst TP_COMMENT = 3;
co
nst TP_PHPSTARTTAG = 4;
co
nst TP_PHPENDTAG = 5;
co
nst TP_ASPSTARTTAG = 6;
co
nst TP_ASPENDTAG = 7;
co
nst TP_FAKEPHPSTARTTAG = 8;
co
nst TP_XMLTAG = 9;
co
nst TP_OTHER = 10;
co
nst TP_LINEBREAK = 11;
co
nst TP_LITERALSTART = 12;
co
nst TP_LITERALEND = 13;
co
nst TP_LITERAL = 14;
co
nst TP_LDEL = 15;
co
nst TP_RDEL = 16;
co
nst TP_DOLLAR = 17;
co
nst TP_ID = 18;
co
nst TP_EQUAL = 19;
co
nst TP_PTR = 20;
co
nst TP_LDELIF = 21;
co
nst TP_LDELFOR = 22;
co
nst TP_SEMIco
lon = 23;
co
nst TP_INCDEC = 24;
co
nst TP_TO = 25;
co
nst TP_STEP = 26;
co
nst TP_LDELFOREACH = 27;
co
nst TP_SPACE = 28;
co
nst TP_AS = 29;
co
nst TP_APTR = 30;
co
nst TP_LDELSETFILTER = 31;
co
nst TP_SMARTYBLOCKCHILD = 32;
co
nst TP_LDELSLASH = 33;
co
nst TP_INTEGER = 34;
co
nst TP_COMMA = 35;
co
nst TP_OPENP = 36;
co
nst TP_CLOSEP = 37;
co
nst TP_MATH = 38;
co
nst TP_UNIMATH = 39;
co
nst TP_ANDSYM = 40;
co
nst TP_ISIN = 41;
co
nst TP_ISDIVBY = 42;
co
nst TP_ISNOTDIVBY = 43;
co
nst TP_ISEVEN = 44;
co
nst TP_ISNOTEVEN = 45;
co
nst TP_ISEVENBY = 46;
co
nst TP_ISNOTEVENBY = 47;
co
nst TP_ISODD = 48;
co
nst TP_ISNOTODD = 49;
co
nst TP_ISODDBY = 50;
co
nst TP_ISNOTODDBY = 51;
co
nst TP_INSTANCEOF = 52;
co
nst TP_QMARK = 53;
co
nst TP_NOT = 54;
co
nst TP_TYPECAST = 55;
co
nst TP_HEX = 56;
co
nst TP_DOT = 57;
co
nst TP_SINGLEQUOTESTRING = 58;
co
nst TP_DOUBLEco
lon = 59;
co
nst TP_AT = 60;
co
nst TP_HATCH = 61;
co
nst TP_OPENB = 62;
co
nst TP_CLOSEB = 63;
co
nst TP_EQUALS = 64;
co
nst TP_NOTEQUALS = 65;
co
nst TP_GREATERTHAN = 66;