*
* @param DateTime|int|string $string date object, timestamp or string that can be converted using strtotime()
*
@@ -21,25 +20,30 @@ function smarty_make_timestamp($string)
if (empty($string)) {
// use "now":
return time();
- } elseif ($string instanceof DateTime ||
- (interface_exists('DateTimeInterface', false) && $string instanceof DateTimeInterface)
+ } elseif ($string instanceof DateTime
+ || (interface_exists('DateTimeInterface', false) && $string instanceof DateTimeInterface)
) {
- return (int) $string->format('U'); // PHP 5.2 BC
+ return (int)$string->format('U'); // PHP 5.2 BC
} elseif (strlen($string) === 14 && ctype_digit($string)) {
// it is mysql timestamp format of YYYYMMDDHHMMSS?
- return mktime(substr($string, 8, 2), substr($string, 10, 2), substr($string, 12, 2), substr($string, 4, 2),
- substr($string, 6, 2), substr($string, 0, 4));
+ return mktime(
+ substr($string, 8, 2),
+ substr($string, 10, 2),
+ substr($string, 12, 2),
+ substr($string, 4, 2),
+ substr($string, 6, 2),
+ substr($string, 0, 4)
+ );
} elseif (is_numeric($string)) {
// it is a numeric string, we handle it as timestamp
- return (int) $string;
+ return (int)$string;
} else {
// strtotime should handle it
$time = strtotime($string);
- if ($time === - 1 || $time === false) {
+ if ($time === -1 || $time === false) {
// strtotime() was not able to parse $string, use "now":
return time();
}
-
return $time;
}
}
diff --git a/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php b/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php
index 300702933..206cf9ea6 100644
--- a/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php
+++ b/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php
@@ -9,10 +9,10 @@ if (!function_exists('smarty_mb_str_replace')) {
/**
* Multibyte string replace
*
- * @param string|string[] $search the string to be searched
- * @param string|string[] $replace the replacement string
- * @param string $subject the source string
- * @param int &$count number of matches found
+ * @param string|string[] $search the string to be searched
+ * @param string|string[] $replace the replacement string
+ * @param string $subject the source string
+ * @param int &$count number of matches found
*
* @return string replaced string
* @author Rodney Rehm
@@ -28,7 +28,7 @@ if (!function_exists('smarty_mb_str_replace')) {
$string = smarty_mb_str_replace($search, $replace, $string, $c);
$count += $c;
}
- } else if (is_array($search)) {
+ } elseif (is_array($search)) {
if (!is_array($replace)) {
foreach ($search as &$string) {
$subject = smarty_mb_str_replace($string, $replace, $subject, $c);
diff --git a/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php b/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php
index 7450148a4..7d1206506 100644
--- a/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php
+++ b/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php
@@ -5,7 +5,6 @@
* @package Smarty
* @subpackage PluginsShared
*/
-
/**
* convert characters to their decimal unicode equivalents
*
@@ -24,7 +23,6 @@ function smarty_mb_to_unicode($string, $encoding = null)
} else {
$expanded = mb_convert_encoding($string, 'UTF-32BE');
}
-
return unpack('N*', $expanded);
}
@@ -45,10 +43,9 @@ function smarty_mb_from_unicode($unicode, $encoding = null)
if (!$encoding) {
$encoding = mb_internal_encoding();
}
- foreach ((array) $unicode as $utf32be) {
+ foreach ((array)$unicode as $utf32be) {
$character = pack('N*', $utf32be);
$t .= mb_convert_encoding($character, $encoding, 'UTF-32BE');
}
-
return $t;
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource.php b/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource.php
index 2a4552cb2..91e9f3924 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource.php
@@ -25,12 +25,12 @@ abstract class Smarty_CacheResource
/**
* populate Cached Object with meta data from Resource
*
- * @param Smarty_Template_Cached $cached cached object
+ * @param \Smarty_Template_Cached $cached cached object
* @param Smarty_Internal_Template $_template template object
*
* @return void
*/
- abstract public function populate(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template);
+ abstract public function populate(\Smarty_Template_Cached $cached, Smarty_Internal_Template $_template);
/**
* populate Cached Object with timestamp and exists from Resource
@@ -50,8 +50,11 @@ abstract class Smarty_CacheResource
*
* @return boolean true or false if the cached content does not exist
*/
- abstract public function process(Smarty_Internal_Template $_template, Smarty_Template_Cached $cached = null,
- $update = false);
+ abstract public function process(
+ Smarty_Internal_Template $_template,
+ Smarty_Template_Cached $cached = null,
+ $update = false
+ );
/**
* Write the rendered template output to cache
@@ -66,11 +69,11 @@ abstract class Smarty_CacheResource
/**
* Read cached template from cache
*
- * @param Smarty_Internal_Template $_template template object
+ * @param Smarty_Internal_Template $_template template object
*
* @return string content
*/
- abstract function readCachedContent(Smarty_Internal_Template $_template);
+ abstract public function readCachedContent(Smarty_Internal_Template $_template);
/**
* Return cached content
@@ -87,7 +90,6 @@ abstract class Smarty_CacheResource
$unifunc($_template);
return ob_get_clean();
}
-
return null;
}
@@ -133,7 +135,6 @@ abstract class Smarty_CacheResource
}
sleep(1);
}
-
return $hadLock;
}
@@ -193,12 +194,10 @@ abstract class Smarty_CacheResource
if (!isset($type)) {
$type = $smarty->caching_type;
}
-
// try smarty's cache
if (isset($smarty->_cache[ 'cacheresource_handlers' ][ $type ])) {
return $smarty->_cache[ 'cacheresource_handlers' ][ $type ];
}
-
// try registered resource
if (isset($smarty->registered_cache_resources[ $type ])) {
// do not cache these instances as they may vary from instance to instance
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_custom.php b/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_custom.php
index 7a5920f43..68ad11289 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_custom.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_custom.php
@@ -18,12 +18,12 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
/**
* fetch cached content and its modification time from data source
*
- * @param string $id unique cache content identifier
- * @param string $name template name
- * @param string $cache_id cache id
- * @param string $compile_id compile id
- * @param string $content cached content
- * @param integer $mtime cache modification timestamp (epoch)
+ * @param string $id unique cache content identifier
+ * @param string $name template name
+ * @param string $cache_id cache id
+ * @param string $compile_id compile id
+ * @param string $content cached content
+ * @param integer $mtime cache modification timestamp (epoch)
*
* @return void
*/
@@ -34,10 +34,10 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
* {@internal implementing this method is optional.
* Only implement it if modification times can be accessed faster than loading the complete cached content.}}
*
- * @param string $id unique cache content identifier
- * @param string $name template name
- * @param string $cache_id cache id
- * @param string $compile_id compile id
+ * @param string $id unique cache content identifier
+ * @param string $name template name
+ * @param string $cache_id cache id
+ * @param string $compile_id compile id
*
* @return integer|boolean timestamp (epoch) the template was modified, or false if not found
*/
@@ -49,12 +49,12 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
/**
* Save content to cache
*
- * @param string $id unique cache content identifier
- * @param string $name template name
- * @param string $cache_id cache id
- * @param string $compile_id compile id
- * @param integer|null $exp_time seconds till expiration or null
- * @param string $content content to cache
+ * @param string $id unique cache content identifier
+ * @param string $name template name
+ * @param string $cache_id cache id
+ * @param string $compile_id compile id
+ * @param integer|null $exp_time seconds till expiration or null
+ * @param string $content content to cache
*
* @return boolean success
*/
@@ -63,10 +63,10 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
/**
* Delete content from cache
*
- * @param string|null $name template name
- * @param string|null $cache_id cache id
- * @param string|null $compile_id compile id
- * @param integer|null $exp_time seconds till expiration time in seconds or null
+ * @param string|null $name template name
+ * @param string|null $cache_id cache id
+ * @param string|null $compile_id compile id
+ * @param integer|null $exp_time seconds till expiration time in seconds or null
*
* @return integer number of deleted caches
*/
@@ -75,8 +75,8 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
/**
* populate Cached Object with meta data from Resource
*
- * @param Smarty_Template_Cached $cached cached object
- * @param Smarty_Internal_Template $_template template object
+ * @param Smarty_Template_Cached $cached cached object
+ * @param Smarty_Internal_Template $_template template object
*
* @return void
*/
@@ -106,12 +106,17 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
if ($mtime !== null) {
$cached->timestamp = $mtime;
$cached->exists = !!$cached->timestamp;
-
return;
}
$timestamp = null;
- $this->fetch($cached->filepath, $cached->source->name, $cached->cache_id, $cached->compile_id, $cached->content,
- $timestamp);
+ $this->fetch(
+ $cached->filepath,
+ $cached->source->name,
+ $cached->cache_id,
+ $cached->compile_id,
+ $cached->content,
+ $timestamp
+ );
$cached->timestamp = isset($timestamp) ? $timestamp : false;
$cached->exists = !!$cached->timestamp;
}
@@ -120,50 +125,63 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
* Read the cached template and process the header
*
* @param \Smarty_Internal_Template $_smarty_tpl do not change variable name, is used by compiled template
- * @param Smarty_Template_Cached $cached cached object
+ * @param Smarty_Template_Cached $cached cached object
* @param boolean $update flag if called because cache update
*
* @return boolean true or false if the cached content does not exist
*/
- public function process(Smarty_Internal_Template $_smarty_tpl, Smarty_Template_Cached $cached = null,
- $update = false)
- {
+ public function process(
+ Smarty_Internal_Template $_smarty_tpl,
+ Smarty_Template_Cached $cached = null,
+ $update = false
+ ) {
if (!$cached) {
$cached = $_smarty_tpl->cached;
}
$content = $cached->content ? $cached->content : null;
$timestamp = $cached->timestamp ? $cached->timestamp : null;
if ($content === null || !$timestamp) {
- $this->fetch($_smarty_tpl->cached->filepath, $_smarty_tpl->source->name, $_smarty_tpl->cache_id,
- $_smarty_tpl->compile_id, $content, $timestamp);
+ $this->fetch(
+ $_smarty_tpl->cached->filepath,
+ $_smarty_tpl->source->name,
+ $_smarty_tpl->cache_id,
+ $_smarty_tpl->compile_id,
+ $content,
+ $timestamp
+ );
}
if (isset($content)) {
eval('?>' . $content);
$cached->content = null;
return true;
}
-
return false;
}
/**
* Write the rendered template output to cache
*
- * @param Smarty_Internal_Template $_template template object
- * @param string $content content to cache
+ * @param Smarty_Internal_Template $_template template object
+ * @param string $content content to cache
*
* @return boolean success
*/
public function writeCachedContent(Smarty_Internal_Template $_template, $content)
{
- return $this->save($_template->cached->filepath, $_template->source->name, $_template->cache_id,
- $_template->compile_id, $_template->cache_lifetime, $content);
+ return $this->save(
+ $_template->cached->filepath,
+ $_template->source->name,
+ $_template->cache_id,
+ $_template->compile_id,
+ $_template->cache_lifetime,
+ $content
+ );
}
/**
* Read cached template from cache
*
- * @param Smarty_Internal_Template $_template template object
+ * @param Smarty_Internal_Template $_template template object
*
* @return string|boolean content
*/
@@ -173,8 +191,14 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
$timestamp = null;
if ($content === null) {
$timestamp = null;
- $this->fetch($_template->cached->filepath, $_template->source->name, $_template->cache_id,
- $_template->compile_id, $content, $timestamp);
+ $this->fetch(
+ $_template->cached->filepath,
+ $_template->source->name,
+ $_template->cache_id,
+ $_template->compile_id,
+ $content,
+ $timestamp
+ );
}
if (isset($content)) {
return $content;
@@ -185,8 +209,8 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
/**
* Empty cache
*
- * @param Smarty $smarty Smarty object
- * @param integer $exp_time expiration time (number of seconds, not timestamp)
+ * @param Smarty $smarty Smarty object
+ * @param integer $exp_time expiration time (number of seconds, not timestamp)
*
* @return integer number of cache files deleted
*/
@@ -198,11 +222,11 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
/**
* Empty cache for a specific template
*
- * @param Smarty $smarty Smarty object
- * @param string $resource_name template name
- * @param string $cache_id cache id
- * @param string $compile_id compile id
- * @param integer $exp_time expiration time (number of seconds, not timestamp)
+ * @param Smarty $smarty Smarty object
+ * @param string $resource_name template name
+ * @param string $cache_id cache id
+ * @param string $compile_id compile id
+ * @param integer $exp_time expiration time (number of seconds, not timestamp)
*
* @return int number of cache files deleted
* @throws \SmartyException
@@ -210,7 +234,6 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
public function clear(Smarty $smarty, $resource_name, $cache_id, $compile_id, $exp_time)
{
$cache_name = null;
-
if (isset($resource_name)) {
$source = Smarty_Template_Source::load(null, $smarty, $resource_name);
if ($source->exists) {
@@ -219,15 +242,14 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
return 0;
}
}
-
return $this->delete($cache_name, $cache_id, $compile_id, $exp_time);
}
/**
* Check is cache is locked for this template
*
- * @param Smarty $smarty Smarty object
- * @param Smarty_Template_Cached $cached cached object
+ * @param Smarty $smarty Smarty object
+ * @param Smarty_Template_Cached $cached cached object
*
* @return boolean true or false if cache is locked
*/
@@ -235,7 +257,6 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource
{
$id = $cached->lock_id;
$name = $cached->source->name . '.lock';
-
$mtime = $this->fetchTimestamp($id, $name, $cached->cache_id, $cached->compile_id);
if ($mtime === null) {
$this->fetch($id, $name, $cached->cache_id, $cached->compile_id, $content, $mtime);
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php b/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php
index ff065a278..59bf1d4a8 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php
@@ -47,8 +47,8 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
/**
* populate Cached Object with meta data from Resource
*
- * @param Smarty_Template_Cached $cached cached object
- * @param Smarty_Internal_Template $_template template object
+ * @param Smarty_Template_Cached $cached cached object
+ * @param Smarty_Internal_Template $_template template object
*
* @return void
*/
@@ -56,26 +56,32 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
{
$cached->filepath = $_template->source->uid . '#' . $this->sanitize($cached->source->resource) . '#' .
$this->sanitize($cached->cache_id) . '#' . $this->sanitize($cached->compile_id);
-
$this->populateTimestamp($cached);
}
/**
* populate Cached Object with timestamp and exists from Resource
*
- * @param Smarty_Template_Cached $cached cached object
+ * @param Smarty_Template_Cached $cached cached object
*
* @return void
*/
public function populateTimestamp(Smarty_Template_Cached $cached)
{
- if (!$this->fetch($cached->filepath, $cached->source->name, $cached->cache_id, $cached->compile_id, $content,
- $timestamp, $cached->source->uid)
+ if (!$this->fetch(
+ $cached->filepath,
+ $cached->source->name,
+ $cached->cache_id,
+ $cached->compile_id,
+ $content,
+ $timestamp,
+ $cached->source->uid
+ )
) {
return;
}
$cached->content = $content;
- $cached->timestamp = (int) $timestamp;
+ $cached->timestamp = (int)$timestamp;
$cached->exists = !!$cached->timestamp;
}
@@ -83,54 +89,60 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
* Read the cached template and process the header
*
* @param \Smarty_Internal_Template $_smarty_tpl do not change variable name, is used by compiled template
- * @param Smarty_Template_Cached $cached cached object
+ * @param Smarty_Template_Cached $cached cached object
* @param boolean $update flag if called because cache update
*
* @return boolean true or false if the cached content does not exist
*/
- public function process(Smarty_Internal_Template $_smarty_tpl, Smarty_Template_Cached $cached = null,
- $update = false)
- {
+ public function process(
+ Smarty_Internal_Template $_smarty_tpl,
+ Smarty_Template_Cached $cached = null,
+ $update = false
+ ) {
if (!$cached) {
$cached = $_smarty_tpl->cached;
}
$content = $cached->content ? $cached->content : null;
$timestamp = $cached->timestamp ? $cached->timestamp : null;
if ($content === null || !$timestamp) {
- if (!$this->fetch($_smarty_tpl->cached->filepath, $_smarty_tpl->source->name, $_smarty_tpl->cache_id,
- $_smarty_tpl->compile_id, $content, $timestamp, $_smarty_tpl->source->uid)
+ if (!$this->fetch(
+ $_smarty_tpl->cached->filepath,
+ $_smarty_tpl->source->name,
+ $_smarty_tpl->cache_id,
+ $_smarty_tpl->compile_id,
+ $content,
+ $timestamp,
+ $_smarty_tpl->source->uid
+ )
) {
return false;
}
}
if (isset($content)) {
eval('?>' . $content);
-
return true;
}
-
return false;
}
/**
* Write the rendered template output to cache
*
- * @param Smarty_Internal_Template $_template template object
- * @param string $content content to cache
+ * @param Smarty_Internal_Template $_template template object
+ * @param string $content content to cache
*
* @return boolean success
*/
public function writeCachedContent(Smarty_Internal_Template $_template, $content)
{
$this->addMetaTimestamp($content);
-
return $this->write(array($_template->cached->filepath => $content), $_template->cache_lifetime);
}
/**
* Read cached template from cache
*
- * @param Smarty_Internal_Template $_template template object
+ * @param Smarty_Internal_Template $_template template object
*
* @return string|false content
*/
@@ -139,8 +151,15 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
$content = $_template->cached->content ? $_template->cached->content : null;
$timestamp = null;
if ($content === null) {
- if (!$this->fetch($_template->cached->filepath, $_template->source->name, $_template->cache_id,
- $_template->compile_id, $content, $timestamp, $_template->source->uid)
+ if (!$this->fetch(
+ $_template->cached->filepath,
+ $_template->source->name,
+ $_template->cache_id,
+ $_template->compile_id,
+ $content,
+ $timestamp,
+ $_template->source->uid
+ )
) {
return false;
}
@@ -155,36 +174,36 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
* Empty cache
* {@internal the $exp_time argument is ignored altogether }}
*
- * @param Smarty $smarty Smarty object
- * @param integer $exp_time expiration time [being ignored]
+ * @param Smarty $smarty Smarty object
+ * @param integer $exp_time expiration time [being ignored]
*
* @return integer number of cache files deleted [always -1]
- * @uses purge() to clear the whole store
- * @uses invalidate() to mark everything outdated if purge() is inapplicable
+ * @uses purge() to clear the whole store
+ * @uses invalidate() to mark everything outdated if purge() is inapplicable
*/
public function clearAll(Smarty $smarty, $exp_time = null)
{
if (!$this->purge()) {
$this->invalidate(null);
}
- return - 1;
+ return -1;
}
/**
* Empty cache for a specific template
* {@internal the $exp_time argument is ignored altogether}}
*
- * @param Smarty $smarty Smarty object
- * @param string $resource_name template name
- * @param string $cache_id cache id
- * @param string $compile_id compile id
- * @param integer $exp_time expiration time [being ignored]
+ * @param Smarty $smarty Smarty object
+ * @param string $resource_name template name
+ * @param string $cache_id cache id
+ * @param string $compile_id compile id
+ * @param integer $exp_time expiration time [being ignored]
*
* @return int number of cache files deleted [always -1]
* @throws \SmartyException
- * @uses buildCachedFilepath() to generate the CacheID
- * @uses invalidate() to mark CacheIDs parent chain as outdated
- * @uses delete() to remove CacheID from cache
+ * @uses buildCachedFilepath() to generate the CacheID
+ * @uses invalidate() to mark CacheIDs parent chain as outdated
+ * @uses delete() to remove CacheID from cache
*/
public function clear(Smarty $smarty, $resource_name, $cache_id, $compile_id, $exp_time)
{
@@ -193,18 +212,17 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
$this->sanitize($compile_id);
$this->delete(array($cid));
$this->invalidate($cid, $resource_name, $cache_id, $compile_id, $uid);
- return - 1;
+ return -1;
}
/**
* Get template's unique ID
*
- * @param Smarty $smarty Smarty object
- * @param string $resource_name template name
+ * @param Smarty $smarty Smarty object
+ * @param string $resource_name template name
*
* @return string filepath of cache file
* @throws \SmartyException
- *
*/
protected function getTemplateUid(Smarty $smarty, $resource_name)
{
@@ -220,7 +238,7 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
/**
* Sanitize CacheID components
*
- * @param string $string CacheID component to sanitize
+ * @param string $string CacheID component to sanitize
*
* @return string sanitized CacheID component
*/
@@ -236,23 +254,28 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
/**
* Fetch and prepare a cache object.
*
- * @param string $cid CacheID to fetch
- * @param string $resource_name template name
- * @param string $cache_id cache id
- * @param string $compile_id compile id
- * @param string $content cached content
- * @param integer &$timestamp cached timestamp (epoch)
- * @param string $resource_uid resource's uid
+ * @param string $cid CacheID to fetch
+ * @param string $resource_name template name
+ * @param string $cache_id cache id
+ * @param string $compile_id compile id
+ * @param string $content cached content
+ * @param integer &$timestamp cached timestamp (epoch)
+ * @param string $resource_uid resource's uid
*
* @return boolean success
*/
- protected function fetch($cid, $resource_name = null, $cache_id = null, $compile_id = null, &$content = null,
- &$timestamp = null, $resource_uid = null)
- {
+ protected function fetch(
+ $cid,
+ $resource_name = null,
+ $cache_id = null,
+ $compile_id = null,
+ &$content = null,
+ &$timestamp = null,
+ $resource_uid = null
+ ) {
$t = $this->read(array($cid));
$content = !empty($t[ $cid ]) ? $t[ $cid ] : null;
$timestamp = null;
-
if ($content && ($timestamp = $this->getMetaTimestamp($content))) {
$invalidated =
$this->getLatestInvalidationTimestamp($cid, $resource_name, $cache_id, $compile_id, $resource_uid);
@@ -261,7 +284,6 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
$content = null;
}
}
-
return !!$content;
}
@@ -274,14 +296,14 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
protected function addMetaTimestamp(&$content)
{
$mt = explode(' ', microtime());
- $ts = pack('NN', $mt[ 1 ], (int) ($mt[ 0 ] * 100000000));
+ $ts = pack('NN', $mt[ 1 ], (int)($mt[ 0 ] * 100000000));
$content = $ts . $content;
}
/**
* Extract the timestamp the $content was cached
*
- * @param string &$content the cached content
+ * @param string &$content the cached content
*
* @return float the microtime the content was cached
*/
@@ -298,17 +320,21 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
/**
* Invalidate CacheID
*
- * @param string $cid CacheID
- * @param string $resource_name template name
- * @param string $cache_id cache id
- * @param string $compile_id compile id
- * @param string $resource_uid source's uid
+ * @param string $cid CacheID
+ * @param string $resource_name template name
+ * @param string $cache_id cache id
+ * @param string $compile_id compile id
+ * @param string $resource_uid source's uid
*
* @return void
*/
- protected function invalidate($cid = null, $resource_name = null, $cache_id = null, $compile_id = null,
- $resource_uid = null)
- {
+ protected function invalidate(
+ $cid = null,
+ $resource_name = null,
+ $cache_id = null,
+ $compile_id = null,
+ $resource_uid = null
+ ) {
$now = microtime(true);
$key = null;
// invalidate everything
@@ -339,17 +365,21 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
/**
* Determine the latest timestamp known to the invalidation chain
*
- * @param string $cid CacheID to determine latest invalidation timestamp of
- * @param string $resource_name template name
- * @param string $cache_id cache id
- * @param string $compile_id compile id
- * @param string $resource_uid source's filepath
+ * @param string $cid CacheID to determine latest invalidation timestamp of
+ * @param string $resource_name template name
+ * @param string $cache_id cache id
+ * @param string $compile_id compile id
+ * @param string $resource_uid source's filepath
*
* @return float the microtime the CacheID was invalidated
*/
- protected function getLatestInvalidationTimestamp($cid, $resource_name = null, $cache_id = null, $compile_id = null,
- $resource_uid = null)
- {
+ protected function getLatestInvalidationTimestamp(
+ $cid,
+ $resource_name = null,
+ $cache_id = null,
+ $compile_id = null,
+ $resource_uid = null
+ ) {
// abort if there is no CacheID
if (false && !$cid) {
return 0;
@@ -358,14 +388,12 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
if (!($_cid = $this->listInvalidationKeys($cid, $resource_name, $cache_id, $compile_id, $resource_uid))) {
return 0;
}
-
// there are no InValidationKeys
if (!($values = $this->read($_cid))) {
return 0;
}
// make sure we're dealing with floats
$values = array_map('floatval', $values);
-
return max($values);
}
@@ -373,18 +401,22 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
* Translate a CacheID into the list of applicable InvalidationKeys.
* Splits 'some|chain|into|an|array' into array( '#clearAll#', 'some', 'some|chain', 'some|chain|into', ... )
*
- * @param string $cid CacheID to translate
- * @param string $resource_name template name
- * @param string $cache_id cache id
- * @param string $compile_id compile id
- * @param string $resource_uid source's filepath
+ * @param string $cid CacheID to translate
+ * @param string $resource_name template name
+ * @param string $cache_id cache id
+ * @param string $compile_id compile id
+ * @param string $resource_uid source's filepath
*
* @return array list of InvalidationKeys
- * @uses $invalidationKeyPrefix to prepend to each InvalidationKey
+ * @uses $invalidationKeyPrefix to prepend to each InvalidationKey
*/
- protected function listInvalidationKeys($cid, $resource_name = null, $cache_id = null, $compile_id = null,
- $resource_uid = null)
- {
+ protected function listInvalidationKeys(
+ $cid,
+ $resource_name = null,
+ $cache_id = null,
+ $compile_id = null,
+ $resource_uid = null
+ ) {
$t = array('IVK#ALL');
$_name = $_compile = '#';
if ($resource_name) {
@@ -416,17 +448,16 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
$t[] = 'IVK#CACHE#' . $part;
$t[] = 'IVK#CID' . $_name . $part . $_compile;
// skip past delimiter position
- $i ++;
+ $i++;
}
-
return $t;
}
/**
* Check is cache is locked for this template
*
- * @param Smarty $smarty Smarty object
- * @param Smarty_Template_Cached $cached cached object
+ * @param Smarty $smarty Smarty object
+ * @param Smarty_Template_Cached $cached cached object
*
* @return boolean true or false if cache is locked
*/
@@ -434,7 +465,6 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
{
$key = 'LOCK#' . $cached->filepath;
$data = $this->read(array($key));
-
return $data && time() - $data[ $key ] < $smarty->locking_timeout;
}
@@ -471,7 +501,7 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
/**
* Read values for a set of keys from cache
*
- * @param array $keys list of keys to fetch
+ * @param array $keys list of keys to fetch
*
* @return array list of values with the given keys used as indexes
*/
@@ -480,8 +510,8 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
/**
* Save values for a set of keys to cache
*
- * @param array $keys list of values to save
- * @param int $expire expiration time
+ * @param array $keys list of values to save
+ * @param int $expire expiration time
*
* @return boolean true on success, false on failure
*/
@@ -490,7 +520,7 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
/**
* Remove values from cache
*
- * @param array $keys list of keys to delete
+ * @param array $keys list of keys to delete
*
* @return boolean true on success, false on failure
*/
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_data.php b/vendor/smarty/smarty/libs/sysplugins/smarty_data.php
index 743b117bf..2545ed3a8 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_data.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_data.php
@@ -22,7 +22,7 @@ class Smarty_Data extends Smarty_Internal_Data
*
* @var int
*/
- static $count = 0;
+ public static $count = 0;
/**
* Data block name
@@ -50,7 +50,7 @@ class Smarty_Data extends Smarty_Internal_Data
public function __construct($_parent = null, $smarty = null, $name = null)
{
parent::__construct();
- self::$count ++;
+ self::$count++;
$this->dataObjectName = 'Data_object ' . (isset($name) ? "'{$name}'" : self::$count);
$this->smarty = $smarty;
if (is_object($_parent)) {
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_block.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_block.php
index 780319f11..9956d642b 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_block.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_block.php
@@ -87,4 +87,4 @@ class Smarty_Internal_Block
public function callBlock(Smarty_Internal_Template $tpl)
{
}
-}
\ No newline at end of file
+}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php
index f6ef09306..61618449d 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php
@@ -7,6 +7,7 @@
* @author Uwe Tews
* @author Rodney Rehm
*/
+
/**
* This class does contain all necessary methods for the HTML cache on file system
* Implements the file system as resource for the HTML cache Version ussing nocache inserts.
@@ -32,11 +33,17 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource
$_filepath = sha1($source->uid . $smarty->_joined_template_dir);
$cached->filepath = $smarty->getCacheDir();
if (isset($_template->cache_id)) {
- $cached->filepath .= preg_replace(array('![^\w|]+!',
- '![|]+!'),
- array('_',
- $_compile_dir_sep),
- $_template->cache_id) . $_compile_dir_sep;
+ $cached->filepath .= preg_replace(
+ array(
+ '![^\w|]+!',
+ '![|]+!'
+ ),
+ array(
+ '_',
+ $_compile_dir_sep
+ ),
+ $_template->cache_id
+ ) . $_compile_dir_sep;
}
if (isset($_template->compile_id)) {
$cached->filepath .= preg_replace('![^\w]+!', '_', $_template->compile_id) . $_compile_dir_sep;
@@ -87,10 +94,11 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource
*
* @return boolean true or false if the cached content does not exist
*/
- public function process(Smarty_Internal_Template $_smarty_tpl,
- Smarty_Template_Cached $cached = null,
- $update = false)
- {
+ public function process(
+ Smarty_Internal_Template $_smarty_tpl,
+ Smarty_Template_Cached $cached = null,
+ $update = false
+ ) {
$_smarty_tpl->cached->valid = false;
if ($update && defined('HHVM_VERSION')) {
eval('?>' . file_get_contents($_smarty_tpl->cached->filepath));
@@ -111,15 +119,17 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource
*/
public function writeCachedContent(Smarty_Internal_Template $_template, $content)
{
- if ($_template->smarty->ext->_writeFile->writeFile($_template->cached->filepath,
- $content,
- $_template->smarty) === true
+ if ($_template->smarty->ext->_writeFile->writeFile(
+ $_template->cached->filepath,
+ $content,
+ $_template->smarty
+ ) === true
) {
- if (function_exists('opcache_invalidate') &&
- (!function_exists('ini_get') || strlen(ini_get('opcache.restrict_api'))) < 1
+ if (function_exists('opcache_invalidate')
+ && (!function_exists('ini_get') || strlen(ini_get('opcache.restrict_api'))) < 1
) {
opcache_invalidate($_template->cached->filepath, true);
- } else if (function_exists('apc_compile_file')) {
+ } elseif (function_exists('apc_compile_file')) {
apc_compile_file($_template->cached->filepath);
}
$cached = $_template->cached;
@@ -135,7 +145,7 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource
/**
* Read cached template from cache
*
- * @param Smarty_Internal_Template $_template template object
+ * @param Smarty_Internal_Template $_template template object
*
* @return string content
*/
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_append.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_append.php
index b3689e918..1a9befbf6 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_append.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_append.php
@@ -19,9 +19,9 @@ class Smarty_Internal_Compile_Append extends Smarty_Internal_Compile_Assign
/**
* Compiles code for the {append} tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
- * @param array $parameter array with compilation parameter
+ * @param array $parameter array with compilation parameter
*
* @return string compiled code
* @throws \SmartyCompilerException
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_assign.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_assign.php
index cb2ea4257..4b9984888 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_assign.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_assign.php
@@ -24,21 +24,23 @@ class Smarty_Internal_Compile_Assign extends Smarty_Internal_CompileBase
*/
public $option_flags = array('nocache', 'noscope');
- /**
+ /**
* Valid scope names
*
* @var array
*/
- public $valid_scopes = array('local' => Smarty::SCOPE_LOCAL, 'parent' => Smarty::SCOPE_PARENT,
- 'root' => Smarty::SCOPE_ROOT, 'global' => Smarty::SCOPE_GLOBAL,
- 'tpl_root' => Smarty::SCOPE_TPL_ROOT, 'smarty' => Smarty::SCOPE_SMARTY);
+ public $valid_scopes = array(
+ 'local' => Smarty::SCOPE_LOCAL, 'parent' => Smarty::SCOPE_PARENT,
+ 'root' => Smarty::SCOPE_ROOT, 'global' => Smarty::SCOPE_GLOBAL,
+ 'tpl_root' => Smarty::SCOPE_TPL_ROOT, 'smarty' => Smarty::SCOPE_SMARTY
+ );
/**
* Compiles code for the {assign} tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
- * @param array $parameter array with compilation parameter
+ * @param array $parameter array with compilation parameter
*
* @return string compiled code
* @throws \SmartyCompilerException
@@ -66,7 +68,7 @@ class Smarty_Internal_Compile_Assign extends Smarty_Internal_CompileBase
}
// scope setup
if ($_attr[ 'noscope' ]) {
- $_scope = - 1;
+ $_scope = -1;
} else {
$_scope = $compiler->convertScope($_attr, $this->valid_scopes);
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php
index 88d6f37e9..8ff15d8e5 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php
@@ -1,5 +1,5 @@
getAttributes($compiler, $args);
++$compiler->_cache[ 'blockNesting' ];
- $_className = 'Block_' . preg_replace('![^\w]+!', '_', uniqid(rand(), true));
+ $_className = 'Block_' . preg_replace('![^\w]+!', '_', uniqid(mt_rand(), true));
$compiler->_cache[ 'blockName' ][ $compiler->_cache[ 'blockNesting' ] ] = $_attr[ 'name' ];
$compiler->_cache[ 'blockClass' ][ $compiler->_cache[ 'blockNesting' ] ] = $_className;
$compiler->_cache[ 'blockParams' ][ $compiler->_cache[ 'blockNesting' ] ] = array();
$compiler->_cache[ 'blockParams' ][ 1 ][ 'subBlocks' ][ trim($_attr[ 'name' ], '"\'') ][] = $_className;
- $this->openTag($compiler,
- 'block',
- array($_attr, $compiler->nocache, $compiler->parser->current_buffer,
- $compiler->template->compiled->has_nocache_code,
- $compiler->template->caching));
+ $this->openTag(
+ $compiler,
+ 'block',
+ array(
+ $_attr, $compiler->nocache, $compiler->parser->current_buffer,
+ $compiler->template->compiled->has_nocache_code,
+ $compiler->template->caching
+ )
+ );
$compiler->saveRequiredPlugins(true);
$compiler->nocache = $compiler->nocache | $compiler->tag_nocache;
$compiler->parser->current_buffer = new Smarty_Internal_ParseTree_Template();
@@ -84,18 +90,18 @@ class Smarty_Internal_Compile_Block extends Smarty_Internal_Compile_Shared_Inher
$compiler->suppressNocacheProcessing = true;
}
}
+
/**
* Smarty Internal Plugin Compile BlockClose Class
- *
*/
class Smarty_Internal_Compile_Blockclose extends Smarty_Internal_Compile_Shared_Inheritance
{
/**
* Compiles code for the {/block} tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
- * @param array $parameter array with compilation parameter
+ * @param array $parameter array with compilation parameter
*
* @return bool true
*/
@@ -118,13 +124,12 @@ class Smarty_Internal_Compile_Blockclose extends Smarty_Internal_Compile_Shared_
$_functionCode = $compiler->parser->current_buffer;
// setup buffer for template function code
$compiler->parser->current_buffer = new Smarty_Internal_ParseTree_Template();
-
$output = " $value) {
- $output .= "public \${$property} = " . var_export($value,true) .";\n";
+ $output .= "public \${$property} = " . var_export($value, true) . ";\n";
}
$output .= "public function callBlock(Smarty_Internal_Template \$_smarty_tpl) {\n";
$output .= $compiler->compileRequiredPlugins();
@@ -136,9 +141,13 @@ class Smarty_Internal_Compile_Blockclose extends Smarty_Internal_Compile_Shared_
$output .= "ob_start();\n";
}
$output .= "?>\n";
- $compiler->parser->current_buffer->append_subtree($compiler->parser,
- new Smarty_Internal_ParseTree_Tag($compiler->parser,
- $output));
+ $compiler->parser->current_buffer->append_subtree(
+ $compiler->parser,
+ new Smarty_Internal_ParseTree_Tag(
+ $compiler->parser,
+ $output
+ )
+ );
$compiler->parser->current_buffer->append_subtree($compiler->parser, $_functionCode);
$output = "\n";
- $compiler->parser->current_buffer->append_subtree($compiler->parser,
- new Smarty_Internal_ParseTree_Tag($compiler->parser,
- $output));
+ $compiler->parser->current_buffer->append_subtree(
+ $compiler->parser,
+ new Smarty_Internal_ParseTree_Tag(
+ $compiler->parser,
+ $output
+ )
+ );
$compiler->blockOrFunctionCode .= $compiler->parser->current_buffer->to_smarty_php($compiler->parser);
$compiler->parser->current_buffer = new Smarty_Internal_ParseTree_Template();
// restore old status
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_child.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_child.php
index 1708f6482..588d18628 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_child.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_child.php
@@ -1,5 +1,5 @@
true, 'foreach' => true, 'while' => true, 'section' => true);
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
-
if ($_attr[ 'nocache' ] === true) {
$compiler->trigger_template_error('nocache option not allowed', null, true);
}
-
if (isset($_attr[ 'levels' ])) {
if (!is_numeric($_attr[ 'levels' ])) {
$compiler->trigger_template_error('level attribute must be a numeric constant', null, true);
@@ -101,18 +99,18 @@ class Smarty_Internal_Compile_Break extends Smarty_Internal_CompileBase
if ($level_count === 0) {
break;
}
- $level_count --;
+ $level_count--;
if ($compiler->_tag_stack[ $stack_count ][ 0 ] === 'foreach') {
- $foreachLevels ++;
+ $foreachLevels++;
}
}
- $stack_count --;
+ $stack_count--;
}
if ($level_count !== 0) {
$compiler->trigger_template_error("cannot {$this->tag} {$levels} level(s)", null, true);
}
if ($lastTag === 'foreach' && $this->tag === 'break' && $foreachLevels > 0) {
- $foreachLevels --;
+ $foreachLevels--;
}
return array($levels, $foreachLevels);
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_call.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_call.php
index eb444d357..445cabc60 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_call.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_call.php
@@ -43,8 +43,8 @@ class Smarty_Internal_Compile_Call extends Smarty_Internal_CompileBase
/**
* Compiles the calls of user defined tags defined by {function}
*
- * @param array $args array with attributes from parser
- * @param object $compiler compiler object
+ * @param array $args array with attributes from parser
+ * @param object $compiler compiler object
*
* @return string compiled code
*/
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php
index 564b1f63e..a4ffbc9ea 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php
@@ -35,29 +35,27 @@ class Smarty_Internal_Compile_Capture extends Smarty_Internal_CompileBase
/**
* Compiles code for the {$smarty.capture.xxx}
*
- * @param array $args array with attributes from parser
- * @param \Smarty_Internal_TemplateCompilerBase$compiler compiler object
- * @param array $parameter array with compilation parameter
+ * @param array $args array with attributes from parser
+ * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
+ * @param array $parameter array with compilation parameter
*
* @return string compiled code
- * @throws \SmartyCompilerException
*/
- public static function compileSpecialVariable($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter = null)
- {
- $tag = trim($parameter[ 0 ], '"\'');
- $name = isset($parameter[ 1 ]) ? $compiler->getId($parameter[ 1 ]) : null;
- if (!$name) {
- //$compiler->trigger_template_error("missing or illegal \$smarty.{$tag} name attribute", null, true);
- }
- return '$_smarty_tpl->smarty->ext->_capture->getBuffer($_smarty_tpl'.(isset($name)?", '{$name}')":')');
+ public static function compileSpecialVariable(
+ $args,
+ Smarty_Internal_TemplateCompilerBase $compiler,
+ $parameter = null
+ ) {
+ return '$_smarty_tpl->smarty->ext->_capture->getBuffer($_smarty_tpl' .
+ (isset($parameter[ 1 ]) ? ", {$parameter[ 1 ]})" : ')');
}
/**
* Compiles code for the {capture} tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
- * @param null $parameter
+ * @param null $parameter
*
* @return string compiled code
*/
@@ -65,16 +63,13 @@ class Smarty_Internal_Compile_Capture extends Smarty_Internal_CompileBase
{
// check and get attributes
$_attr = $this->getAttributes($compiler, $args, $parameter, 'capture');
-
$buffer = isset($_attr[ 'name' ]) ? $_attr[ 'name' ] : "'default'";
$assign = isset($_attr[ 'assign' ]) ? $_attr[ 'assign' ] : 'null';
$append = isset($_attr[ 'append' ]) ? $_attr[ 'append' ] : 'null';
-
$compiler->_cache[ 'capture_stack' ][] = array($compiler->nocache);
// maybe nocache because of nocache variables
$compiler->nocache = $compiler->nocache | $compiler->tag_nocache;
$_output = "smarty->ext->_capture->open(\$_smarty_tpl, $buffer, $assign, $append);?>";
-
return $_output;
}
}
@@ -90,9 +85,9 @@ class Smarty_Internal_Compile_CaptureClose extends Smarty_Internal_CompileBase
/**
* Compiles code for the {/capture} tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
- * @param null $parameter
+ * @param null $parameter
*
* @return string compiled code
*/
@@ -104,9 +99,7 @@ class Smarty_Internal_Compile_CaptureClose extends Smarty_Internal_CompileBase
if ($compiler->nocache) {
$compiler->tag_nocache = true;
}
-
list($compiler->nocache) = array_pop($compiler->_cache[ 'capture_stack' ]);
-
return "smarty->ext->_capture->close(\$_smarty_tpl);?>";
}
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_child.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_child.php
index 8c7bbdf05..f728c18bf 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_child.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_child.php
@@ -1,5 +1,5 @@
getAttributes($compiler, $args);
- $tag = isset($parameter[0]) ? "'{$parameter[0]}'" : "'{{$this->tag}}'";
+ $tag = isset($parameter[ 0 ]) ? "'{$parameter[0]}'" : "'{{$this->tag}}'";
if (!isset($compiler->_cache[ 'blockNesting' ])) {
- $compiler->trigger_template_error("{$tag} used outside {block} tags ",
- $compiler->parser->lex->taglineno);
+ $compiler->trigger_template_error(
+ "{$tag} used outside {block} tags ",
+ $compiler->parser->lex->taglineno
+ );
}
$compiler->has_code = true;
$compiler->suppressNocacheProcessing = true;
@@ -67,11 +69,11 @@ class Smarty_Internal_Compile_Child extends Smarty_Internal_CompileBase
$output .= "ob_start();\n";
}
$output .= '$_smarty_tpl->inheritance->call' . $this->blockType . '($_smarty_tpl, $this' .
- ($this->blockType === 'Child' ? '' : ", {$tag}"). ");\n";
+ ($this->blockType === 'Child' ? '' : ", {$tag}") . ");\n";
if (isset($_assign)) {
$output .= "\$_smarty_tpl->assign({$_assign}, ob_get_clean());\n";
}
- $output .="?>\n";
+ $output .= "?>\n";
return $output;
}
-}
\ No newline at end of file
+}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_config_load.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_config_load.php
index 7c6e9b59e..8fe64ee10 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_config_load.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_config_load.php
@@ -53,14 +53,16 @@ class Smarty_Internal_Compile_Config_Load extends Smarty_Internal_CompileBase
*
* @var array
*/
- public $valid_scopes = array('local' => Smarty::SCOPE_LOCAL, 'parent' => Smarty::SCOPE_PARENT,
- 'root' => Smarty::SCOPE_ROOT, 'tpl_root' => Smarty::SCOPE_TPL_ROOT,
- 'smarty' => Smarty::SCOPE_SMARTY, 'global' => Smarty::SCOPE_SMARTY);
+ public $valid_scopes = array(
+ 'local' => Smarty::SCOPE_LOCAL, 'parent' => Smarty::SCOPE_PARENT,
+ 'root' => Smarty::SCOPE_ROOT, 'tpl_root' => Smarty::SCOPE_TPL_ROOT,
+ 'smarty' => Smarty::SCOPE_SMARTY, 'global' => Smarty::SCOPE_SMARTY
+ );
/**
* Compiles code for the {config_load} tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
* @return string compiled code
@@ -70,11 +72,9 @@ class Smarty_Internal_Compile_Config_Load extends Smarty_Internal_CompileBase
{
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
-
if ($_attr[ 'nocache' ] === true) {
$compiler->trigger_template_error('nocache option not allowed', null, true);
}
-
// save possible attributes
$conf_file = $_attr[ 'file' ];
if (isset($_attr[ 'section' ])) {
@@ -84,15 +84,13 @@ class Smarty_Internal_Compile_Config_Load extends Smarty_Internal_CompileBase
}
// scope setup
if ($_attr[ 'noscope' ]) {
- $_scope = - 1;
+ $_scope = -1;
} else {
$_scope = $compiler->convertScope($_attr, $this->valid_scopes);
}
-
// create config object
$_output =
"smarty->ext->configLoad->_loadConfigFile(\$_smarty_tpl, {$conf_file}, {$section}, {$_scope});\n?>\n";
-
return $_output;
}
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php
index 19e5d4bee..e545728ee 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php
@@ -17,9 +17,9 @@
class Smarty_Internal_Compile_Continue extends Smarty_Internal_Compile_Break
{
/**
- * Tag name
- *
- * @var string
- */
+ * Tag name
+ *
+ * @var string
+ */
public $tag = 'continue';
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_debug.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_debug.php
index 1668e72e8..799416689 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_debug.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_debug.php
@@ -20,8 +20,8 @@ class Smarty_Internal_Compile_Debug extends Smarty_Internal_CompileBase
/**
* Compiles code for the {debug} tag
*
- * @param array $args array with attributes from parser
- * @param object $compiler compiler object
+ * @param array $args array with attributes from parser
+ * @param object $compiler compiler object
*
* @return string compiled code
*/
@@ -29,10 +29,8 @@ class Smarty_Internal_Compile_Debug extends Smarty_Internal_CompileBase
{
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
-
// compile always as nocache
$compiler->tag_nocache = true;
-
// display debug template
$_output =
"display_debug(\$_smarty_tpl);\n";
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_eval.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_eval.php
index 550f194e0..8e0174e3e 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_eval.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_eval.php
@@ -43,8 +43,8 @@ class Smarty_Internal_Compile_Eval extends Smarty_Internal_CompileBase
/**
* Compiles code for the {eval} tag
*
- * @param array $args array with attributes from parser
- * @param object $compiler compiler object
+ * @param array $args array with attributes from parser
+ * @param object $compiler compiler object
*
* @return string compiled code
*/
@@ -56,16 +56,15 @@ class Smarty_Internal_Compile_Eval extends Smarty_Internal_CompileBase
// output will be stored in a smarty variable instead of being displayed
$_assign = $_attr[ 'assign' ];
}
-
// create template object
- $_output = "\$_template = new {$compiler->smarty->template_class}('eval:'.{$_attr[ 'var' ]}, \$_smarty_tpl->smarty, \$_smarty_tpl);";
+ $_output =
+ "\$_template = new {$compiler->smarty->template_class}('eval:'.{$_attr[ 'var' ]}, \$_smarty_tpl->smarty, \$_smarty_tpl);";
//was there an assign attribute?
if (isset($_assign)) {
$_output .= "\$_smarty_tpl->assign($_assign,\$_template->fetch());";
} else {
$_output .= 'echo $_template->fetch();';
}
-
return "";
}
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_extends.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_extends.php
index 37bf8dd3f..d72d2b76f 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_extends.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_extends.php
@@ -1,5 +1,4 @@
compileEndChild($compiler);
}
@@ -108,28 +107,36 @@ class Smarty_Internal_Compile_Extends extends Smarty_Internal_Compile_Shared_Inh
$inlineUids = $match[ 1 ];
}
}
- $compiler->parser->template_postfix[] = new Smarty_Internal_ParseTree_Tag($compiler->parser,
- 'inheritance->endChild($_smarty_tpl' .
- (isset($template) ?
- ", {$template}{$inlineUids}" :
- '') . ");\n?>");
+ $compiler->parser->template_postfix[] = new Smarty_Internal_ParseTree_Tag(
+ $compiler->parser,
+ 'inheritance->endChild($_smarty_tpl' .
+ (isset($template) ?
+ ", {$template}{$inlineUids}" :
+ '') . ");\n?>"
+ );
}
/**
* Add code for including subtemplate to end of template
*
* @param \Smarty_Internal_TemplateCompilerBase $compiler
- * @param string $template subtemplate name
+ * @param string $template subtemplate name
*
* @throws \SmartyCompilerException
* @throws \SmartyException
*/
private function compileInclude(Smarty_Internal_TemplateCompilerBase $compiler, $template)
{
- $compiler->parser->template_postfix[] = new Smarty_Internal_ParseTree_Tag($compiler->parser,
- $compiler->compileTag('include',
- array($template,
- array('scope' => 'parent'))));
+ $compiler->parser->template_postfix[] = new Smarty_Internal_ParseTree_Tag(
+ $compiler->parser,
+ $compiler->compileTag(
+ 'include',
+ array(
+ $template,
+ array('scope' => 'parent')
+ )
+ )
+ );
}
/**
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php
index 79848e521..3f113e56d 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php
@@ -26,15 +26,15 @@ class Smarty_Internal_Compile_For extends Smarty_Internal_CompileBase
* The parser is generating different sets of attribute by which this compiler can
* determine which syntax is used.
*
- * @param array $args array with attributes from parser
- * @param object $compiler compiler object
- * @param array $parameter array with compilation parameter
+ * @param array $args array with attributes from parser
+ * @param object $compiler compiler object
+ * @param array $parameter array with compilation parameter
*
* @return string compiled code
*/
public function compile($args, $compiler, $parameter)
{
- $compiler->loopNesting ++;
+ $compiler->loopNesting++;
if ($parameter === 0) {
$this->required_attributes = array('start', 'to');
$this->optional_attributes = array('max', 'step');
@@ -45,7 +45,6 @@ class Smarty_Internal_Compile_For extends Smarty_Internal_CompileBase
$this->mapCache = array();
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
-
$output = "tpl_vars[$var]->last = \$_smarty_tpl->tpl_vars[$var]->iteration === \$_smarty_tpl->tpl_vars[$var]->total;";
}
$output .= '?>';
-
$this->openTag($compiler, 'for', array('for', $compiler->nocache));
// maybe nocache because of nocache variables
$compiler->nocache = $compiler->nocache | $compiler->tag_nocache;
@@ -113,9 +111,9 @@ class Smarty_Internal_Compile_Forelse extends Smarty_Internal_CompileBase
/**
* Compiles code for the {forelse} tag
*
- * @param array $args array with attributes from parser
- * @param object $compiler compiler object
- * @param array $parameter array with compilation parameter
+ * @param array $args array with attributes from parser
+ * @param object $compiler compiler object
+ * @param array $parameter array with compilation parameter
*
* @return string compiled code
*/
@@ -123,10 +121,8 @@ class Smarty_Internal_Compile_Forelse extends Smarty_Internal_CompileBase
{
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
-
list($openTag, $nocache) = $this->closeTag($compiler, array('for'));
$this->openTag($compiler, 'forelse', array('forelse', $nocache));
-
return "";
}
}
@@ -142,24 +138,22 @@ class Smarty_Internal_Compile_Forclose extends Smarty_Internal_CompileBase
/**
* Compiles code for the {/for} tag
*
- * @param array $args array with attributes from parser
- * @param object $compiler compiler object
- * @param array $parameter array with compilation parameter
+ * @param array $args array with attributes from parser
+ * @param object $compiler compiler object
+ * @param array $parameter array with compilation parameter
*
* @return string compiled code
*/
public function compile($args, $compiler, $parameter)
{
- $compiler->loopNesting --;
+ $compiler->loopNesting--;
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
// must endblock be nocache?
if ($compiler->nocache) {
$compiler->tag_nocache = true;
}
-
list($openTag, $compiler->nocache) = $this->closeTag($compiler, array('for', 'forelse'));
-
$output = "loopNesting ++;
+ $compiler->loopNesting++;
// init
$this->isNamed = false;
// check and get attributes
@@ -119,14 +119,16 @@ class Smarty_Internal_Compile_Foreach extends Smarty_Internal_Compile_Private_Fo
if ($fromName) {
foreach (array('item', 'key') as $a) {
if (isset($attributes[ $a ]) && $attributes[ $a ] === $fromName) {
- $compiler->trigger_template_error("'{$a}' and 'from' may not have same variable name '{$fromName}'",
- null, true);
+ $compiler->trigger_template_error(
+ "'{$a}' and 'from' may not have same variable name '{$fromName}'",
+ null,
+ true
+ );
}
}
}
-
$itemVar = "\$_smarty_tpl->tpl_vars['{$item}']";
- $local = '$__foreach_' . $attributes[ 'item' ] . '_' . $this->counter ++ . '_';
+ $local = '$__foreach_' . $attributes[ 'item' ] . '_' . $this->counter++ . '_';
// search for used tag attributes
$itemAttr = array();
$namedAttr = array();
@@ -187,8 +189,11 @@ class Smarty_Internal_Compile_Foreach extends Smarty_Internal_Compile_Private_Fo
}
$needTotal = isset($itemAttr[ 'total' ]);
// Register tag
- $this->openTag($compiler, 'foreach',
- array('foreach', $compiler->nocache, $local, $itemVar, empty($itemAttr) ? 1 : 2));
+ $this->openTag(
+ $compiler,
+ 'foreach',
+ array('foreach', $compiler->nocache, $local, $itemVar, empty($itemAttr) ? 1 : 2)
+ );
// maybe nocache because of nocache variables
$compiler->nocache = $compiler->nocache | $compiler->tag_nocache;
// generate output code
@@ -249,7 +254,6 @@ class Smarty_Internal_Compile_Foreach extends Smarty_Internal_Compile_Private_Fo
$output .= "{$local}saved = {$itemVar};\n";
}
$output .= '?>';
-
return $output;
}
@@ -277,7 +281,7 @@ class Smarty_Internal_Compile_Foreachelse extends Smarty_Internal_CompileBase
/**
* Compiles code for the {foreachelse} tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
* @return string compiled code
@@ -286,7 +290,6 @@ class Smarty_Internal_Compile_Foreachelse extends Smarty_Internal_CompileBase
{
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
-
list($openTag, $nocache, $local, $itemVar, $restore) = $this->closeTag($compiler, array('foreach'));
$this->openTag($compiler, 'foreachelse', array('foreachelse', $nocache, $local, $itemVar, 0));
$output = "loopNesting --;
+ $compiler->loopNesting--;
// must endblock be nocache?
if ($compiler->nocache) {
$compiler->tag_nocache = true;
}
-
- list($openTag, $compiler->nocache, $local, $itemVar, $restore) =
- $this->closeTag($compiler, array('foreach', 'foreachelse'));
+ list(
+ $openTag, $compiler->nocache, $local, $itemVar, $restore
+ ) = $this->closeTag($compiler, array('foreach', 'foreachelse'));
$output = "getAttributes($compiler, $args);
-
if ($_attr[ 'nocache' ] === true) {
$compiler->trigger_template_error('nocache option not allowed', null, true);
}
unset($_attr[ 'nocache' ]);
$_name = trim($_attr[ 'name' ], '\'"');
$compiler->parent_compiler->tpl_function[ $_name ] = array();
- $save = array($_attr, $compiler->parser->current_buffer, $compiler->template->compiled->has_nocache_code,
- $compiler->template->caching);
+ $save = array(
+ $_attr, $compiler->parser->current_buffer, $compiler->template->compiled->has_nocache_code,
+ $compiler->template->caching
+ );
$this->openTag($compiler, 'function', $save);
// Init temporary context
$compiler->parser->current_buffer = new Smarty_Internal_ParseTree_Template();
@@ -80,7 +80,6 @@ class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase
*/
class Smarty_Internal_Compile_Functionclose extends Smarty_Internal_CompileBase
{
-
/**
* Compiler object
*
@@ -91,7 +90,7 @@ class Smarty_Internal_Compile_Functionclose extends Smarty_Internal_CompileBase
/**
* Compiles code for the {/function} tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param object|\Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
* @return bool true
@@ -125,7 +124,6 @@ class Smarty_Internal_Compile_Functionclose extends Smarty_Internal_CompileBase
$_functionCode = $compiler->parser->current_buffer;
// setup buffer for template function code
$compiler->parser->current_buffer = new Smarty_Internal_ParseTree_Template();
-
$_funcName = "smarty_template_function_{$_name}_{$compiler->template->compiled->nocache_hash}";
$_funcNameCaching = $_funcName . '_nocache';
if ($compiler->template->compiled->has_nocache_code) {
@@ -143,9 +141,13 @@ class Smarty_Internal_Compile_Functionclose extends Smarty_Internal_CompileBase
$output .= "echo \"/*%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%*/smarty->ext->_tplFunction->saveTemplateVariables(\\\$_smarty_tpl, '{$_name}');\nforeach (\$params as \\\$key => \\\$value) {\n\\\$_smarty_tpl->tpl_vars[\\\$key] = new Smarty_Variable(\\\$value, \\\$_smarty_tpl->isRenderingCache);\n}\n?>";
$output .= "/*/%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%*/\";?>";
- $compiler->parser->current_buffer->append_subtree($compiler->parser,
- new Smarty_Internal_ParseTree_Tag($compiler->parser,
- $output));
+ $compiler->parser->current_buffer->append_subtree(
+ $compiler->parser,
+ new Smarty_Internal_ParseTree_Tag(
+ $compiler->parser,
+ $output
+ )
+ );
$compiler->parser->current_buffer->append_subtree($compiler->parser, $_functionCode);
$output = "template->compiled->nocache_hash}%%*/smarty->ext->_tplFunction->restoreTemplateVariables(\\\$_smarty_tpl, '{$_name}');?>\n";
@@ -154,13 +156,21 @@ class Smarty_Internal_Compile_Functionclose extends Smarty_Internal_CompileBase
$output .= "}\n}\n";
$output .= "/*/ {$_funcName}_nocache */\n\n";
$output .= "?>\n";
- $compiler->parser->current_buffer->append_subtree($compiler->parser,
- new Smarty_Internal_ParseTree_Tag($compiler->parser,
- $output));
- $_functionCode = new Smarty_Internal_ParseTree_Tag($compiler->parser,
- preg_replace_callback("/((<\?php )?echo '\/\*%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%\*\/([\S\s]*?)\/\*\/%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%\*\/';(\?>\n)?)/",
- array($this, 'removeNocache'),
- $_functionCode->to_smarty_php($compiler->parser)));
+ $compiler->parser->current_buffer->append_subtree(
+ $compiler->parser,
+ new Smarty_Internal_ParseTree_Tag(
+ $compiler->parser,
+ $output
+ )
+ );
+ $_functionCode = new Smarty_Internal_ParseTree_Tag(
+ $compiler->parser,
+ preg_replace_callback(
+ "/((<\?php )?echo '\/\*%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%\*\/([\S\s]*?)\/\*\/%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%\*\/';(\?>\n)?)/",
+ array($this, 'removeNocache'),
+ $_functionCode->to_smarty_php($compiler->parser)
+ )
+ );
}
$compiler->parent_compiler->tpl_function[ $_name ][ 'call_name' ] = $_funcName;
$output = " \$value) {\n\$_smarty_tpl->tpl_vars[\$key] = new Smarty_Variable(\$value, \$_smarty_tpl->isRenderingCache);\n}\n";
- $output .= $compiler->compileCheckPlugins(array_merge($compiler->required_plugins[ 'compiled' ], $compiler->required_plugins[ 'nocache' ]));
+ $output .= $compiler->compileCheckPlugins(array_merge($compiler->required_plugins[ 'compiled' ],
+ $compiler->required_plugins[ 'nocache' ]));
$output .= "?>\n";
- $compiler->parser->current_buffer->append_subtree($compiler->parser,
- new Smarty_Internal_ParseTree_Tag($compiler->parser,
- $output));
+ $compiler->parser->current_buffer->append_subtree(
+ $compiler->parser,
+ new Smarty_Internal_ParseTree_Tag(
+ $compiler->parser,
+ $output
+ )
+ );
$compiler->parser->current_buffer->append_subtree($compiler->parser, $_functionCode);
$output = "\n";
- $compiler->parser->current_buffer->append_subtree($compiler->parser,
- new Smarty_Internal_ParseTree_Tag($compiler->parser,
- $output));
+ $compiler->parser->current_buffer->append_subtree(
+ $compiler->parser,
+ new Smarty_Internal_ParseTree_Tag(
+ $compiler->parser,
+ $output
+ )
+ );
$compiler->parent_compiler->blockOrFunctionCode .= $compiler->parser->current_buffer->to_smarty_php($compiler->parser);
- // restore old buffer
+ // restore old buffer
$compiler->parser->current_buffer = $saved_data[ 1 ];
// restore old status
$compiler->restoreRequiredPlugins();
@@ -198,11 +217,14 @@ class Smarty_Internal_Compile_Functionclose extends Smarty_Internal_CompileBase
*
* @return string
*/
- function removeNocache($match)
+ public function removeNocache($match)
{
$code =
- preg_replace("/((<\?php )?echo '\/\*%%SmartyNocache:{$this->compiler->template->compiled->nocache_hash}%%\*\/)|(\/\*\/%%SmartyNocache:{$this->compiler->template->compiled->nocache_hash}%%\*\/';(\?>\n)?)/",
- '', $match[ 0 ]);
+ preg_replace(
+ "/((<\?php )?echo '\/\*%%SmartyNocache:{$this->compiler->template->compiled->nocache_hash}%%\*\/)|(\/\*\/%%SmartyNocache:{$this->compiler->template->compiled->nocache_hash}%%\*\/';(\?>\n)?)/",
+ '',
+ $match[ 0 ]
+ );
$code = str_replace(array('\\\'', '\\\\\''), array('\'', '\\\''), $code);
return $code;
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php
index 82436c266..df3dc3fad 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php
@@ -33,11 +33,9 @@ class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBase
$this->openTag($compiler, 'if', array(1, $compiler->nocache));
// must whole block be nocache ?
$compiler->nocache = $compiler->nocache | $compiler->tag_nocache;
-
- if (!isset($parameter['if condition'])) {
+ if (!isset($parameter[ 'if condition' ])) {
$compiler->trigger_template_error('missing if condition', null, true);
}
-
if (is_array($parameter[ 'if condition' ])) {
if (is_array($parameter[ 'if condition' ][ 'var' ])) {
$var = $parameter[ 'if condition' ][ 'var' ][ 'var' ];
@@ -55,8 +53,11 @@ class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBase
$assignCompiler = new Smarty_Internal_Compile_Assign();
if (is_array($parameter[ 'if condition' ][ 'var' ])) {
$assignAttr[][ 'var' ] = $parameter[ 'if condition' ][ 'var' ][ 'var' ];
- $_output .= $assignCompiler->compile($assignAttr, $compiler,
- array('smarty_internal_index' => $parameter[ 'if condition' ][ 'var' ][ 'smarty_internal_index' ]));
+ $_output .= $assignCompiler->compile(
+ $assignAttr,
+ $compiler,
+ array('smarty_internal_index' => $parameter[ 'if condition' ][ 'var' ][ 'smarty_internal_index' ])
+ );
} else {
$assignAttr[][ 'var' ] = $parameter[ 'if condition' ][ 'var' ];
$_output .= $assignCompiler->compile($assignAttr, $compiler, array());
@@ -84,12 +85,11 @@ class Smarty_Internal_Compile_Else extends Smarty_Internal_CompileBase
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
* @return string compiled code
- */
+ */
public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
{
list($nesting, $compiler->tag_nocache) = $this->closeTag($compiler, array('if', 'elseif'));
$this->openTag($compiler, 'else', array($nesting, $compiler->tag_nocache));
-
return '';
}
}
@@ -116,13 +116,10 @@ class Smarty_Internal_Compile_Elseif extends Smarty_Internal_CompileBase
{
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
-
list($nesting, $compiler->tag_nocache) = $this->closeTag($compiler, array('if', 'elseif'));
-
- if (!isset($parameter['if condition'])) {
+ if (!isset($parameter[ 'if condition' ])) {
$compiler->trigger_template_error('missing elseif condition', null, true);
}
-
$assignCode = '';
$var = '';
if (is_array($parameter[ 'if condition' ])) {
@@ -143,8 +140,11 @@ class Smarty_Internal_Compile_Elseif extends Smarty_Internal_CompileBase
$assignAttr[][ 'value' ] = $prefixVar;
if (is_array($parameter[ 'if condition' ][ 'var' ])) {
$assignAttr[][ 'var' ] = $parameter[ 'if condition' ][ 'var' ][ 'var' ];
- $assignCode .= $assignCompiler->compile($assignAttr, $compiler,
- array('smarty_internal_index' => $parameter[ 'if condition' ][ 'var' ][ 'smarty_internal_index' ]));
+ $assignCode .= $assignCompiler->compile(
+ $assignAttr,
+ $compiler,
+ array('smarty_internal_index' => $parameter[ 'if condition' ][ 'var' ][ 'smarty_internal_index' ])
+ );
} else {
$assignAttr[][ 'var' ] = $parameter[ 'if condition' ][ 'var' ];
$assignCode .= $assignCompiler->compile($assignAttr, $compiler, array());
@@ -152,7 +152,6 @@ class Smarty_Internal_Compile_Elseif extends Smarty_Internal_CompileBase
} else {
$condition_by_assign = false;
}
-
$prefixCode = $compiler->getPrefixCode();
if (empty($prefixCode)) {
if ($condition_by_assign) {
@@ -200,10 +199,9 @@ class Smarty_Internal_Compile_Ifclose extends Smarty_Internal_CompileBase
}
list($nesting, $compiler->nocache) = $this->closeTag($compiler, array('if', 'else', 'elseif'));
$tmp = '';
- for ($i = 0; $i < $nesting; $i ++) {
+ for ($i = 0; $i < $nesting; $i++) {
$tmp .= '}';
}
-
return "";
}
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include.php
index 70f22546c..716c91d49 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include.php
@@ -7,6 +7,7 @@
* @subpackage Compiler
* @author Uwe Tews
*/
+
/**
* Smarty Internal Plugin Compile Include Class
*
@@ -19,6 +20,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
* caching mode to create nocache code but no cache file
*/
const CACHING_NOCACHE_CODE = 9999;
+
/**
* Attribute definition: Overwrites base class.
*
@@ -26,6 +28,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
* @see Smarty_Internal_CompileBase
*/
public $required_attributes = array('file');
+
/**
* Attribute definition: Overwrites base class.
*
@@ -33,6 +36,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
* @see Smarty_Internal_CompileBase
*/
public $shorttag_order = array('file');
+
/**
* Attribute definition: Overwrites base class.
*
@@ -40,6 +44,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
* @see Smarty_Internal_CompileBase
*/
public $option_flags = array('nocache', 'inline', 'caching');
+
/**
* Attribute definition: Overwrites base class.
*
@@ -47,20 +52,23 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
* @see Smarty_Internal_CompileBase
*/
public $optional_attributes = array('_any');
+
/**
* Valid scope names
*
* @var array
*/
- public $valid_scopes = array('parent' => Smarty::SCOPE_PARENT, 'root' => Smarty::SCOPE_ROOT,
- 'global' => Smarty::SCOPE_GLOBAL, 'tpl_root' => Smarty::SCOPE_TPL_ROOT,
- 'smarty' => Smarty::SCOPE_SMARTY);
+ public $valid_scopes = array(
+ 'parent' => Smarty::SCOPE_PARENT, 'root' => Smarty::SCOPE_ROOT,
+ 'global' => Smarty::SCOPE_GLOBAL, 'tpl_root' => Smarty::SCOPE_TPL_ROOT,
+ 'smarty' => Smarty::SCOPE_SMARTY
+ );
/**
* Compiles code for the {include} tag
*
- * @param array $args array with attributes from parser
- * @param Smarty_Internal_SmartyTemplateCompiler $compiler compiler object
+ * @param array $args array with attributes from parser
+ * @param Smarty_Internal_SmartyTemplateCompiler $compiler compiler object
*
* @return string
* @throws \Exception
@@ -193,9 +201,14 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
$t_hash = sha1($c_id . ($_caching ? '--caching' : '--nocaching'));
$compiler->smarty->allow_ambiguous_resources = true;
/* @var Smarty_Internal_Template $tpl */
- $tpl = new $compiler->smarty->template_class (trim($fullResourceName, '"\''), $compiler->smarty,
- $compiler->template, $compiler->template->cache_id, $c_id,
- $_caching);
+ $tpl = new $compiler->smarty->template_class(
+ trim($fullResourceName, '"\''),
+ $compiler->smarty,
+ $compiler->template,
+ $compiler->template->cache_id,
+ $c_id,
+ $_caching
+ );
$uid = $tpl->source->type . $tpl->source->uid;
if (!isset($compiler->parent_compiler->mergedSubTemplatesData[ $uid ][ $t_hash ])) {
$has_compiled_template = $this->compileInlineTemplate($compiler, $tpl, $t_hash);
@@ -269,16 +282,17 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
*
* @param \Smarty_Internal_SmartyTemplateCompiler $compiler
* @param \Smarty_Internal_Template $tpl
- * @param string $t_hash
+ * @param string $t_hash
*
* @return bool
* @throws \Exception
* @throws \SmartyException
*/
- public function compileInlineTemplate(Smarty_Internal_SmartyTemplateCompiler $compiler,
- Smarty_Internal_Template $tpl,
- $t_hash)
- {
+ public function compileInlineTemplate(
+ Smarty_Internal_SmartyTemplateCompiler $compiler,
+ Smarty_Internal_Template $tpl,
+ $t_hash
+ ) {
$uid = $tpl->source->type . $tpl->source->uid;
if (!($tpl->source->handler->uncompiled) && $tpl->source->exists) {
$compiler->parent_compiler->mergedSubTemplatesData[ $uid ][ $t_hash ][ 'uid' ] = $tpl->source->uid;
@@ -317,9 +331,11 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
if ($tpl->compiled->has_nocache_code) {
// replace nocache_hash
$compiled_code =
- str_replace("{$tpl->compiled->nocache_hash}",
- $compiler->template->compiled->nocache_hash,
- $compiled_code);
+ str_replace(
+ "{$tpl->compiled->nocache_hash}",
+ $compiler->template->compiled->nocache_hash,
+ $compiled_code
+ );
$compiler->template->compiled->has_nocache_code = true;
}
$compiler->parent_compiler->mergedSubTemplatesCode[ $tpl->compiled->unifunc ] = $compiled_code;
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include_php.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include_php.php
index e0aca93b3..1b0fdaad3 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include_php.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include_php.php
@@ -7,6 +7,7 @@
* @subpackage Compiler
* @author Uwe Tews
*/
+
/**
* Smarty Internal Plugin Compile Insert Class
*
@@ -42,7 +43,7 @@ class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase
/**
* Compiles code for the {include_php} tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
* @return string
@@ -56,7 +57,10 @@ class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase
}
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
- /** @var Smarty_Internal_Template $_smarty_tpl
+ /**
+ *
+ *
+ * @var Smarty_Internal_Template $_smarty_tpl
* used in evaluated code
*/
$_smarty_tpl = $compiler->template;
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_insert.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_insert.php
index e71abdce3..56fbc5615 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_insert.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_insert.php
@@ -23,6 +23,7 @@ class Smarty_Internal_Compile_Insert extends Smarty_Internal_CompileBase
* @see Smarty_Internal_CompileBase
*/
public $required_attributes = array('name');
+
/**
* Attribute definition: Overwrites base class.
*
@@ -30,6 +31,7 @@ class Smarty_Internal_Compile_Insert extends Smarty_Internal_CompileBase
* @see Smarty_Internal_CompileBase
*/
public $shorttag_order = array('name');
+
/**
* Attribute definition: Overwrites base class.
*
@@ -41,7 +43,7 @@ class Smarty_Internal_Compile_Insert extends Smarty_Internal_CompileBase
/**
* Compiles code for the {insert} tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
* @return string compiled code
@@ -104,11 +106,13 @@ class Smarty_Internal_Compile_Insert extends Smarty_Internal_CompileBase
}
// code for script file loading
$_output .= "require_once '{$_filepath}' ;";
- require_once $_filepath;
+ include_once $_filepath;
if (!is_callable($_function)) {
- $compiler->trigger_template_error(" {insert} function '{$_function}' is not callable in script file '{$_script}'",
- null,
- true);
+ $compiler->trigger_template_error(
+ " {insert} function '{$_function}' is not callable in script file '{$_script}'",
+ null,
+ true
+ );
}
} else {
$_filepath = 'null';
@@ -117,9 +121,11 @@ class Smarty_Internal_Compile_Insert extends Smarty_Internal_CompileBase
if (!is_callable($_function)) {
// try plugin
if (!$_function = $compiler->getPlugin($_name, 'insert')) {
- $compiler->trigger_template_error("{insert} no function or plugin found for '{$_name}'",
- null,
- true);
+ $compiler->trigger_template_error(
+ "{insert} no function or plugin found for '{$_name}'",
+ null,
+ true
+ );
}
}
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php
index c22e1a637..5493d4ecc 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php
@@ -16,11 +16,11 @@
*/
class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase
{
- /**
+ /**
* Compiles code for the {ldelim} tag
* This tag does output the left delimiter
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
* @return string compiled code
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_make_nocache.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_make_nocache.php
index f793ecbbf..8a34ccd0a 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_make_nocache.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_make_nocache.php
@@ -41,11 +41,11 @@ class Smarty_Internal_Compile_Make_Nocache extends Smarty_Internal_CompileBase
/**
* Compiles code for the {make_nocache} tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
* @return string compiled code
- */
+ */
public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
{
// check and get attributes
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php
index b29a993aa..12f64ed2e 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php
@@ -27,7 +27,7 @@ class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase
* Compiles code for the {nocache} tag
* This tag does not generate compiled output. It only sets a compiler flag.
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
* @return bool
@@ -40,7 +40,6 @@ class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase
$compiler->nocache = true;
// this tag does not return compiled code
$compiler->has_code = false;
-
return true;
}
}
@@ -57,7 +56,7 @@ class Smarty_Internal_Compile_Nocacheclose extends Smarty_Internal_CompileBase
* Compiles code for the {/nocache} tag
* This tag does not generate compiled output. It only sets a compiler flag.
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
* @return bool
@@ -69,7 +68,6 @@ class Smarty_Internal_Compile_Nocacheclose extends Smarty_Internal_CompileBase
list($compiler->nocache) = $this->closeTag($compiler, array('nocache'));
// this tag does not return compiled code
$compiler->has_code = false;
-
return true;
}
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_parent.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_parent.php
index 052479aef..ff23edf73 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_parent.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_parent.php
@@ -1,5 +1,5 @@
getAttributes($compiler, $args);
- $this->nesting ++;
+ $this->nesting++;
unset($_attr[ 'nocache' ]);
list($callback, $_paramsArray, $callable) = $this->setup($compiler, $_attr, $tag, $function);
$_params = 'array(' . implode(',', $_paramsArray) . ')';
-
// compile code
$output = "tag_nocache = true;
}
// closing tag of block plugin, restore nocache
- list($_params, $compiler->nocache, $callback) = $this->closeTag($compiler, substr($tag, 0, - 5));
+ list($_params, $compiler->nocache, $callback) = $this->closeTag($compiler, substr($tag, 0, -5));
// compile code
if (!isset($parameter[ 'modifier_list' ])) {
$mod_pre = $mod_post = $mod_content = '';
@@ -84,11 +83,17 @@ class Smarty_Internal_Compile_Private_Block_Plugin extends Smarty_Internal_Compi
$mod_content2 = "\$_block_content{$this->nesting}";
$mod_content = "\$_block_content{$this->nesting} = ob_get_clean();\n";
$mod_pre = "ob_start();\n";
- $mod_post = 'echo ' . $compiler->compileTag('private_modifier', array(),
- array('modifierlist' => $parameter[ 'modifier_list' ],
- 'value' => 'ob_get_clean()')) . ";\n";
+ $mod_post = 'echo ' . $compiler->compileTag(
+ 'private_modifier',
+ array(),
+ array(
+ 'modifierlist' => $parameter[ 'modifier_list' ],
+ 'value' => 'ob_get_clean()'
+ )
+ ) . ";\n";
}
- $output = "smarty->_cache[\'_tag_stack\']);?>';
}
return $output;
@@ -98,9 +103,9 @@ class Smarty_Internal_Compile_Private_Block_Plugin extends Smarty_Internal_Compi
* Setup callback and parameter array
*
* @param \Smarty_Internal_TemplateCompilerBase $compiler
- * @param array $_attr attributes
- * @param string $tag
- * @param string $function
+ * @param array $_attr attributes
+ * @param string $tag
+ * @param string $function
*
* @return array
*/
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_foreachsection.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_foreachsection.php
index 5161da645..d3aab24bb 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_foreachsection.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_foreachsection.php
@@ -16,28 +16,6 @@
*/
class Smarty_Internal_Compile_Private_ForeachSection extends Smarty_Internal_CompileBase
{
-
- /**
- * Preg search pattern
- *
- * @var string
- */
- private $propertyPreg = '';
-
- /**
- * Offsets in preg match result
- *
- * @var array
- */
- private $resultOffsets = array();
-
- /**
- * Start offset
- *
- * @var int
- */
- private $startOffset = 0;
-
/**
* Name of this tag
*
@@ -71,10 +49,31 @@ class Smarty_Internal_Compile_Private_ForeachSection extends Smarty_Internal_Com
*/
public $matchResults = array();
+ /**
+ * Preg search pattern
+ *
+ * @var string
+ */
+ private $propertyPreg = '';
+
+ /**
+ * Offsets in preg match result
+ *
+ * @var array
+ */
+ private $resultOffsets = array();
+
+ /**
+ * Start offset
+ *
+ * @var int
+ */
+ private $startOffset = 0;
+
/**
* Scan sources for used tag attributes
*
- * @param array $attributes
+ * @param array $attributes
* @param \Smarty_Internal_TemplateCompilerBase $compiler
*
* @throws \SmartyException
@@ -82,10 +81,10 @@ class Smarty_Internal_Compile_Private_ForeachSection extends Smarty_Internal_Com
public function scanForProperties($attributes, Smarty_Internal_TemplateCompilerBase $compiler)
{
$this->propertyPreg = '~(';
- $this->startOffset = 0;
+ $this->startOffset = 1;
$this->resultOffsets = array();
$this->matchResults = array('named' => array(), 'item' => array());
- if ($this->isNamed) {
+ if (isset($attributes[ 'name' ])) {
$this->buildPropertyPreg(true, $attributes);
}
if (isset($this->itemProperties)) {
@@ -112,19 +111,19 @@ class Smarty_Internal_Compile_Private_ForeachSection extends Smarty_Internal_Com
public function buildPropertyPreg($named, $attributes)
{
if ($named) {
- $this->resultOffsets[ 'named' ] = $this->startOffset + 4;
- $this->propertyPreg .= "(([\$]smarty[.]{$this->tagName}[.]" . ($this->tagName === 'section' ? "|[\[]\s*" : '')
- . "){$attributes['name']}[.](";
+ $this->resultOffsets[ 'named' ] = $this->startOffset = $this->startOffset + 3;
+ $this->propertyPreg .= "(([\$]smarty[.]{$this->tagName}[.]" .
+ ($this->tagName === 'section' ? "|[\[]\s*" : '') .
+ "){$attributes['name']}[.](";
$properties = $this->nameProperties;
} else {
- $this->resultOffsets[ 'item' ] = $this->startOffset + 3;
+ $this->resultOffsets[ 'item' ] = $this->startOffset = $this->startOffset + 2;
$this->propertyPreg .= "([\$]{$attributes['item']}[@](";
$properties = $this->itemProperties;
}
- $this->startOffset += count($properties) + 2;
$propName = reset($properties);
while ($propName) {
- $this->propertyPreg .= "({$propName})";
+ $this->propertyPreg .= "{$propName}";
$propName = next($properties);
if ($propName) {
$this->propertyPreg .= '|';
@@ -140,11 +139,11 @@ class Smarty_Internal_Compile_Private_ForeachSection extends Smarty_Internal_Com
*/
public function matchProperty($source)
{
- preg_match_all($this->propertyPreg, $source, $match, PREG_SET_ORDER);
+ preg_match_all($this->propertyPreg, $source, $match);
foreach ($this->resultOffsets as $key => $offset) {
- foreach ($match as $m) {
- if (isset($m[ $offset ]) && !empty($m[ $offset ])) {
- $this->matchResults[ $key ][ strtolower($m[ $offset ]) ] = true;
+ foreach ($match[ $offset ] as $m) {
+ if (!empty($m)) {
+ $this->matchResults[ $key ][ strtolower($m) ] = true;
}
}
}
@@ -181,8 +180,11 @@ class Smarty_Internal_Compile_Private_ForeachSection extends Smarty_Internal_Com
if ((isset($nextCompiler->smarty->autoload_filters[ 'pre' ]) ||
isset($nextCompiler->smarty->registered_filters[ 'pre' ]))
) {
- $_content = $nextCompiler->smarty->ext->_filterHandler->runFilter('pre', $_content,
- $nextCompiler->template);
+ $_content = $nextCompiler->smarty->ext->_filterHandler->runFilter(
+ 'pre',
+ $_content,
+ $nextCompiler->template
+ );
}
$this->matchProperty($_content);
}
@@ -202,9 +204,9 @@ class Smarty_Internal_Compile_Private_ForeachSection extends Smarty_Internal_Com
/**
* Compiles code for the {$smarty.foreach.xxx} or {$smarty.section.xxx}tag
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
- * @param array $parameter array with compilation parameter
+ * @param array $parameter array with compilation parameter
*
* @return string compiled code
* @throws \SmartyCompilerException
@@ -223,4 +225,4 @@ class Smarty_Internal_Compile_Private_ForeachSection extends Smarty_Internal_Com
$tagVar = "'__smarty_{$tag}_{$name}'";
return "(isset(\$_smarty_tpl->tpl_vars[{$tagVar}]->value['{$property}']) ? \$_smarty_tpl->tpl_vars[{$tagVar}]->value['{$property}'] : null)";
}
-}
\ No newline at end of file
+}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_function_plugin.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_function_plugin.php
index 9e9c65f59..055823423 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_function_plugin.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_function_plugin.php
@@ -35,11 +35,11 @@ class Smarty_Internal_Compile_Private_Function_Plugin extends Smarty_Internal_Co
/**
* Compiles code for the execution of function plugin
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
- * @param array $parameter array with compilation parameter
- * @param string $tag name of function plugin
- * @param string $function PHP function name
+ * @param array $parameter array with compilation parameter
+ * @param string $tag name of function plugin
+ * @param string $function PHP function name
*
* @return string compiled code
* @throws \SmartyCompilerException
@@ -49,7 +49,6 @@ class Smarty_Internal_Compile_Private_Function_Plugin extends Smarty_Internal_Co
{
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
-
unset($_attr[ 'nocache' ]);
// convert attributes into parameter array string
$_paramsArray = array();
@@ -64,9 +63,14 @@ class Smarty_Internal_Compile_Private_Function_Plugin extends Smarty_Internal_Co
// compile code
$output = "{$function}({$_params},\$_smarty_tpl)";
if (!empty($parameter[ 'modifierlist' ])) {
- $output = $compiler->compileTag('private_modifier', array(),
- array('modifierlist' => $parameter[ 'modifierlist' ],
- 'value' => $output));
+ $output = $compiler->compileTag(
+ 'private_modifier',
+ array(),
+ array(
+ 'modifierlist' => $parameter[ 'modifierlist' ],
+ 'value' => $output
+ )
+ );
}
$output = "\n";
return $output;
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php
index e83b7a243..72773fff8 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php
@@ -1,5 +1,4 @@
smarty->registered_plugins[ Smarty::PLUGIN_MODIFIER ][ $modifier ])) {
if (is_callable($compiler->smarty->registered_plugins[ Smarty::PLUGIN_MODIFIER ][ $modifier ][ 0 ])) {
$output =
- sprintf('call_user_func_array($_smarty_tpl->registered_plugins[ \'%s\' ][ %s ][ 0 ], array( %s ))',
- Smarty::PLUGIN_MODIFIER, var_export($modifier, true), $params);
+ sprintf(
+ 'call_user_func_array($_smarty_tpl->registered_plugins[ \'%s\' ][ %s ][ 0 ], array( %s ))',
+ Smarty::PLUGIN_MODIFIER,
+ var_export($modifier, true),
+ $params
+ );
$compiler->known_modifier_type[ $modifier ] = $type;
break 2;
}
@@ -63,8 +66,11 @@ class Smarty_Internal_Compile_Private_Modifier extends Smarty_Internal_CompileBa
// registered modifier compiler
if (isset($compiler->smarty->registered_plugins[ Smarty::PLUGIN_MODIFIERCOMPILER ][ $modifier ][ 0 ])) {
$output =
- call_user_func($compiler->smarty->registered_plugins[ Smarty::PLUGIN_MODIFIERCOMPILER ][ $modifier ][ 0 ],
- $single_modifier, $compiler->smarty);
+ call_user_func(
+ $compiler->smarty->registered_plugins[ Smarty::PLUGIN_MODIFIERCOMPILER ][ $modifier ][ 0 ],
+ $single_modifier,
+ $compiler->smarty
+ );
$compiler->known_modifier_type[ $modifier ] = $type;
break 2;
}
@@ -73,8 +79,8 @@ class Smarty_Internal_Compile_Private_Modifier extends Smarty_Internal_CompileBa
// modifiercompiler plugin
if ($compiler->smarty->loadPlugin('smarty_modifiercompiler_' . $modifier)) {
// check if modifier allowed
- if (!is_object($compiler->smarty->security_policy) ||
- $compiler->smarty->security_policy->isTrustedModifier($modifier, $compiler)
+ if (!is_object($compiler->smarty->security_policy)
+ || $compiler->smarty->security_policy->isTrustedModifier($modifier, $compiler)
) {
$plugin = 'smarty_modifiercompiler_' . $modifier;
$output = $plugin($single_modifier, $compiler);
@@ -87,8 +93,8 @@ class Smarty_Internal_Compile_Private_Modifier extends Smarty_Internal_CompileBa
// modifier plugin
if ($function = $compiler->getPlugin($modifier, Smarty::PLUGIN_MODIFIER)) {
// check if modifier allowed
- if (!is_object($compiler->smarty->security_policy) ||
- $compiler->smarty->security_policy->isTrustedModifier($modifier, $compiler)
+ if (!is_object($compiler->smarty->security_policy)
+ || $compiler->smarty->security_policy->isTrustedModifier($modifier, $compiler)
) {
$output = "{$function}({$params})";
}
@@ -100,8 +106,8 @@ class Smarty_Internal_Compile_Private_Modifier extends Smarty_Internal_CompileBa
// PHP function
if (is_callable($modifier)) {
// check if modifier allowed
- if (!is_object($compiler->smarty->security_policy) ||
- $compiler->smarty->security_policy->isTrustedPhpModifier($modifier, $compiler)
+ if (!is_object($compiler->smarty->security_policy)
+ || $compiler->smarty->security_policy->isTrustedPhpModifier($modifier, $compiler)
) {
$output = "{$modifier}({$params})";
}
@@ -111,26 +117,27 @@ class Smarty_Internal_Compile_Private_Modifier extends Smarty_Internal_CompileBa
break;
case 6:
// default plugin handler
- if (isset($compiler->default_handler_plugins[ Smarty::PLUGIN_MODIFIER ][ $modifier ]) ||
- (is_callable($compiler->smarty->default_plugin_handler_func) &&
- $compiler->getPluginFromDefaultHandler($modifier, Smarty::PLUGIN_MODIFIER))
+ if (isset($compiler->default_handler_plugins[ Smarty::PLUGIN_MODIFIER ][ $modifier ])
+ || (is_callable($compiler->smarty->default_plugin_handler_func)
+ && $compiler->getPluginFromDefaultHandler($modifier, Smarty::PLUGIN_MODIFIER))
) {
$function = $compiler->default_handler_plugins[ Smarty::PLUGIN_MODIFIER ][ $modifier ][ 0 ];
// check if modifier allowed
- if (!is_object($compiler->smarty->security_policy) ||
- $compiler->smarty->security_policy->isTrustedModifier($modifier, $compiler)
+ if (!is_object($compiler->smarty->security_policy)
+ || $compiler->smarty->security_policy->isTrustedModifier($modifier, $compiler)
) {
if (!is_array($function)) {
$output = "{$function}({$params})";
} else {
if (is_object($function[ 0 ])) {
- $output = $function[ 0 ] . '->'. $function[ 1 ] . '(' . $params . ')';
+ $output = $function[ 0 ] . '->' . $function[ 1 ] . '(' . $params . ')';
} else {
$output = $function[ 0 ] . '::' . $function[ 1 ] . '(' . $params . ')';
}
}
}
- if (isset($compiler->required_plugins[ 'nocache' ][ $modifier ][ Smarty::PLUGIN_MODIFIER ][ 'file' ]) ||
+ if (isset($compiler->required_plugins[ 'nocache' ][ $modifier ][ Smarty::PLUGIN_MODIFIER ][ 'file' ])
+ ||
isset($compiler->required_plugins[ 'compiled' ][ $modifier ][ Smarty::PLUGIN_MODIFIER ][ 'file' ])
) {
// was a plugin
@@ -146,7 +153,6 @@ class Smarty_Internal_Compile_Private_Modifier extends Smarty_Internal_CompileBa
$compiler->trigger_template_error("unknown modifier '{$modifier}'", null, true);
}
}
-
return $output;
}
-}
\ No newline at end of file
+}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php
index 5c7fb6265..baac51b28 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php
@@ -20,9 +20,9 @@ class Smarty_Internal_Compile_Private_Object_Block_Function extends Smarty_Inter
* Setup callback and parameter array
*
* @param \Smarty_Internal_TemplateCompilerBase $compiler
- * @param array $_attr attributes
- * @param string $tag
- * @param string $method
+ * @param array $_attr attributes
+ * @param string $tag
+ * @param string $method
*
* @return array
*/
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php
index 8d6c7e397..2a763c6e3 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php
@@ -27,11 +27,11 @@ class Smarty_Internal_Compile_Private_Object_Function extends Smarty_Internal_Co
/**
* Compiles code for the execution of function plugin
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
- * @param array $parameter array with compilation parameter
- * @param string $tag name of function
- * @param string $method name of method to call
+ * @param array $parameter array with compilation parameter
+ * @param string $tag name of function
+ * @param string $method name of method to call
*
* @return string compiled code
* @throws \SmartyCompilerException
@@ -70,8 +70,11 @@ class Smarty_Internal_Compile_Private_Object_Function extends Smarty_Internal_Co
$output = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}";
}
if (!empty($parameter[ 'modifierlist' ])) {
- $output = $compiler->compileTag('private_modifier', array(),
- array('modifierlist' => $parameter[ 'modifierlist' ], 'value' => $output));
+ $output = $compiler->compileTag(
+ 'private_modifier',
+ array(),
+ array('modifierlist' => $parameter[ 'modifierlist' ], 'value' => $output)
+ );
}
if (empty($_assign)) {
return "\n";
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_php.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_php.php
index 1d100f0d2..a3cf0a27b 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_php.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_php.php
@@ -16,7 +16,6 @@
*/
class Smarty_Internal_Compile_Private_Php extends Smarty_Internal_CompileBase
{
-
/**
* Attribute definition: Overwrites base class.
*
@@ -43,10 +42,16 @@ class Smarty_Internal_Compile_Private_Php extends Smarty_Internal_CompileBase
if ($_attr[ 'type' ] === 'xml') {
$compiler->tag_nocache = true;
$output = addcslashes($_attr[ 'code' ], "'\\");
- $compiler->parser->current_buffer->append_subtree($compiler->parser,
- new Smarty_Internal_ParseTree_Tag($compiler->parser,
- $compiler->processNocacheCode("",
- true)));
+ $compiler->parser->current_buffer->append_subtree(
+ $compiler->parser,
+ new Smarty_Internal_ParseTree_Tag(
+ $compiler->parser,
+ $compiler->processNocacheCode(
+ "",
+ true
+ )
+ )
+ );
return '';
}
if ($_attr[ 'type' ] !== 'tag') {
@@ -54,23 +59,37 @@ class Smarty_Internal_Compile_Private_Php extends Smarty_Internal_CompileBase
return '';
} elseif ($compiler->php_handling === Smarty::PHP_QUOTE) {
$output =
- preg_replace_callback('#(<\?(?:php|=)?)|(<%)|(]*>)|(]*>)|(]*>.*?
]*>)#is',
- $text,
- $matches,
- PREG_OFFSET_CAPTURE | PREG_SET_ORDER)) {
+ if (preg_match_all(
+ '#(]*>)|(]*>)|(]*>.*?
]*>)#is',
+ $text,
+ $matches,
+ PREG_OFFSET_CAPTURE | PREG_SET_ORDER
+ )
+ ) {
foreach ($matches as $match) {
$store[] = $match[ 0 ][ 0 ];
$_length = strlen($match[ 0 ][ 0 ]);
$replace = '@!@SMARTY:' . $_store . ':SMARTY@!@';
$text = substr_replace($text, $replace, $match[ 0 ][ 1 ] - $_offset, $_length);
$_offset += $_length - strlen($replace);
- ++$_store;
+ $_store++;
}
}
$expressions = array(// replace multiple spaces between tags by a single space
@@ -643,19 +713,23 @@ abstract class Smarty_Internal_TemplateCompilerBase
'#(([a-z0-9]\s*=\s*("[^"]*?")|(\'[^\']*?\'))|<[a-z0-9_]+)\s+([a-z/>])#is' => '\1 \5',
'#>[\040\011]+$#Ss' => '> ',
'#>[\040\011]*[\n]\s*$#Ss' => '>',
- $this->stripRegEx => '',);
+ $this->stripRegEx => '',
+ );
$text = preg_replace(array_keys($expressions), array_values($expressions), $text);
$_offset = 0;
- if (preg_match_all('#@!@SMARTY:([0-9]+):SMARTY@!@#is',
- $text,
- $matches,
- PREG_OFFSET_CAPTURE | PREG_SET_ORDER)) {
+ if (preg_match_all(
+ '#@!@SMARTY:([0-9]+):SMARTY@!@#is',
+ $text,
+ $matches,
+ PREG_OFFSET_CAPTURE | PREG_SET_ORDER
+ )
+ ) {
foreach ($matches as $match) {
$_length = strlen($match[ 0 ][ 0 ]);
$replace = $store[ $match[ 1 ][ 0 ] ];
$text = substr_replace($text, $replace, $match[ 0 ][ 1 ] + $_offset, $_length);
$_offset += strlen($replace) - $_length;
- ++$_store;
+ $_store++;
}
}
} else {
@@ -673,11 +747,11 @@ abstract class Smarty_Internal_TemplateCompilerBase
* class name format: Smarty_Internal_Compile_TagName
* plugin filename format: Smarty_Internal_TagName.php
*
- * @param string $tag tag name
- * @param array $args list of tag attributes
- * @param mixed $param1 optional parameter
- * @param mixed $param2 optional parameter
- * @param mixed $param3 optional parameter
+ * @param string $tag tag name
+ * @param array $args list of tag attributes
+ * @param mixed $param1 optional parameter
+ * @param mixed $param2 optional parameter
+ * @param mixed $param3 optional parameter
*
* @return bool|string compiled code or false
* @throws \SmartyCompilerException
@@ -696,10 +770,9 @@ abstract class Smarty_Internal_TemplateCompilerBase
* class name format: Smarty_Internal_Compile_TagName
* plugin filename format: Smarty_Internal_TagName.php
*
- * @param string $tag tag name
+ * @param string $tag tag name
*
* @return bool|\Smarty_Internal_CompileBase tag compiler object or false if not found
- * @throws \SmartyCompilerException
*/
public function getTagCompiler($tag)
{
@@ -709,8 +782,8 @@ abstract class Smarty_Internal_TemplateCompilerBase
$_tag = explode('_', $tag);
$_tag = array_map('ucfirst', $_tag);
$class_name = 'Smarty_Internal_Compile_' . implode('_', $_tag);
- if (class_exists($class_name) &&
- (!isset($this->smarty->security_policy) || $this->smarty->security_policy->isTrustedTag($tag, $this))
+ if (class_exists($class_name)
+ && (!isset($this->smarty->security_policy) || $this->smarty->security_policy->isTrustedTag($tag, $this))
) {
self::$_tag_objects[ $tag ] = new $class_name;
} else {
@@ -723,8 +796,8 @@ abstract class Smarty_Internal_TemplateCompilerBase
/**
* Check for plugins and return function name
*
- * @param $plugin_name
- * @param string $plugin_type type of plugin
+ * @param $plugin_name
+ * @param string $plugin_type type of plugin
*
* @return string call name of function
* @throws \SmartyException
@@ -736,7 +809,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
if (isset($this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ])) {
$function =
$this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ][ 'function' ];
- } else if (isset($this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ])) {
+ } elseif (isset($this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ])) {
$this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ] =
$this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ];
$function =
@@ -746,7 +819,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
if (isset($this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ])) {
$function =
$this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ][ 'function' ];
- } else if (isset($this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ])) {
+ } elseif (isset($this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ])) {
$this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ] =
$this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ];
$function =
@@ -789,8 +862,8 @@ abstract class Smarty_Internal_TemplateCompilerBase
/**
* Check for plugins by default plugin handler
*
- * @param string $tag name of tag
- * @param string $plugin_type type of plugin
+ * @param string $tag name of tag
+ * @param string $plugin_type type of plugin
*
* @return bool true if found
* @throws \SmartyCompilerException
@@ -800,13 +873,17 @@ abstract class Smarty_Internal_TemplateCompilerBase
$callback = null;
$script = null;
$cacheable = true;
- $result = call_user_func_array($this->smarty->default_plugin_handler_func,
- array($tag,
- $plugin_type,
- $this->template,
- &$callback,
- &$script,
- &$cacheable,));
+ $result = call_user_func_array(
+ $this->smarty->default_plugin_handler_func,
+ array(
+ $tag,
+ $plugin_type,
+ $this->template,
+ &$callback,
+ &$script,
+ &$cacheable,
+ )
+ );
if ($result) {
$this->tag_nocache = $this->tag_nocache || !$cacheable;
if ($script !== null) {
@@ -822,15 +899,17 @@ abstract class Smarty_Internal_TemplateCompilerBase
$this->required_plugins[ 'compiled' ][ $tag ][ $plugin_type ][ 'function' ] =
$callback;
}
- require_once $script;
+ include_once $script;
} else {
$this->trigger_template_error("Default plugin handler: Returned script file '{$script}' for '{$tag}' not found");
}
}
if (is_callable($callback)) {
- $this->default_handler_plugins[ $plugin_type ][ $tag ] = array($callback,
- true,
- array());
+ $this->default_handler_plugins[ $plugin_type ][ $tag ] = array(
+ $callback,
+ true,
+ array()
+ );
return true;
} else {
$this->trigger_template_error("Default plugin handler: Returned callback for '{$tag}' not callable");
@@ -864,8 +943,8 @@ abstract class Smarty_Internal_TemplateCompilerBase
* If the content is compiled code and it should be not cached the code is injected
* into the rendered output.
*
- * @param string $content content of template element
- * @param boolean $is_code true if content is compiled code
+ * @param string $content content of template element
+ * @param boolean $is_code true if content is compiled code
*
* @return string content
*/
@@ -874,13 +953,14 @@ abstract class Smarty_Internal_TemplateCompilerBase
// If the template is not evaluated and we have a nocache section and or a nocache tag
if ($is_code && !empty($content)) {
// generate replacement code
- if ((!($this->template->source->handler->recompiled) || $this->forceNocache) && $this->caching &&
- !$this->suppressNocacheProcessing && ($this->nocache || $this->tag_nocache)
+ if ((!($this->template->source->handler->recompiled) || $this->forceNocache) && $this->caching
+ && !$this->suppressNocacheProcessing && ($this->nocache || $this->tag_nocache)
) {
$this->template->compiled->has_nocache_code = true;
$_output = addcslashes($content, '\'\\');
$_output = str_replace('^#^', '\'', $_output);
- $_output = "nocache_hash}%%*/{$_output}/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>\n";
+ $_output =
+ "nocache_hash}%%*/{$_output}/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>\n";
// make sure we include modifier plugins for nocache code
foreach ($this->modifier_plugins as $plugin_name => $dummy) {
if (isset($this->required_plugins[ 'compiled' ][ $plugin_name ][ 'modifier' ])) {
@@ -962,7 +1042,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
$_scopeName = trim($_attr[ 'scope' ], '\'"');
if (is_numeric($_scopeName) && in_array($_scopeName, $validScopes)) {
$_scope = $_scopeName;
- } else if (is_string($_scopeName)) {
+ } elseif (is_string($_scopeName)) {
$_scopeName = trim($_scopeName, '\'"');
$_scope = isset($validScopes[ $_scopeName ]) ? $validScopes[ $_scopeName ] : false;
} else {
@@ -996,8 +1076,8 @@ abstract class Smarty_Internal_TemplateCompilerBase
* In this case the parser is called to obtain information about expected tokens.
* If parameter $args contains a string this is used as error message
*
- * @param string $args individual error message or null
- * @param string $line line-number
+ * @param string $args individual error message or null
+ * @param string $line line-number
* @param null|bool $tagline if true the line number of last tag
*
* @throws \SmartyCompilerException when an unexpected token is found
@@ -1008,20 +1088,29 @@ abstract class Smarty_Internal_TemplateCompilerBase
if ($tagline === true) {
// get line number of Tag
$line = $lex->taglineno;
- } else if (!isset($line)) {
+ } elseif (!isset($line)) {
// get template source line which has error
$line = $lex->line;
} else {
$line = (int)$line;
}
- if (in_array($this->template->source->type,
- array('eval',
- 'string'))) {
- $templateName = $this->template->source->type . ':' . trim(preg_replace('![\t\r\n]+!',
- ' ',
- strlen($lex->data) > 40 ?
- substr($lex->data, 0, 40) .
- '...' : $lex->data));
+ if (in_array(
+ $this->template->source->type,
+ array(
+ 'eval',
+ 'string'
+ )
+ )
+ ) {
+ $templateName = $this->template->source->type . ':' . trim(
+ preg_replace(
+ '![\t\r\n]+!',
+ ' ',
+ strlen($lex->data) > 40 ?
+ substr($lex->data, 0, 40) .
+ '...' : $lex->data
+ )
+ );
} else {
$templateName = $this->template->source->type . ':' . $this->template->source->filepath;
}
@@ -1068,7 +1157,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
/**
* Return var_export() value with all white spaces removed
*
- * @param mixed $value
+ * @param mixed $value
*
* @return string
*/
@@ -1103,11 +1192,15 @@ abstract class Smarty_Internal_TemplateCompilerBase
*/
public function replaceDelimiter($lexerPreg)
{
- return str_replace(array('SMARTYldel', 'SMARTYliteral', 'SMARTYrdel', 'SMARTYautoliteral', 'SMARTYal'),
- array($this->ldelPreg, $this->literalPreg, $this->rdelPreg,
- $this->smarty->getAutoLiteral() ? '{1,}' : '{9}',
- $this->smarty->getAutoLiteral() ? '' : '\\s*'),
- $lexerPreg);
+ return str_replace(
+ array('SMARTYldel', 'SMARTYliteral', 'SMARTYrdel', 'SMARTYautoliteral', 'SMARTYal'),
+ array(
+ $this->ldelPreg, $this->literalPreg, $this->rdelPreg,
+ $this->smarty->getAutoLiteral() ? '{1,}' : '{9}',
+ $this->smarty->getAutoLiteral() ? '' : '\\s*'
+ ),
+ $lexerPreg
+ );
}
/**
@@ -1119,20 +1212,20 @@ abstract class Smarty_Internal_TemplateCompilerBase
$this->ldelLength = strlen($ldel);
$this->ldelPreg = '';
foreach (str_split($ldel, 1) as $chr) {
- $this->ldelPreg .= '[' . ($chr === '\\' ? '\\' : '') . $chr . ']';
+ $this->ldelPreg .= '[' . preg_quote($chr,'/') . ']';
}
$rdel = $this->smarty->getRightDelimiter();
$this->rdelLength = strlen($rdel);
$this->rdelPreg = '';
foreach (str_split($rdel, 1) as $chr) {
- $this->rdelPreg .= '[' . ($chr === '\\' ? '\\' : '') . $chr . ']';
+ $this->rdelPreg .= '[' . preg_quote($chr,'/') . ']';
}
$literals = $this->smarty->getLiterals();
if (!empty($literals)) {
foreach ($literals as $key => $literal) {
$literalPreg = '';
foreach (str_split($literal, 1) as $chr) {
- $literalPreg .= '[' . ($chr === '\\' ? '\\' : '') . $chr . ']';
+ $literalPreg .= '[' . preg_quote($chr,'/') . ']';
}
$literals[ $key ] = $literalPreg;
}
@@ -1152,9 +1245,11 @@ abstract class Smarty_Internal_TemplateCompilerBase
{
if (array_pop($this->_tag_stack_count) !== $this->getTagStackCount()) {
$tag = $this->getOpenBlockTag();
- $this->trigger_template_error("unclosed '{{$tag}}' in doubled quoted string",
- null,
- true);
+ $this->trigger_template_error(
+ "unclosed '{{$tag}}' in doubled quoted string",
+ null,
+ true
+ );
}
}
@@ -1292,7 +1387,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
*
* @param bool $init if true init required plugins
*/
- public function saveRequiredPlugins($init=false)
+ public function saveRequiredPlugins($init = false)
{
$this->required_plugins_stack[] = $this->required_plugins;
if ($init) {
@@ -1359,9 +1454,9 @@ abstract class Smarty_Internal_TemplateCompilerBase
/**
* Compile Tag
*
- * @param string $tag tag name
- * @param array $args array with tag attributes
- * @param array $parameter array with compilation parameter
+ * @param string $tag tag name
+ * @param array $args array with tag attributes
+ * @param array $parameter array with compilation parameter
*
* @throws SmartyCompilerException
* @throws SmartyException
@@ -1375,8 +1470,10 @@ abstract class Smarty_Internal_TemplateCompilerBase
$this->has_code = true;
// log tag/attributes
if (isset($this->smarty->_cache[ 'get_used_tags' ])) {
- $this->template->_cache[ 'used_tags' ][] = array($tag,
- $args);
+ $this->template->_cache[ 'used_tags' ][] = array(
+ $tag,
+ $args
+ );
}
// check nocache option flag
foreach ($args as $arg) {
@@ -1394,9 +1491,9 @@ abstract class Smarty_Internal_TemplateCompilerBase
}
// compile the smarty tag (required compile classes to compile the tag are auto loaded)
if (($_output = $this->callTagCompiler($tag, $args, $parameter)) === false) {
- if (isset($this->parent_compiler->tpl_function[ $tag ]) ||
- (isset ($this->template->smarty->ext->_tplFunction) &&
- $this->template->smarty->ext->_tplFunction->getTplFunction($this->template, $tag) !== false)
+ if (isset($this->parent_compiler->tpl_function[ $tag ])
+ || (isset($this->template->smarty->ext->_tplFunction)
+ && $this->template->smarty->ext->_tplFunction->getTplFunction($this->template, $tag) !== false)
) {
// template defined by {template} tag
$args[ '_attr' ][ 'name' ] = "'{$tag}'";
@@ -1427,29 +1524,35 @@ abstract class Smarty_Internal_TemplateCompilerBase
// check if tag is a registered object
if (isset($this->smarty->registered_objects[ $tag ]) && isset($parameter[ 'object_method' ])) {
$method = $parameter[ 'object_method' ];
- if (!in_array($method, $this->smarty->registered_objects[ $tag ][ 3 ]) &&
- (empty($this->smarty->registered_objects[ $tag ][ 1 ]) ||
- in_array($method, $this->smarty->registered_objects[ $tag ][ 1 ]))
+ if (!in_array($method, $this->smarty->registered_objects[ $tag ][ 3 ])
+ && (empty($this->smarty->registered_objects[ $tag ][ 1 ])
+ || in_array($method, $this->smarty->registered_objects[ $tag ][ 1 ]))
) {
return $this->callTagCompiler('private_object_function', $args, $parameter, $tag, $method);
- } else if (in_array($method, $this->smarty->registered_objects[ $tag ][ 3 ])) {
- return $this->callTagCompiler('private_object_block_function',
- $args,
- $parameter,
- $tag,
- $method);
+ } elseif (in_array($method, $this->smarty->registered_objects[ $tag ][ 3 ])) {
+ return $this->callTagCompiler(
+ 'private_object_block_function',
+ $args,
+ $parameter,
+ $tag,
+ $method
+ );
} else {
// throw exception
- $this->trigger_template_error('not allowed method "' . $method . '" in registered object "' .
- $tag . '"',
- null,
- true);
+ $this->trigger_template_error(
+ 'not allowed method "' . $method . '" in registered object "' .
+ $tag . '"',
+ null,
+ true
+ );
}
}
// check if tag is registered
- foreach (array(Smarty::PLUGIN_COMPILER,
- Smarty::PLUGIN_FUNCTION,
- Smarty::PLUGIN_BLOCK,) as $plugin_type) {
+ foreach (array(
+ Smarty::PLUGIN_COMPILER,
+ Smarty::PLUGIN_FUNCTION,
+ Smarty::PLUGIN_BLOCK,
+ ) as $plugin_type) {
if (isset($this->smarty->registered_plugins[ $plugin_type ][ $tag ])) {
// if compiler function plugin call it now
if ($plugin_type === Smarty::PLUGIN_COMPILER) {
@@ -1464,25 +1567,31 @@ abstract class Smarty_Internal_TemplateCompilerBase
if (!$this->smarty->registered_plugins[ $plugin_type ][ $tag ][ 1 ]) {
$this->tag_nocache = true;
}
- return call_user_func_array($this->smarty->registered_plugins[ $plugin_type ][ $tag ][ 0 ],
- array($new_args,
- $this));
+ return call_user_func_array(
+ $this->smarty->registered_plugins[ $plugin_type ][ $tag ][ 0 ],
+ array(
+ $new_args,
+ $this
+ )
+ );
}
// compile registered function or block function
if ($plugin_type === Smarty::PLUGIN_FUNCTION || $plugin_type === Smarty::PLUGIN_BLOCK) {
- return $this->callTagCompiler('private_registered_' . $plugin_type,
- $args,
- $parameter,
- $tag);
+ return $this->callTagCompiler(
+ 'private_registered_' . $plugin_type,
+ $args,
+ $parameter,
+ $tag
+ );
}
}
}
// check plugins from plugins folder
foreach ($this->plugin_search_order as $plugin_type) {
- if ($plugin_type === Smarty::PLUGIN_COMPILER &&
- $this->smarty->loadPlugin('smarty_compiler_' . $tag) &&
- (!isset($this->smarty->security_policy) ||
- $this->smarty->security_policy->isTrustedTag($tag, $this))
+ if ($plugin_type === Smarty::PLUGIN_COMPILER
+ && $this->smarty->loadPlugin('smarty_compiler_' . $tag)
+ && (!isset($this->smarty->security_policy)
+ || $this->smarty->security_policy->isTrustedTag($tag, $this))
) {
$plugin = 'smarty_compiler_' . $tag;
if (is_callable($plugin)) {
@@ -1506,14 +1615,16 @@ abstract class Smarty_Internal_TemplateCompilerBase
throw new SmartyException("Plugin '{$tag}' not callable");
} else {
if ($function = $this->getPlugin($tag, $plugin_type)) {
- if (!isset($this->smarty->security_policy) ||
- $this->smarty->security_policy->isTrustedTag($tag, $this)
+ if (!isset($this->smarty->security_policy)
+ || $this->smarty->security_policy->isTrustedTag($tag, $this)
) {
- return $this->callTagCompiler('private_' . $plugin_type . '_plugin',
- $args,
- $parameter,
- $tag,
- $function);
+ return $this->callTagCompiler(
+ 'private_' . $plugin_type . '_plugin',
+ $args,
+ $parameter,
+ $tag,
+ $function
+ );
}
}
}
@@ -1547,14 +1658,20 @@ abstract class Smarty_Internal_TemplateCompilerBase
$new_args[ $key ] = $mixed;
}
}
- return call_user_func_array($this->default_handler_plugins[ $plugin_type ][ $tag ][ 0 ],
- array($new_args,
- $this));
+ return call_user_func_array(
+ $this->default_handler_plugins[ $plugin_type ][ $tag ][ 0 ],
+ array(
+ $new_args,
+ $this
+ )
+ );
} else {
- return $this->callTagCompiler('private_registered_' . $plugin_type,
- $args,
- $parameter,
- $tag);
+ return $this->callTagCompiler(
+ 'private_registered_' . $plugin_type,
+ $args,
+ $parameter,
+ $tag
+ );
}
}
}
@@ -1565,22 +1682,26 @@ abstract class Smarty_Internal_TemplateCompilerBase
if (isset($this->smarty->registered_objects[ $base_tag ]) && isset($parameter[ 'object_method' ])) {
$method = $parameter[ 'object_method' ];
if (in_array($method, $this->smarty->registered_objects[ $base_tag ][ 3 ])) {
- return $this->callTagCompiler('private_object_block_function',
- $args,
- $parameter,
- $tag,
- $method);
+ return $this->callTagCompiler(
+ 'private_object_block_function',
+ $args,
+ $parameter,
+ $tag,
+ $method
+ );
} else {
// throw exception
- $this->trigger_template_error('not allowed closing tag method "' . $method .
- '" in registered object "' . $base_tag . '"',
- null,
- true);
+ $this->trigger_template_error(
+ 'not allowed closing tag method "' . $method .
+ '" in registered object "' . $base_tag . '"',
+ null,
+ true
+ );
}
}
// registered block tag ?
- if (isset($this->smarty->registered_plugins[ Smarty::PLUGIN_BLOCK ][ $base_tag ]) ||
- isset($this->default_handler_plugins[ Smarty::PLUGIN_BLOCK ][ $base_tag ])
+ if (isset($this->smarty->registered_plugins[ Smarty::PLUGIN_BLOCK ][ $base_tag ])
+ || isset($this->default_handler_plugins[ Smarty::PLUGIN_BLOCK ][ $base_tag ])
) {
return $this->callTagCompiler('private_registered_block', $args, $parameter, $tag);
}
@@ -1594,8 +1715,8 @@ abstract class Smarty_Internal_TemplateCompilerBase
}
// function plugin?
if ($function = $this->getPlugin($tag, Smarty::PLUGIN_FUNCTION)) {
- if (!isset($this->smarty->security_policy) ||
- $this->smarty->security_policy->isTrustedTag($tag, $this)
+ if (!isset($this->smarty->security_policy)
+ || $this->smarty->security_policy->isTrustedTag($tag, $this)
) {
return $this->callTagCompiler('private_function_plugin', $args, $parameter, $tag, $function);
}
@@ -1607,9 +1728,13 @@ abstract class Smarty_Internal_TemplateCompilerBase
if (!$this->smarty->registered_plugins[ Smarty::PLUGIN_COMPILER ][ $tag ][ 1 ]) {
$this->tag_nocache = true;
}
- return call_user_func_array($this->smarty->registered_plugins[ Smarty::PLUGIN_COMPILER ][ $tag ][ 0 ],
- array($args,
- $this));
+ return call_user_func_array(
+ $this->smarty->registered_plugins[ Smarty::PLUGIN_COMPILER ][ $tag ][ 0 ],
+ array(
+ $args,
+ $this
+ )
+ );
}
if ($this->smarty->loadPlugin('smarty_compiler_' . $tag)) {
$plugin = 'smarty_compiler_' . $tag;
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatelexer.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatelexer.php
index 3045a7b0c..c6c49ef59 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatelexer.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatelexer.php
@@ -18,101 +18,117 @@
*/
class Smarty_Internal_Templatelexer
{
- const TEXT = 1;
- const TAG = 2;
- const TAGBODY = 3;
- const LITERAL = 4;
+ const TEXT = 1;
+ const TAG = 2;
+ const TAGBODY = 3;
+ const LITERAL = 4;
const DOUBLEQUOTEDSTRING = 5;
+
/**
* Source
*
* @var string
*/
public $data;
+
/**
* Source length
*
* @var int
*/
public $dataLength = null;
+
/**
* byte counter
*
* @var int
*/
public $counter;
+
/**
* token number
*
* @var int
*/
public $token;
+
/**
* token value
*
* @var string
*/
public $value;
+
/**
* current line
*
* @var int
*/
public $line;
+
/**
* tag start line
*
* @var
*/
public $taglineno;
+
/**
* php code type
*
* @var string
*/
public $phpType = '';
+
/**
* state number
*
* @var int
*/
public $state = 1;
+
/**
* Smarty object
*
* @var Smarty
*/
public $smarty = null;
+
/**
* compiler object
*
* @var Smarty_Internal_TemplateCompilerBase
*/
public $compiler = null;
+
/**
* trace file
*
* @var resource
*/
public $yyTraceFILE;
+
/**
* trace prompt
*
* @var string
*/
public $yyTracePrompt;
+
/**
* XML flag true while processing xml
*
* @var bool
*/
public $is_xml = false;
+
/**
* state names
*
* @var array
*/
public $state_name = array(1 => 'TEXT', 2 => 'TAG', 3 => 'TAGBODY', 4 => 'LITERAL', 5 => 'DOUBLEQUOTEDSTRING',);
+
/**
* token names
*
@@ -156,44 +172,52 @@ class Smarty_Internal_Templatelexer
'TLOGOP' => '"lt", "eq" ... logical operator; "is div by" ... if condition',
'SCOND' => '"is even" ... if condition',
);
+
/**
* literal tag nesting level
*
* @var int
*/
private $literal_cnt = 0;
+
/**
* preg token pattern for state TEXT
*
* @var string
*/
private $yy_global_pattern1 = null;
+
/**
* preg token pattern for state TAG
*
* @var string
*/
private $yy_global_pattern2 = null;
+
/**
* preg token pattern for state TAGBODY
*
* @var string
*/
private $yy_global_pattern3 = null;
+
/**
* preg token pattern for state LITERAL
*
* @var string
*/
private $yy_global_pattern4 = null;
+
/**
* preg token pattern for state DOUBLEQUOTEDSTRING
*
* @var null
*/
private $yy_global_pattern5 = null;
- private $_yy_state = 1;
- private $_yy_stack = array();
+
+ private $_yy_state = 1;
+
+ private $_yy_stack = array();
/**
* constructor
@@ -201,7 +225,7 @@ class Smarty_Internal_Templatelexer
* @param string $source template source
* @param Smarty_Internal_TemplateCompilerBase $compiler
*/
- function __construct($source, Smarty_Internal_TemplateCompilerBase $compiler)
+ public function __construct($source, Smarty_Internal_TemplateCompilerBase $compiler)
{
$this->data = $source;
$this->dataLength = strlen($this->data);
@@ -239,7 +263,7 @@ class Smarty_Internal_Templatelexer
return $this->compiler->replaceDelimiter($preg);
}
- /**
+ /**
* check if current value is an autoliteral left delimiter
*
* @return bool
@@ -258,39 +282,27 @@ class Smarty_Internal_Templatelexer
public function yypushstate($state)
{
if ($this->yyTraceFILE) {
- fprintf($this->yyTraceFILE,
- "%sState push %s\n",
- $this->yyTracePrompt,
- isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] :
- $this->_yy_state);
+ fprintf($this->yyTraceFILE, "%sState push %s\n", $this->yyTracePrompt,
+ isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state);
}
array_push($this->_yy_stack, $this->_yy_state);
$this->_yy_state = $state;
if ($this->yyTraceFILE) {
- fprintf($this->yyTraceFILE,
- "%snew State %s\n",
- $this->yyTracePrompt,
- isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] :
- $this->_yy_state);
+ fprintf($this->yyTraceFILE, "%snew State %s\n", $this->yyTracePrompt,
+ isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state);
}
}
public function yypopstate()
{
if ($this->yyTraceFILE) {
- fprintf($this->yyTraceFILE,
- "%sState pop %s\n",
- $this->yyTracePrompt,
- isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] :
- $this->_yy_state);
+ fprintf($this->yyTraceFILE, "%sState pop %s\n", $this->yyTracePrompt,
+ isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state);
}
$this->_yy_state = array_pop($this->_yy_stack);
if ($this->yyTraceFILE) {
- fprintf($this->yyTraceFILE,
- "%snew State %s\n",
- $this->yyTracePrompt,
- isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] :
- $this->_yy_state);
+ fprintf($this->yyTraceFILE, "%snew State %s\n", $this->yyTracePrompt,
+ isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state);
}
}
@@ -298,15 +310,12 @@ class Smarty_Internal_Templatelexer
{
$this->_yy_state = $state;
if ($this->yyTraceFILE) {
- fprintf($this->yyTraceFILE,
- "%sState set %s\n",
- $this->yyTracePrompt,
- isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] :
- $this->_yy_state);
+ fprintf($this->yyTraceFILE, "%sState set %s\n", $this->yyTracePrompt,
+ isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state);
}
}
-public function yylex1()
+ public function yylex1()
{
if (!isset($this->yy_global_pattern1)) {
$this->yy_global_pattern1 =
@@ -327,9 +336,11 @@ public function yylex1()
}
if (empty($yymatches)) {
throw new Exception('Error: lexing failed because a rule matched' .
- ' an empty string. Input "' . substr($this->data,
- $this->counter,
- 5) . '... state TEXT');
+ ' an empty string. Input "' . substr(
+ $this->data,
+ $this->counter,
+ 5
+ ) . '... state TEXT');
}
next($yymatches); // skip global match
$this->token = key($yymatches); // token number
@@ -340,11 +351,11 @@ public function yylex1()
$this->line += substr_count($this->value, "\n");
// accept this token
return true;
- } else if ($r === true) {
+ } elseif ($r === true) {
// we have changed state
// process this token in the new state
return $this->yylex();
- } else if ($r === false) {
+ } elseif ($r === false) {
$this->counter += strlen($this->value);
$this->line += substr_count($this->value, "\n");
if ($this->counter >= $this->dataLength) {
@@ -361,18 +372,15 @@ public function yylex1()
} while (true);
}
- function yy_r1_1()
+ public function yy_r1_1()
{
$this->token = Smarty_Internal_Templateparser::TP_TEXT;
}
- function yy_r1_2()
+ public function yy_r1_2()
{
- preg_match("/[*]{$this->compiler->getRdelPreg()}[\n]?/",
- $this->data,
- $match,
- PREG_OFFSET_CAPTURE,
- $this->counter);
+ preg_match("/[*]{$this->compiler->getRdelPreg()}[\n]?/", $this->data, $match, PREG_OFFSET_CAPTURE,
+ $this->counter);
if (isset($match[ 0 ][ 1 ])) {
$to = $match[ 0 ][ 1 ] + strlen($match[ 0 ][ 0 ]);
} else {
@@ -382,45 +390,45 @@ public function yylex1()
return false;
}
- function yy_r1_4()
+ public function yy_r1_4()
{
$this->compiler->getTagCompiler('private_php')->parsePhp($this);
}
- function yy_r1_8()
+ public function yy_r1_8()
{
$this->token = Smarty_Internal_Templateparser::TP_TEXT;
}
- function yy_r1_10()
+ public function yy_r1_10()
{
$this->token = Smarty_Internal_Templateparser::TP_LITERALSTART;
$this->yypushstate(self::LITERAL);
}
- function yy_r1_12()
+ public function yy_r1_12()
{
$this->token = Smarty_Internal_Templateparser::TP_LITERALEND;
$this->yypushstate(self::LITERAL);
} // end function
- function yy_r1_14()
+ public function yy_r1_14()
{
$this->yypushstate(self::TAG);
return true;
}
- function yy_r1_16()
+ public function yy_r1_16()
{
$this->compiler->getTagCompiler('private_php')->parsePhp($this);
}
- function yy_r1_19()
+ public function yy_r1_19()
{
$this->token = Smarty_Internal_Templateparser::TP_TEXT;
}
-public function yylex2()
+ public function yylex2()
{
if (!isset($this->yy_global_pattern2)) {
$this->yy_global_pattern2 =
@@ -441,9 +449,11 @@ public function yylex2()
}
if (empty($yymatches)) {
throw new Exception('Error: lexing failed because a rule matched' .
- ' an empty string. Input "' . substr($this->data,
- $this->counter,
- 5) . '... state TAG');
+ ' an empty string. Input "' . substr(
+ $this->data,
+ $this->counter,
+ 5
+ ) . '... state TAG');
}
next($yymatches); // skip global match
$this->token = key($yymatches); // token number
@@ -454,11 +464,11 @@ public function yylex2()
$this->line += substr_count($this->value, "\n");
// accept this token
return true;
- } else if ($r === true) {
+ } elseif ($r === true) {
// we have changed state
// process this token in the new state
return $this->yylex();
- } else if ($r === false) {
+ } elseif ($r === false) {
$this->counter += strlen($this->value);
$this->line += substr_count($this->value, "\n");
if ($this->counter >= $this->dataLength) {
@@ -475,63 +485,63 @@ public function yylex2()
} while (true);
}
- function yy_r2_1()
+ public function yy_r2_1()
{
$this->token = Smarty_Internal_Templateparser::TP_LDELIF;
$this->yybegin(self::TAGBODY);
$this->taglineno = $this->line;
}
- function yy_r2_4()
+ public function yy_r2_4()
{
$this->token = Smarty_Internal_Templateparser::TP_LDELFOR;
$this->yybegin(self::TAGBODY);
$this->taglineno = $this->line;
}
- function yy_r2_6()
+ public function yy_r2_6()
{
$this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH;
$this->yybegin(self::TAGBODY);
$this->taglineno = $this->line;
}
- function yy_r2_8()
+ public function yy_r2_8()
{
$this->token = Smarty_Internal_Templateparser::TP_LDELSETFILTER;
$this->yybegin(self::TAGBODY);
$this->taglineno = $this->line;
}
- function yy_r2_10()
+ public function yy_r2_10()
{
$this->token = Smarty_Internal_Templateparser::TP_LDELMAKENOCACHE;
$this->yybegin(self::TAGBODY);
$this->taglineno = $this->line;
}
- function yy_r2_12()
+ public function yy_r2_12()
{
$this->yypopstate();
$this->token = Smarty_Internal_Templateparser::TP_SIMPLETAG;
$this->taglineno = $this->line;
}
- function yy_r2_15()
+ public function yy_r2_15()
{
$this->yypopstate();
$this->token = Smarty_Internal_Templateparser::TP_SMARTYBLOCKCHILDPARENT;
$this->taglineno = $this->line;
}
- function yy_r2_18()
+ public function yy_r2_18()
{
$this->yypopstate();
$this->token = Smarty_Internal_Templateparser::TP_CLOSETAG;
$this->taglineno = $this->line;
}
- function yy_r2_20()
+ public function yy_r2_20()
{
if ($this->_yy_stack[ count($this->_yy_stack) - 1 ] === self::TEXT) {
$this->yypopstate();
@@ -545,21 +555,21 @@ public function yylex2()
}
} // end function
- function yy_r2_23()
+ public function yy_r2_23()
{
$this->token = Smarty_Internal_Templateparser::TP_LDELSLASH;
$this->yybegin(self::TAGBODY);
$this->taglineno = $this->line;
}
- function yy_r2_25()
+ public function yy_r2_25()
{
$this->token = Smarty_Internal_Templateparser::TP_LDEL;
$this->yybegin(self::TAGBODY);
$this->taglineno = $this->line;
}
-public function yylex3()
+ public function yylex3()
{
if (!isset($this->yy_global_pattern3)) {
$this->yy_global_pattern3 =
@@ -580,9 +590,11 @@ public function yylex3()
}
if (empty($yymatches)) {
throw new Exception('Error: lexing failed because a rule matched' .
- ' an empty string. Input "' . substr($this->data,
- $this->counter,
- 5) . '... state TAGBODY');
+ ' an empty string. Input "' . substr(
+ $this->data,
+ $this->counter,
+ 5
+ ) . '... state TAGBODY');
}
next($yymatches); // skip global match
$this->token = key($yymatches); // token number
@@ -593,11 +605,11 @@ public function yylex3()
$this->line += substr_count($this->value, "\n");
// accept this token
return true;
- } else if ($r === true) {
+ } elseif ($r === true) {
// we have changed state
// process this token in the new state
return $this->yylex();
- } else if ($r === false) {
+ } elseif ($r === false) {
$this->counter += strlen($this->value);
$this->line += substr_count($this->value, "\n");
if ($this->counter >= $this->dataLength) {
@@ -614,156 +626,156 @@ public function yylex3()
} while (true);
}
- function yy_r3_1()
+ public function yy_r3_1()
{
$this->token = Smarty_Internal_Templateparser::TP_RDEL;
$this->yypopstate();
}
- function yy_r3_2()
+ public function yy_r3_2()
{
$this->yypushstate(self::TAG);
return true;
}
- function yy_r3_4()
+ public function yy_r3_4()
{
$this->token = Smarty_Internal_Templateparser::TP_QUOTE;
$this->yypushstate(self::DOUBLEQUOTEDSTRING);
$this->compiler->enterDoubleQuote();
}
- function yy_r3_5()
+ public function yy_r3_5()
{
$this->token = Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING;
}
- function yy_r3_6()
+ public function yy_r3_6()
{
$this->token = Smarty_Internal_Templateparser::TP_DOLLARID;
}
- function yy_r3_7()
+ public function yy_r3_7()
{
$this->token = Smarty_Internal_Templateparser::TP_DOLLAR;
}
- function yy_r3_8()
+ public function yy_r3_8()
{
$this->token = Smarty_Internal_Templateparser::TP_ISIN;
}
- function yy_r3_9()
+ public function yy_r3_9()
{
$this->token = Smarty_Internal_Templateparser::TP_AS;
}
- function yy_r3_10()
+ public function yy_r3_10()
{
$this->token = Smarty_Internal_Templateparser::TP_TO;
}
- function yy_r3_11()
+ public function yy_r3_11()
{
$this->token = Smarty_Internal_Templateparser::TP_STEP;
}
- function yy_r3_12()
+ public function yy_r3_12()
{
$this->token = Smarty_Internal_Templateparser::TP_INSTANCEOF;
}
- function yy_r3_13()
+ public function yy_r3_13()
{
$this->token = Smarty_Internal_Templateparser::TP_LOGOP;
}
- function yy_r3_15()
+ public function yy_r3_15()
{
$this->token = Smarty_Internal_Templateparser::TP_SLOGOP;
}
- function yy_r3_17()
+ public function yy_r3_17()
{
$this->token = Smarty_Internal_Templateparser::TP_TLOGOP;
}
- function yy_r3_20()
+ public function yy_r3_20()
{
$this->token = Smarty_Internal_Templateparser::TP_SINGLECOND;
}
- function yy_r3_23()
+ public function yy_r3_23()
{
$this->token = Smarty_Internal_Templateparser::TP_NOT;
}
- function yy_r3_24()
+ public function yy_r3_24()
{
$this->token = Smarty_Internal_Templateparser::TP_TYPECAST;
}
- function yy_r3_28()
+ public function yy_r3_28()
{
$this->token = Smarty_Internal_Templateparser::TP_OPENP;
}
- function yy_r3_29()
+ public function yy_r3_29()
{
$this->token = Smarty_Internal_Templateparser::TP_CLOSEP;
}
- function yy_r3_30()
+ public function yy_r3_30()
{
$this->token = Smarty_Internal_Templateparser::TP_OPENB;
}
- function yy_r3_31()
+ public function yy_r3_31()
{
$this->token = Smarty_Internal_Templateparser::TP_CLOSEB;
}
- function yy_r3_32()
+ public function yy_r3_32()
{
$this->token = Smarty_Internal_Templateparser::TP_PTR;
}
- function yy_r3_33()
+ public function yy_r3_33()
{
$this->token = Smarty_Internal_Templateparser::TP_APTR;
}
- function yy_r3_34()
+ public function yy_r3_34()
{
$this->token = Smarty_Internal_Templateparser::TP_EQUAL;
}
- function yy_r3_35()
+ public function yy_r3_35()
{
$this->token = Smarty_Internal_Templateparser::TP_INCDEC;
}
- function yy_r3_37()
+ public function yy_r3_37()
{
$this->token = Smarty_Internal_Templateparser::TP_UNIMATH;
}
- function yy_r3_39()
+ public function yy_r3_39()
{
$this->token = Smarty_Internal_Templateparser::TP_MATH;
}
- function yy_r3_41()
+ public function yy_r3_41()
{
$this->token = Smarty_Internal_Templateparser::TP_AT;
}
- function yy_r3_42()
+ public function yy_r3_42()
{
$this->token = Smarty_Internal_Templateparser::TP_HATCH;
}
- function yy_r3_43()
+ public function yy_r3_43()
{
// resolve conflicts with shorttag and right_delimiter starting with '='
if (substr($this->data, $this->counter + strlen($this->value) - 1, $this->compiler->getRdelLength()) ===
@@ -776,78 +788,78 @@ public function yylex3()
}
}
- function yy_r3_44()
+ public function yy_r3_44()
{
$this->token = Smarty_Internal_Templateparser::TP_NAMESPACE;
}
- function yy_r3_47()
+ public function yy_r3_47()
{
$this->token = Smarty_Internal_Templateparser::TP_ID;
}
- function yy_r3_48()
+ public function yy_r3_48()
{
$this->token = Smarty_Internal_Templateparser::TP_INTEGER;
}
- function yy_r3_49()
+ public function yy_r3_49()
{
$this->token = Smarty_Internal_Templateparser::TP_BACKTICK;
$this->yypopstate();
}
- function yy_r3_50()
+ public function yy_r3_50()
{
$this->token = Smarty_Internal_Templateparser::TP_VERT;
}
- function yy_r3_51()
+ public function yy_r3_51()
{
$this->token = Smarty_Internal_Templateparser::TP_DOT;
}
- function yy_r3_52()
+ public function yy_r3_52()
{
$this->token = Smarty_Internal_Templateparser::TP_COMMA;
}
- function yy_r3_53()
+ public function yy_r3_53()
{
$this->token = Smarty_Internal_Templateparser::TP_SEMICOLON;
}
- function yy_r3_54()
+ public function yy_r3_54()
{
$this->token = Smarty_Internal_Templateparser::TP_DOUBLECOLON;
}
- function yy_r3_55()
+ public function yy_r3_55()
{
$this->token = Smarty_Internal_Templateparser::TP_COLON;
}
- function yy_r3_56()
+ public function yy_r3_56()
{
$this->token = Smarty_Internal_Templateparser::TP_QMARK;
}
- function yy_r3_57()
+ public function yy_r3_57()
{
$this->token = Smarty_Internal_Templateparser::TP_HEX;
}
- function yy_r3_58()
+ public function yy_r3_58()
{
$this->token = Smarty_Internal_Templateparser::TP_SPACE;
} // end function
- function yy_r3_59()
+ public function yy_r3_59()
{
$this->token = Smarty_Internal_Templateparser::TP_TEXT;
}
-public function yylex4()
+ public function yylex4()
{
if (!isset($this->yy_global_pattern4)) {
$this->yy_global_pattern4 =
@@ -868,9 +880,11 @@ public function yylex4()
}
if (empty($yymatches)) {
throw new Exception('Error: lexing failed because a rule matched' .
- ' an empty string. Input "' . substr($this->data,
- $this->counter,
- 5) . '... state LITERAL');
+ ' an empty string. Input "' . substr(
+ $this->data,
+ $this->counter,
+ 5
+ ) . '... state LITERAL');
}
next($yymatches); // skip global match
$this->token = key($yymatches); // token number
@@ -881,11 +895,11 @@ public function yylex4()
$this->line += substr_count($this->value, "\n");
// accept this token
return true;
- } else if ($r === true) {
+ } elseif ($r === true) {
// we have changed state
// process this token in the new state
return $this->yylex();
- } else if ($r === false) {
+ } elseif ($r === false) {
$this->counter += strlen($this->value);
$this->line += substr_count($this->value, "\n");
if ($this->counter >= $this->dataLength) {
@@ -902,13 +916,13 @@ public function yylex4()
} while (true);
}
- function yy_r4_1()
+ public function yy_r4_1()
{
$this->literal_cnt++;
$this->token = Smarty_Internal_Templateparser::TP_LITERAL;
}
- function yy_r4_3()
+ public function yy_r4_3()
{
if ($this->literal_cnt) {
$this->literal_cnt--;
@@ -919,12 +933,12 @@ public function yylex4()
}
}
- function yy_r4_5()
+ public function yy_r4_5()
{
$this->token = Smarty_Internal_Templateparser::TP_LITERAL;
} // end function
-public function yylex5()
+ public function yylex5()
{
if (!isset($this->yy_global_pattern5)) {
$this->yy_global_pattern5 =
@@ -945,9 +959,11 @@ public function yylex5()
}
if (empty($yymatches)) {
throw new Exception('Error: lexing failed because a rule matched' .
- ' an empty string. Input "' . substr($this->data,
- $this->counter,
- 5) . '... state DOUBLEQUOTEDSTRING');
+ ' an empty string. Input "' . substr(
+ $this->data,
+ $this->counter,
+ 5
+ ) . '... state DOUBLEQUOTEDSTRING');
}
next($yymatches); // skip global match
$this->token = key($yymatches); // token number
@@ -958,11 +974,11 @@ public function yylex5()
$this->line += substr_count($this->value, "\n");
// accept this token
return true;
- } else if ($r === true) {
+ } elseif ($r === true) {
// we have changed state
// process this token in the new state
return $this->yylex();
- } else if ($r === false) {
+ } elseif ($r === false) {
$this->counter += strlen($this->value);
$this->line += substr_count($this->value, "\n");
if ($this->counter >= $this->dataLength) {
@@ -979,47 +995,47 @@ public function yylex5()
} while (true);
}
- function yy_r5_1()
+ public function yy_r5_1()
{
$this->token = Smarty_Internal_Templateparser::TP_TEXT;
}
- function yy_r5_3()
+ public function yy_r5_3()
{
$this->token = Smarty_Internal_Templateparser::TP_TEXT;
}
- function yy_r5_5()
+ public function yy_r5_5()
{
$this->token = Smarty_Internal_Templateparser::TP_TEXT;
}
- function yy_r5_7()
+ public function yy_r5_7()
{
$this->yypushstate(self::TAG);
return true;
}
- function yy_r5_9()
+ public function yy_r5_9()
{
$this->yypushstate(self::TAG);
return true;
}
- function yy_r5_11()
+ public function yy_r5_11()
{
$this->token = Smarty_Internal_Templateparser::TP_LDEL;
$this->taglineno = $this->line;
$this->yypushstate(self::TAGBODY);
}
- function yy_r5_13()
+ public function yy_r5_13()
{
$this->token = Smarty_Internal_Templateparser::TP_QUOTE;
$this->yypopstate();
}
- function yy_r5_14()
+ public function yy_r5_14()
{
$this->token = Smarty_Internal_Templateparser::TP_BACKTICK;
$this->value = substr($this->value, 0, -1);
@@ -1027,20 +1043,18 @@ public function yylex5()
$this->taglineno = $this->line;
}
- function yy_r5_15()
+ public function yy_r5_15()
{
$this->token = Smarty_Internal_Templateparser::TP_DOLLARID;
}
- function yy_r5_16()
+ public function yy_r5_16()
{
$this->token = Smarty_Internal_Templateparser::TP_TEXT;
}
- function yy_r5_17()
+ public function yy_r5_17()
{
$this->token = Smarty_Internal_Templateparser::TP_TEXT;
}
}
-
-
\ No newline at end of file
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php
index d8219daed..b008715f7 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php
@@ -4,13 +4,14 @@ class TP_yyStackEntry
{
public $stateno; /* The state-number */
public $major; /* The major token value. This is the code
- ** number for the token at this stack level */
- public $minor; /* The user-supplied minor token value. This
- ** is the value of the token */
+ * number for the token at this stack level
+ */
+ public $minor; /* The user-supplied minor token value. This
+ * is the value of the token
+ */
}
-;
-#line 11 "../smarty/lexer/smarty_internal_templateparser.y"
+// line 11 "../smarty/lexer/smarty_internal_templateparser.y"
/**
* Smarty Template Parser Class
@@ -22,10 +23,10 @@ class TP_yyStackEntry
*/
class Smarty_Internal_Templateparser
{
- #line 23 "../smarty/lexer/smarty_internal_templateparser.y"
- const Err1 = 'Security error: Call to private object member not allowed';
- const Err2 = 'Security error: Call to dynamic object member not allowed';
- const Err3 = 'PHP in template not allowed. Use SmartyBC to enable it';
+ // line 23 "../smarty/lexer/smarty_internal_templateparser.y"
+ const ERR1 = 'Security error: Call to private object member not allowed';
+ const ERR2 = 'Security error: Call to dynamic object member not allowed';
+ const ERR3 = 'PHP in template not allowed. Use SmartyBC to enable it';
const TP_VERT = 1;
const TP_COLON = 2;
const TP_UNIMATH = 3;
@@ -89,339 +90,231 @@ class Smarty_Internal_Templateparser
const YY_NO_ACTION = 511;
const YY_ACCEPT_ACTION = 510;
const YY_ERROR_ACTION = 509;
- const YY_SZ_ACTTAB = 2178;
- const YY_SHIFT_USE_DFLT = -23;
- const YY_SHIFT_MAX = 227;
- const YY_REDUCE_USE_DFLT = -68;
- const YY_REDUCE_MAX = 176;
- const YYNOCODE = 108;
- const YYSTACKDEPTH = 500;
- const YYNSTATE = 323;
- const YYNRULE = 186;
- const YYERRORSYMBOL = 61;
- const YYERRSYMDT = 'yy0';
- const YYFALLBACK = 0;
- /**
- * result status
- *
- * @var bool
- */
- public $successful = true;
- /**
- * return value
- *
- * @var mixed
- */
- public $retvalue = 0;
- /**
- * @var
- */
- public $yymajor;
- /**
- * last index of array variable
- *
- * @var mixed
- */
- public $last_index;
- /**
- * last variable name
- *
- * @var string
- */
- public $last_variable;
- /**
- * root parse tree buffer
- *
- * @var Smarty_Internal_ParseTree
- */
- public $root_buffer;
- /**
- * current parse tree object
- *
- * @var Smarty_Internal_ParseTree
- */
- public $current_buffer;
- /**
- * lexer object
- *
- * @var Smarty_Internal_Templatelexer
- */
- public $lex;
- /**
- * internal error flag
- *
- * @var bool
- */
- private $internalError = false;
- /**
- * {strip} status
- *
- * @var bool
- */
- public $strip = false;
- /**
- * compiler object
- *
- * @var Smarty_Internal_TemplateCompilerBase
- */
- public $compiler = null;
- /**
- * smarty object
- *
- * @var Smarty
- */
- public $smarty = null;
- /**
- * template object
- *
- * @var Smarty_Internal_Template
- */
- public $template = null;
- /**
- * block nesting level
- *
- * @var int
- */
- public $block_nesting_level = 0;
- /**
- * security object
- *
- * @var Smarty_Security
- */
- public $security = null;
- /**
- * template prefix array
- *
- * @var \Smarty_Internal_ParseTree[]
- */
- public $template_prefix = array();
- /**
- * template prefix array
- *
- * @var \Smarty_Internal_ParseTree[]
- */
- public $template_postfix = array();
- static public $yy_action = array(
- 43, 266, 267, 379, 115, 203, 33, 201, 274, 275,
- 281, 1, 13, 124, 93, 183, 379, 217, 6, 79,
- 253, 89, 379, 16, 102, 425, 304, 252, 218, 249,
- 211, 129, 190, 302, 26, 213, 425, 33, 11, 39,
- 42, 283, 209, 13, 223, 385, 195, 233, 77, 3,
- 236, 290, 43, 385, 170, 385, 75, 17, 385, 94,
- 274, 275, 281, 1, 385, 128, 385, 196, 385, 217,
- 6, 79, 80, 298, 158, 210, 102, 156, 174, 133,
- 218, 249, 211, 85, 208, 290, 28, 264, 101, 264,
- 199, 39, 42, 283, 209, 31, 312, 182, 195, 259,
- 77, 3, 43, 290, 23, 172, 239, 174, 75, 288,
- 274, 275, 281, 1, 167, 127, 256, 196, 248, 217,
- 6, 79, 345, 40, 20, 305, 102, 248, 345, 157,
- 218, 249, 211, 83, 208, 290, 26, 8, 174, 264,
- 74, 39, 42, 283, 209, 131, 312, 292, 195, 74,
- 77, 3, 43, 290, 295, 99, 243, 174, 75, 345,
- 274, 275, 281, 1, 15, 126, 86, 196, 248, 217,
- 6, 79, 345, 322, 161, 289, 102, 87, 345, 165,
- 218, 249, 211, 290, 208, 115, 26, 128, 255, 221,
- 74, 39, 42, 283, 209, 93, 312, 210, 195, 162,
- 77, 3, 43, 290, 254, 235, 247, 304, 75, 27,
- 274, 275, 281, 1, 172, 127, 425, 177, 248, 217,
- 6, 79, 77, 174, 250, 290, 102, 425, 198, 14,
- 218, 249, 211, 248, 208, 34, 26, 222, 206, 139,
- 74, 39, 42, 283, 209, 198, 312, 23, 195, 291,
- 77, 3, 43, 290, 300, 74, 198, 438, 75, 346,
- 274, 275, 281, 1, 438, 127, 176, 196, 267, 217,
- 6, 79, 346, 161, 289, 290, 102, 23, 346, 238,
- 218, 249, 211, 33, 178, 263, 26, 160, 289, 13,
- 37, 39, 42, 283, 209, 198, 312, 212, 195, 250,
- 77, 3, 43, 290, 216, 189, 155, 97, 75, 381,
- 274, 275, 281, 1, 149, 127, 264, 179, 18, 217,
- 6, 79, 381, 94, 97, 237, 102, 140, 381, 251,
- 218, 249, 211, 4, 194, 94, 26, 264, 198, 37,
- 30, 39, 42, 283, 209, 198, 312, 212, 195, 129,
- 77, 3, 43, 290, 219, 172, 11, 97, 75, 378,
- 274, 275, 281, 1, 101, 127, 438, 186, 210, 217,
- 6, 79, 378, 438, 12, 163, 102, 220, 378, 425,
- 218, 249, 211, 302, 208, 213, 26, 225, 215, 187,
- 425, 39, 42, 283, 209, 234, 312, 7, 195, 212,
- 77, 3, 43, 290, 134, 9, 240, 425, 75, 97,
- 274, 275, 281, 1, 264, 91, 109, 76, 425, 217,
- 6, 79, 253, 293, 426, 16, 102, 251, 198, 252,
- 218, 249, 211, 198, 208, 426, 26, 148, 198, 135,
- 132, 39, 42, 283, 209, 143, 312, 264, 195, 264,
- 77, 3, 43, 290, 138, 264, 205, 24, 75, 166,
- 274, 275, 281, 1, 264, 125, 276, 196, 19, 217,
- 6, 79, 454, 153, 13, 454, 102, 168, 290, 454,
- 218, 249, 211, 174, 208, 314, 5, 136, 210, 251,
- 152, 39, 42, 283, 209, 268, 312, 213, 195, 308,
- 77, 3, 43, 290, 94, 169, 111, 144, 75, 251,
- 274, 275, 281, 1, 229, 128, 7, 196, 313, 217,
- 6, 79, 510, 90, 175, 111, 102, 164, 289, 174,
- 218, 249, 211, 101, 208, 265, 28, 32, 128, 150,
- 261, 39, 42, 283, 209, 10, 312, 317, 195, 224,
- 77, 21, 269, 290, 232, 230, 282, 114, 75, 307,
- 214, 213, 279, 22, 84, 103, 246, 181, 92, 64,
- 260, 262, 454, 77, 93, 454, 290, 257, 316, 454,
- 438, 228, 311, 197, 309, 78, 304, 271, 272, 273,
- 270, 121, 258, 310, 274, 275, 281, 1, 17, 280,
- 110, 284, 81, 217, 6, 79, 438, 146, 94, 438,
- 102, 454, 151, 438, 218, 249, 211, 307, 214, 213,
- 279, 278, 84, 103, 104, 180, 92, 56, 263, 159,
- 130, 152, 93, 295, 137, 257, 316, 295, 251, 88,
- 311, 197, 309, 82, 304, 307, 295, 213, 303, 295,
- 100, 295, 295, 193, 105, 59, 295, 295, 295, 295,
- 93, 295, 295, 257, 316, 295, 295, 295, 311, 197,
- 309, 307, 304, 213, 277, 295, 100, 103, 295, 181,
- 92, 64, 200, 297, 295, 253, 93, 295, 16, 257,
- 316, 295, 252, 295, 311, 197, 309, 295, 304, 295,
- 299, 295, 295, 295, 295, 295, 274, 275, 281, 2,
- 295, 301, 295, 295, 295, 217, 6, 79, 253, 295,
- 295, 16, 102, 299, 204, 252, 218, 249, 211, 274,
- 275, 281, 2, 295, 301, 33, 295, 154, 217, 6,
- 79, 13, 295, 295, 295, 102, 295, 295, 295, 218,
- 249, 211, 295, 295, 286, 25, 307, 295, 213, 295,
- 295, 100, 295, 295, 193, 105, 59, 295, 295, 295,
- 295, 93, 295, 295, 257, 316, 295, 287, 25, 311,
- 197, 309, 307, 304, 213, 295, 454, 100, 295, 454,
- 193, 118, 67, 454, 296, 253, 295, 93, 16, 295,
- 257, 316, 252, 295, 295, 311, 197, 309, 295, 304,
- 295, 295, 307, 295, 213, 295, 188, 100, 295, 295,
- 193, 118, 67, 295, 295, 454, 295, 93, 295, 295,
- 257, 316, 295, 295, 226, 311, 197, 309, 295, 304,
- 295, 295, 307, 295, 213, 295, 192, 100, 295, 295,
- 193, 118, 67, 295, 295, 295, 295, 93, 295, 295,
- 257, 316, 295, 295, 295, 311, 197, 309, 295, 304,
- 295, 295, 307, 295, 213, 295, 191, 98, 295, 295,
- 193, 118, 46, 295, 108, 295, 295, 93, 295, 295,
- 257, 316, 295, 295, 295, 311, 197, 309, 307, 304,
- 213, 295, 295, 98, 295, 295, 193, 118, 47, 295,
- 219, 295, 295, 93, 295, 295, 257, 316, 295, 295,
- 295, 311, 197, 309, 307, 304, 213, 295, 295, 100,
- 295, 295, 193, 118, 45, 295, 295, 295, 295, 93,
- 295, 295, 257, 316, 295, 295, 295, 311, 197, 309,
- 295, 304, 295, 295, 307, 295, 213, 295, 295, 100,
- 295, 295, 193, 118, 70, 295, 295, 295, 295, 93,
- 295, 295, 257, 316, 295, 295, 295, 311, 197, 309,
- 307, 304, 213, 295, 295, 100, 295, 295, 193, 118,
- 49, 295, 295, 295, 295, 93, 295, 295, 257, 316,
- 295, 295, 295, 311, 197, 309, 307, 304, 213, 295,
- 295, 100, 295, 295, 193, 96, 66, 295, 295, 295,
- 295, 93, 295, 295, 257, 316, 295, 295, 295, 311,
- 197, 309, 295, 304, 295, 295, 307, 295, 213, 295,
- 295, 100, 295, 295, 193, 118, 44, 295, 295, 295,
- 295, 93, 295, 295, 257, 316, 295, 295, 295, 311,
- 197, 309, 307, 304, 213, 295, 295, 100, 295, 295,
- 193, 118, 58, 295, 295, 295, 295, 93, 295, 295,
- 257, 316, 295, 295, 295, 311, 197, 309, 307, 304,
- 213, 295, 295, 100, 295, 295, 193, 118, 54, 295,
- 295, 295, 295, 93, 295, 295, 257, 316, 295, 295,
- 295, 311, 197, 309, 295, 304, 295, 295, 307, 295,
- 213, 295, 295, 100, 295, 295, 193, 118, 71, 295,
- 295, 295, 295, 93, 295, 295, 257, 316, 295, 295,
- 295, 311, 197, 309, 307, 304, 213, 295, 295, 100,
- 295, 295, 193, 118, 65, 295, 295, 295, 295, 93,
- 295, 295, 257, 316, 295, 295, 295, 311, 197, 309,
- 307, 304, 213, 295, 295, 100, 295, 295, 193, 96,
- 57, 295, 295, 295, 295, 93, 295, 295, 257, 316,
- 295, 295, 295, 311, 197, 309, 295, 304, 295, 295,
- 307, 295, 213, 295, 295, 100, 295, 295, 185, 106,
- 53, 295, 295, 295, 295, 93, 295, 295, 257, 316,
- 295, 295, 295, 311, 197, 309, 307, 304, 213, 295,
- 295, 100, 295, 295, 193, 118, 60, 295, 295, 295,
- 295, 93, 295, 295, 257, 316, 295, 295, 295, 311,
- 197, 309, 307, 304, 213, 295, 295, 100, 295, 295,
- 193, 118, 73, 295, 295, 295, 295, 93, 295, 295,
- 257, 316, 295, 295, 295, 311, 197, 309, 295, 304,
- 295, 295, 307, 295, 213, 295, 295, 100, 295, 295,
- 193, 118, 55, 295, 295, 295, 295, 93, 295, 295,
- 257, 316, 295, 295, 295, 311, 197, 309, 307, 304,
- 213, 295, 295, 100, 295, 295, 193, 95, 68, 295,
- 295, 295, 295, 93, 295, 295, 257, 316, 295, 295,
- 295, 311, 197, 309, 307, 304, 213, 295, 295, 100,
- 295, 295, 193, 118, 69, 295, 295, 295, 295, 93,
- 295, 295, 257, 316, 295, 295, 295, 311, 197, 309,
- 295, 304, 295, 295, 307, 295, 213, 295, 295, 100,
- 295, 295, 193, 118, 51, 295, 295, 295, 295, 93,
- 295, 295, 257, 316, 295, 295, 295, 311, 197, 309,
- 307, 304, 213, 295, 295, 100, 295, 295, 184, 118,
- 52, 295, 295, 295, 295, 93, 295, 295, 257, 316,
- 295, 295, 295, 311, 197, 309, 307, 304, 213, 295,
- 295, 100, 295, 295, 193, 118, 47, 295, 295, 295,
- 295, 93, 295, 295, 257, 316, 295, 295, 295, 311,
- 197, 309, 295, 304, 295, 295, 307, 295, 213, 295,
- 295, 100, 295, 295, 193, 118, 50, 295, 295, 295,
- 295, 93, 295, 295, 257, 316, 295, 295, 295, 311,
- 197, 309, 307, 304, 213, 295, 295, 100, 295, 295,
- 193, 118, 62, 295, 295, 295, 295, 93, 295, 295,
- 257, 316, 295, 295, 295, 311, 197, 309, 307, 304,
- 213, 295, 295, 100, 295, 295, 193, 118, 63, 295,
- 295, 295, 295, 93, 295, 295, 257, 316, 295, 295,
- 295, 311, 197, 309, 295, 304, 295, 295, 307, 295,
- 213, 295, 295, 100, 295, 295, 193, 118, 61, 295,
- 295, 295, 295, 93, 295, 295, 257, 316, 295, 295,
- 295, 311, 197, 309, 307, 304, 213, 295, 295, 100,
- 295, 295, 193, 118, 48, 295, 295, 295, 295, 93,
- 295, 295, 257, 316, 391, 391, 391, 311, 197, 309,
- 307, 304, 213, 295, 295, 100, 295, 295, 193, 118,
- 72, 295, 295, 295, 295, 93, 295, 295, 257, 316,
- 295, 295, 295, 311, 197, 309, 295, 304, 295, 295,
- 425, 295, 391, 391, 295, 295, 295, 295, 307, 295,
- 213, 425, 198, 100, 38, 295, 193, 112, 391, 391,
- 391, 391, 38, 93, 295, 295, 295, 306, 295, 295,
- 295, 311, 197, 309, 295, 304, 295, 35, 307, 33,
- 213, 295, 295, 100, 295, 13, 193, 120, 295, 295,
- 41, 36, 198, 93, 38, 295, 295, 231, 41, 36,
- 295, 311, 197, 309, 295, 304, 319, 318, 315, 245,
- 295, 207, 295, 295, 319, 318, 315, 245, 295, 33,
- 454, 295, 295, 454, 295, 13, 207, 454, 438, 295,
- 41, 36, 295, 295, 295, 454, 295, 295, 454, 295,
- 295, 14, 454, 438, 295, 295, 319, 318, 315, 245,
- 295, 198, 295, 38, 438, 295, 295, 438, 307, 454,
- 213, 438, 320, 100, 295, 241, 193, 122, 295, 438,
- 295, 295, 438, 93, 454, 295, 438, 295, 198, 295,
- 38, 311, 197, 309, 295, 304, 307, 295, 213, 41,
- 36, 100, 295, 295, 193, 117, 295, 295, 295, 295,
- 295, 93, 295, 295, 295, 319, 318, 315, 245, 311,
- 197, 309, 207, 304, 295, 295, 41, 36, 295, 295,
- 295, 454, 295, 295, 454, 295, 295, 4, 454, 438,
- 295, 295, 319, 318, 315, 245, 295, 294, 295, 295,
- 295, 307, 295, 213, 295, 295, 100, 295, 295, 193,
- 123, 295, 295, 295, 295, 438, 93, 295, 438, 141,
- 454, 295, 438, 167, 311, 197, 309, 295, 304, 264,
- 295, 295, 40, 20, 305, 295, 295, 307, 295, 213,
- 295, 198, 100, 38, 295, 193, 116, 174, 307, 295,
- 213, 295, 93, 100, 295, 295, 193, 113, 295, 295,
- 311, 197, 309, 93, 304, 295, 198, 295, 38, 295,
- 295, 311, 197, 309, 295, 304, 307, 295, 213, 41,
- 36, 100, 295, 295, 193, 119, 295, 295, 295, 295,
- 295, 93, 295, 321, 145, 319, 318, 315, 245, 311,
- 197, 309, 207, 304, 41, 36, 295, 295, 295, 295,
- 295, 454, 295, 295, 454, 295, 295, 295, 454, 438,
- 319, 318, 315, 245, 198, 295, 38, 295, 198, 295,
- 38, 295, 198, 295, 38, 295, 295, 295, 242, 295,
- 295, 295, 285, 295, 295, 438, 171, 295, 438, 295,
- 454, 295, 438, 295, 295, 295, 295, 454, 295, 295,
- 454, 295, 41, 36, 454, 438, 41, 36, 295, 295,
- 41, 36, 198, 295, 38, 295, 295, 295, 319, 318,
- 315, 245, 319, 318, 315, 245, 319, 318, 315, 245,
- 295, 438, 295, 147, 438, 295, 454, 167, 438, 295,
- 295, 295, 295, 264, 295, 295, 40, 20, 305, 227,
- 41, 36, 295, 295, 295, 295, 295, 295, 295, 295,
- 295, 174, 295, 295, 295, 295, 319, 318, 315, 245,
- 198, 295, 38, 295, 198, 295, 38, 142, 198, 295,
- 38, 167, 295, 295, 173, 295, 295, 264, 295, 295,
- 40, 20, 305, 295, 295, 295, 107, 295, 198, 29,
- 38, 295, 198, 295, 38, 174, 295, 295, 41, 36,
- 295, 295, 41, 36, 295, 244, 41, 36, 295, 295,
- 295, 295, 295, 295, 319, 318, 315, 245, 319, 318,
- 315, 245, 319, 318, 315, 245, 41, 36, 295, 295,
- 41, 36, 295, 295, 295, 295, 295, 295, 295, 295,
- 295, 295, 319, 318, 315, 245, 319, 318, 315, 245,
- 198, 295, 295, 295, 295, 295, 295, 295, 295, 295,
- 295, 295, 295, 295, 349, 295, 295, 295, 202, 295,
- 295, 295, 295, 295, 295, 295, 295, 33, 295, 295,
- 295, 295, 295, 13, 295, 295, 425, 295, 295, 295,
- 295, 295, 295, 295, 295, 295, 295, 425,
+ const YY_SZ_ACTTAB = 2076;
+ const YY_SHIFT_USE_DFLT = -23;
+ const YY_SHIFT_MAX = 227;
+ const YY_REDUCE_USE_DFLT = -68;
+ const YY_REDUCE_MAX = 176;
+ const YYNOCODE = 108;
+ const YYSTACKDEPTH = 500;
+ const YYNSTATE = 323;
+ const YYNRULE = 186;
+ const YYERRORSYMBOL = 61;
+ const YYERRSYMDT = 'yy0';
+ const YYFALLBACK = 0;
+
+ public static $yy_action = array(
+ 42, 266, 267, 379, 115, 202, 27, 204, 260, 235,
+ 237, 1, 17, 125, 94, 182, 379, 215, 10, 79,
+ 317, 168, 379, 12, 107, 425, 308, 318, 224, 298,
+ 218, 129, 189, 292, 21, 203, 425, 27, 11, 39,
+ 38, 299, 219, 17, 213, 385, 191, 245, 77, 3,
+ 303, 315, 42, 385, 160, 385, 75, 29, 385, 95,
+ 260, 235, 237, 1, 385, 126, 385, 193, 385, 215,
+ 10, 79, 80, 290, 145, 226, 107, 148, 172, 150,
+ 224, 298, 218, 85, 217, 315, 21, 280, 101, 280,
+ 141, 39, 38, 299, 219, 20, 287, 183, 191, 232,
+ 77, 3, 42, 315, 16, 176, 316, 172, 75, 275,
+ 260, 235, 237, 1, 167, 128, 236, 193, 319, 215,
+ 10, 79, 345, 40, 14, 257, 107, 319, 345, 5,
+ 224, 298, 218, 89, 217, 315, 30, 292, 172, 203,
+ 74, 39, 38, 299, 219, 132, 287, 205, 191, 74,
+ 77, 3, 42, 315, 210, 194, 310, 99, 75, 345,
+ 260, 235, 237, 1, 425, 126, 87, 179, 319, 215,
+ 10, 79, 345, 95, 195, 425, 107, 272, 345, 176,
+ 224, 298, 218, 315, 199, 115, 21, 128, 278, 209,
+ 74, 39, 38, 299, 219, 94, 287, 226, 191, 129,
+ 77, 3, 42, 315, 277, 309, 11, 308, 75, 13,
+ 260, 235, 237, 1, 163, 127, 425, 193, 319, 215,
+ 10, 79, 77, 254, 19, 315, 107, 425, 137, 34,
+ 224, 298, 218, 196, 217, 33, 21, 220, 280, 159,
+ 74, 39, 38, 299, 219, 196, 287, 8, 191, 162,
+ 77, 3, 42, 315, 294, 222, 196, 438, 75, 378,
+ 260, 235, 237, 1, 438, 126, 16, 193, 271, 215,
+ 10, 79, 378, 172, 302, 315, 107, 175, 378, 267,
+ 224, 298, 218, 27, 178, 252, 21, 164, 296, 17,
+ 83, 39, 38, 299, 219, 196, 287, 205, 191, 170,
+ 77, 3, 42, 315, 270, 18, 144, 99, 75, 346,
+ 260, 235, 237, 1, 142, 126, 280, 177, 84, 215,
+ 10, 79, 346, 172, 280, 4, 107, 95, 346, 321,
+ 224, 298, 218, 438, 217, 131, 21, 321, 426, 24,
+ 438, 39, 38, 299, 219, 196, 287, 205, 191, 426,
+ 77, 3, 42, 315, 201, 9, 101, 99, 75, 381,
+ 260, 235, 237, 1, 149, 124, 102, 193, 22, 215,
+ 10, 79, 381, 315, 99, 231, 107, 311, 381, 425,
+ 224, 298, 218, 23, 217, 319, 7, 207, 196, 17,
+ 425, 39, 38, 299, 219, 307, 287, 36, 191, 154,
+ 77, 3, 42, 315, 161, 296, 227, 74, 75, 280,
+ 260, 235, 237, 1, 16, 91, 273, 76, 312, 215,
+ 10, 79, 317, 208, 190, 12, 107, 176, 196, 318,
+ 224, 298, 218, 135, 217, 321, 21, 196, 35, 95,
+ 263, 39, 38, 299, 219, 157, 287, 111, 191, 88,
+ 77, 3, 42, 315, 169, 280, 225, 15, 75, 285,
+ 260, 235, 237, 1, 155, 126, 226, 184, 101, 215,
+ 10, 79, 454, 172, 280, 454, 107, 246, 253, 454,
+ 224, 298, 218, 152, 217, 111, 21, 161, 296, 265,
+ 6, 39, 38, 299, 219, 269, 287, 203, 191, 119,
+ 77, 3, 42, 315, 158, 262, 321, 274, 75, 97,
+ 260, 235, 237, 1, 153, 128, 165, 193, 151, 215,
+ 10, 79, 317, 43, 280, 12, 107, 320, 280, 318,
+ 224, 298, 218, 8, 217, 171, 30, 306, 196, 36,
+ 172, 39, 38, 299, 219, 264, 287, 256, 191, 128,
+ 77, 288, 78, 315, 510, 90, 166, 296, 75, 41,
+ 37, 223, 104, 228, 250, 251, 255, 122, 226, 289,
+ 260, 235, 237, 1, 239, 233, 238, 240, 241, 215,
+ 10, 79, 229, 305, 77, 304, 107, 315, 281, 300,
+ 224, 298, 218, 261, 211, 203, 314, 28, 86, 108,
+ 140, 181, 96, 61, 214, 247, 317, 454, 94, 12,
+ 454, 297, 322, 318, 454, 29, 259, 192, 249, 248,
+ 308, 313, 138, 27, 302, 143, 130, 82, 95, 17,
+ 261, 211, 203, 314, 252, 86, 108, 286, 180, 96,
+ 50, 136, 139, 100, 152, 94, 454, 81, 297, 322,
+ 295, 321, 146, 259, 192, 249, 295, 308, 261, 295,
+ 203, 295, 295, 110, 295, 295, 197, 105, 64, 295,
+ 295, 295, 295, 94, 295, 295, 297, 322, 295, 295,
+ 295, 259, 192, 249, 261, 308, 203, 276, 295, 110,
+ 108, 295, 181, 96, 61, 187, 282, 295, 317, 94,
+ 295, 12, 297, 322, 295, 318, 295, 259, 192, 249,
+ 295, 308, 295, 291, 295, 295, 295, 295, 295, 260,
+ 235, 237, 2, 295, 293, 295, 295, 295, 215, 10,
+ 79, 295, 295, 295, 295, 107, 291, 206, 295, 224,
+ 298, 218, 260, 235, 237, 2, 295, 293, 295, 295,
+ 295, 215, 10, 79, 295, 295, 295, 295, 107, 295,
+ 295, 295, 224, 298, 218, 295, 295, 295, 26, 261,
+ 295, 203, 295, 295, 110, 295, 295, 197, 113, 60,
+ 295, 295, 295, 295, 94, 156, 295, 297, 322, 167,
+ 284, 26, 259, 192, 249, 280, 308, 295, 40, 14,
+ 257, 295, 261, 200, 203, 295, 295, 110, 295, 295,
+ 197, 105, 64, 172, 295, 295, 295, 94, 295, 295,
+ 297, 322, 295, 295, 295, 259, 192, 249, 295, 308,
+ 295, 295, 295, 295, 261, 295, 203, 295, 295, 98,
+ 283, 295, 197, 113, 51, 295, 201, 295, 295, 94,
+ 295, 295, 297, 322, 295, 295, 295, 259, 192, 249,
+ 261, 308, 203, 295, 295, 110, 295, 295, 197, 113,
+ 60, 295, 295, 295, 295, 94, 295, 295, 297, 322,
+ 295, 295, 295, 259, 192, 249, 295, 308, 261, 295,
+ 203, 295, 295, 110, 188, 295, 197, 113, 60, 196,
+ 31, 43, 295, 94, 295, 295, 297, 322, 295, 295,
+ 295, 259, 192, 249, 295, 308, 261, 295, 203, 295,
+ 295, 98, 198, 295, 197, 113, 45, 295, 109, 295,
+ 295, 94, 295, 295, 297, 322, 295, 41, 37, 259,
+ 192, 249, 261, 308, 203, 295, 295, 110, 295, 295,
+ 197, 113, 67, 233, 238, 240, 241, 94, 295, 295,
+ 297, 322, 295, 295, 295, 259, 192, 249, 295, 308,
+ 261, 295, 203, 295, 295, 110, 295, 295, 197, 113,
+ 57, 196, 295, 43, 295, 94, 295, 295, 297, 322,
+ 295, 295, 295, 259, 192, 249, 295, 308, 261, 295,
+ 203, 295, 295, 110, 295, 295, 197, 113, 46, 295,
+ 295, 295, 295, 94, 295, 295, 297, 322, 295, 41,
+ 37, 259, 192, 249, 261, 308, 203, 295, 295, 110,
+ 295, 295, 197, 113, 66, 233, 238, 240, 241, 94,
+ 301, 295, 297, 322, 295, 295, 295, 259, 192, 249,
+ 295, 308, 261, 295, 203, 295, 295, 110, 295, 295,
+ 197, 113, 72, 196, 295, 43, 295, 94, 295, 295,
+ 297, 322, 295, 295, 295, 259, 192, 249, 295, 308,
+ 261, 295, 203, 295, 295, 110, 295, 295, 197, 113,
+ 53, 295, 295, 295, 295, 94, 295, 295, 297, 322,
+ 230, 41, 37, 259, 192, 249, 261, 308, 203, 295,
+ 295, 110, 295, 295, 197, 113, 48, 233, 238, 240,
+ 241, 94, 295, 295, 297, 322, 295, 295, 295, 259,
+ 192, 249, 295, 308, 261, 295, 203, 295, 295, 110,
+ 295, 295, 185, 103, 49, 196, 295, 43, 295, 94,
+ 295, 295, 297, 322, 295, 295, 295, 259, 192, 249,
+ 295, 308, 261, 295, 203, 295, 295, 110, 295, 295,
+ 197, 113, 55, 134, 295, 295, 295, 94, 295, 295,
+ 297, 322, 295, 41, 37, 259, 192, 249, 261, 308,
+ 203, 295, 295, 110, 295, 295, 197, 113, 71, 233,
+ 238, 240, 241, 94, 295, 295, 297, 322, 295, 295,
+ 295, 259, 192, 249, 295, 308, 261, 295, 203, 295,
+ 295, 110, 295, 295, 197, 113, 59, 196, 295, 43,
+ 295, 94, 295, 295, 297, 322, 295, 295, 295, 259,
+ 192, 249, 295, 308, 261, 295, 203, 295, 295, 110,
+ 295, 295, 197, 113, 63, 295, 295, 295, 295, 94,
+ 295, 295, 297, 322, 216, 41, 37, 259, 192, 249,
+ 261, 308, 203, 295, 295, 110, 295, 295, 197, 113,
+ 62, 233, 238, 240, 241, 94, 295, 295, 297, 322,
+ 295, 295, 295, 259, 192, 249, 295, 308, 261, 295,
+ 203, 295, 295, 110, 295, 295, 197, 92, 69, 196,
+ 295, 43, 295, 94, 295, 295, 297, 322, 295, 295,
+ 295, 259, 192, 249, 295, 308, 261, 295, 203, 295,
+ 295, 110, 295, 295, 197, 113, 52, 295, 295, 295,
+ 295, 94, 295, 295, 297, 322, 295, 41, 37, 259,
+ 192, 249, 261, 308, 203, 295, 295, 110, 295, 295,
+ 197, 113, 65, 233, 238, 240, 241, 94, 295, 295,
+ 297, 322, 295, 196, 295, 259, 192, 249, 295, 308,
+ 261, 295, 203, 295, 295, 110, 295, 349, 197, 113,
+ 58, 221, 295, 295, 295, 94, 295, 295, 297, 322,
+ 27, 295, 295, 259, 192, 249, 17, 308, 261, 425,
+ 203, 295, 295, 110, 295, 295, 197, 113, 56, 295,
+ 425, 295, 295, 94, 295, 295, 297, 322, 295, 295,
+ 295, 259, 192, 249, 261, 308, 203, 295, 295, 110,
+ 295, 295, 197, 113, 44, 295, 295, 295, 295, 94,
+ 295, 295, 297, 322, 295, 295, 295, 259, 192, 249,
+ 295, 308, 261, 295, 203, 295, 295, 110, 295, 295,
+ 197, 93, 70, 295, 295, 295, 295, 94, 295, 295,
+ 297, 322, 295, 295, 295, 259, 192, 249, 295, 308,
+ 261, 295, 203, 295, 295, 110, 295, 295, 186, 113,
+ 54, 295, 295, 295, 295, 94, 295, 295, 297, 322,
+ 295, 295, 295, 259, 192, 249, 261, 308, 203, 295,
+ 295, 110, 295, 295, 197, 113, 73, 295, 295, 295,
+ 295, 94, 295, 295, 297, 322, 295, 295, 295, 259,
+ 192, 249, 295, 308, 261, 295, 203, 295, 295, 110,
+ 295, 295, 197, 113, 68, 295, 295, 295, 295, 94,
+ 295, 295, 297, 322, 295, 295, 295, 259, 192, 249,
+ 295, 308, 261, 295, 203, 295, 295, 110, 295, 295,
+ 197, 93, 47, 295, 295, 295, 295, 94, 295, 295,
+ 297, 322, 391, 391, 391, 259, 192, 249, 261, 308,
+ 203, 295, 295, 110, 295, 295, 197, 113, 51, 295,
+ 295, 295, 295, 94, 295, 295, 297, 322, 196, 295,
+ 43, 259, 192, 249, 295, 308, 295, 295, 425, 295,
+ 391, 391, 295, 295, 295, 261, 295, 203, 295, 425,
+ 110, 295, 295, 197, 118, 27, 391, 391, 391, 391,
+ 94, 17, 295, 295, 258, 295, 41, 37, 259, 192,
+ 249, 261, 308, 203, 295, 196, 110, 43, 295, 197,
+ 120, 295, 233, 238, 240, 241, 94, 295, 295, 295,
+ 243, 295, 295, 295, 259, 192, 249, 295, 308, 295,
+ 32, 295, 27, 212, 295, 295, 295, 295, 17, 295,
+ 295, 295, 454, 41, 37, 454, 295, 295, 295, 454,
+ 438, 295, 295, 295, 295, 295, 295, 295, 295, 233,
+ 238, 240, 241, 295, 295, 261, 295, 203, 295, 295,
+ 110, 295, 295, 197, 112, 295, 438, 295, 295, 438,
+ 94, 454, 212, 438, 268, 295, 295, 295, 259, 192,
+ 249, 454, 308, 212, 454, 295, 295, 34, 454, 438,
+ 295, 295, 454, 295, 295, 454, 295, 133, 4, 454,
+ 438, 167, 295, 295, 295, 295, 295, 280, 295, 295,
+ 40, 14, 257, 295, 295, 438, 295, 295, 438, 261,
+ 454, 203, 438, 295, 110, 172, 438, 197, 121, 438,
+ 261, 454, 203, 438, 94, 110, 295, 295, 197, 117,
+ 295, 295, 259, 192, 249, 94, 308, 295, 295, 295,
+ 295, 295, 295, 259, 192, 249, 261, 308, 203, 295,
+ 295, 110, 295, 295, 197, 116, 295, 261, 295, 203,
+ 295, 94, 110, 295, 295, 197, 114, 295, 295, 259,
+ 192, 249, 94, 308, 196, 295, 43, 295, 295, 295,
+ 259, 192, 249, 261, 308, 203, 295, 196, 110, 43,
+ 295, 197, 123, 295, 295, 295, 106, 295, 94, 295,
+ 196, 174, 43, 295, 295, 295, 259, 192, 249, 196,
+ 308, 43, 41, 37, 244, 295, 295, 295, 295, 295,
+ 295, 295, 295, 234, 295, 41, 37, 295, 233, 238,
+ 240, 241, 295, 295, 295, 295, 295, 295, 41, 37,
+ 295, 233, 238, 240, 241, 295, 295, 41, 37, 295,
+ 295, 295, 295, 295, 233, 238, 240, 241, 25, 196,
+ 295, 43, 295, 233, 238, 240, 241, 454, 295, 295,
+ 454, 295, 295, 279, 454, 438, 212, 295, 295, 295,
+ 295, 295, 295, 295, 295, 454, 295, 295, 454, 295,
+ 295, 295, 454, 438, 196, 295, 43, 41, 37, 295,
+ 295, 438, 295, 196, 438, 43, 454, 295, 438, 295,
+ 295, 295, 295, 233, 238, 240, 241, 173, 295, 438,
+ 295, 295, 438, 295, 454, 295, 438, 454, 295, 295,
+ 454, 295, 41, 37, 454, 438, 295, 295, 295, 295,
+ 295, 41, 37, 295, 295, 295, 242, 295, 233, 238,
+ 240, 241, 295, 295, 295, 295, 295, 233, 238, 240,
+ 241, 438, 295, 295, 438, 295, 454, 147, 438, 295,
+ 295, 167, 295, 295, 295, 295, 295, 280, 295, 295,
+ 40, 14, 257, 295, 295, 295, 295, 295, 295, 295,
+ 295, 295, 295, 295, 295, 172,
);
- static public $yy_lookahead = array(
+
+ public static $yy_lookahead = array(
3, 9, 10, 15, 71, 17, 28, 74, 11, 12,
13, 14, 34, 16, 81, 18, 28, 20, 21, 22,
11, 82, 34, 14, 27, 37, 93, 18, 31, 32,
@@ -431,262 +324,255 @@ class Smarty_Internal_Templateparser
11, 12, 13, 14, 34, 16, 36, 18, 38, 20,
21, 22, 105, 106, 94, 45, 27, 73, 101, 73,
31, 32, 33, 77, 35, 54, 37, 83, 48, 83,
- 65, 42, 43, 44, 45, 14, 47, 16, 49, 18,
+ 94, 42, 43, 44, 45, 14, 47, 16, 49, 18,
51, 52, 3, 54, 36, 101, 38, 101, 59, 15,
11, 12, 13, 14, 77, 16, 35, 18, 24, 20,
- 21, 22, 28, 86, 87, 88, 27, 24, 34, 73,
- 31, 32, 33, 77, 35, 54, 37, 36, 101, 83,
- 46, 42, 43, 44, 45, 16, 47, 70, 49, 46,
- 51, 52, 3, 54, 53, 81, 53, 101, 59, 15,
- 11, 12, 13, 14, 23, 16, 37, 18, 24, 20,
- 21, 22, 28, 99, 97, 98, 27, 36, 34, 82,
+ 21, 22, 28, 86, 87, 88, 27, 24, 34, 37,
+ 31, 32, 33, 82, 35, 54, 37, 66, 101, 68,
+ 46, 42, 43, 44, 45, 16, 47, 71, 49, 46,
+ 51, 52, 3, 54, 78, 79, 53, 81, 59, 15,
+ 11, 12, 13, 14, 37, 16, 37, 18, 24, 20,
+ 21, 22, 28, 19, 65, 48, 27, 106, 34, 101,
31, 32, 33, 54, 35, 71, 37, 16, 74, 18,
- 46, 42, 43, 44, 45, 81, 47, 45, 49, 77,
- 51, 52, 3, 54, 90, 53, 18, 93, 59, 30,
- 11, 12, 13, 14, 101, 16, 37, 18, 24, 20,
- 21, 22, 51, 101, 102, 54, 27, 48, 1, 17,
- 31, 32, 33, 24, 35, 14, 37, 16, 50, 18,
- 46, 42, 43, 44, 45, 1, 47, 36, 49, 38,
- 51, 52, 3, 54, 60, 46, 1, 45, 59, 15,
- 11, 12, 13, 14, 52, 16, 8, 18, 10, 20,
- 21, 22, 28, 97, 98, 54, 27, 36, 34, 38,
+ 46, 42, 43, 44, 45, 81, 47, 45, 49, 45,
+ 51, 52, 3, 54, 90, 53, 52, 93, 59, 30,
+ 11, 12, 13, 14, 82, 16, 37, 18, 24, 20,
+ 21, 22, 51, 18, 14, 54, 27, 48, 73, 17,
+ 31, 32, 33, 1, 35, 14, 37, 16, 83, 18,
+ 46, 42, 43, 44, 45, 1, 47, 37, 49, 77,
+ 51, 52, 3, 54, 60, 50, 1, 45, 59, 15,
+ 11, 12, 13, 14, 52, 16, 36, 18, 38, 20,
+ 21, 22, 28, 101, 102, 54, 27, 8, 34, 10,
31, 32, 33, 28, 35, 95, 37, 97, 98, 34,
- 2, 42, 43, 44, 45, 1, 47, 71, 49, 102,
- 51, 52, 3, 54, 78, 79, 73, 81, 59, 15,
- 11, 12, 13, 14, 71, 16, 83, 18, 17, 20,
- 21, 22, 28, 19, 81, 24, 27, 73, 34, 96,
- 31, 32, 33, 17, 35, 19, 37, 83, 1, 2,
- 17, 42, 43, 44, 45, 1, 47, 71, 49, 45,
- 51, 52, 3, 54, 78, 101, 52, 81, 59, 15,
- 11, 12, 13, 14, 48, 16, 45, 18, 45, 20,
- 21, 22, 28, 52, 14, 16, 27, 18, 34, 37,
- 31, 32, 33, 66, 35, 68, 37, 45, 64, 65,
- 48, 42, 43, 44, 45, 53, 47, 37, 49, 71,
- 51, 52, 3, 54, 73, 37, 78, 37, 59, 81,
- 11, 12, 13, 14, 83, 16, 48, 18, 48, 20,
- 21, 22, 11, 106, 37, 14, 27, 96, 1, 18,
- 31, 32, 33, 1, 35, 48, 37, 73, 1, 73,
- 16, 42, 43, 44, 45, 73, 47, 83, 49, 83,
- 51, 52, 3, 54, 73, 83, 19, 30, 59, 77,
- 11, 12, 13, 14, 83, 16, 70, 18, 28, 20,
- 21, 22, 11, 94, 34, 14, 27, 82, 54, 18,
- 31, 32, 33, 101, 35, 53, 37, 94, 45, 96,
- 94, 42, 43, 44, 45, 66, 47, 68, 49, 92,
- 51, 52, 3, 54, 19, 77, 99, 94, 59, 96,
- 11, 12, 13, 14, 38, 16, 37, 18, 92, 20,
- 21, 22, 62, 63, 18, 99, 27, 97, 98, 101,
- 31, 32, 33, 48, 35, 16, 37, 25, 16, 51,
- 18, 42, 43, 44, 45, 37, 47, 18, 49, 18,
- 51, 41, 9, 54, 53, 53, 15, 18, 59, 66,
- 67, 68, 69, 2, 71, 72, 18, 74, 75, 76,
- 18, 49, 11, 51, 81, 14, 54, 84, 85, 18,
- 19, 18, 89, 90, 91, 18, 93, 4, 5, 6,
- 7, 8, 18, 35, 11, 12, 13, 14, 17, 15,
- 18, 35, 81, 20, 21, 22, 45, 51, 19, 48,
- 27, 50, 94, 52, 31, 32, 33, 66, 67, 68,
- 69, 83, 71, 72, 80, 74, 75, 76, 95, 94,
- 81, 94, 81, 107, 94, 84, 85, 107, 96, 94,
- 89, 90, 91, 81, 93, 66, 107, 68, 98, 107,
- 71, 107, 107, 74, 75, 76, 107, 107, 107, 107,
- 81, 107, 107, 84, 85, 107, 107, 107, 89, 90,
- 91, 66, 93, 68, 69, 107, 71, 72, 107, 74,
- 75, 76, 103, 104, 107, 11, 81, 107, 14, 84,
- 85, 107, 18, 107, 89, 90, 91, 107, 93, 107,
- 5, 107, 107, 107, 107, 107, 11, 12, 13, 14,
- 107, 16, 107, 107, 107, 20, 21, 22, 11, 107,
- 107, 14, 27, 5, 50, 18, 31, 32, 33, 11,
- 12, 13, 14, 107, 16, 28, 107, 30, 20, 21,
- 22, 34, 107, 107, 107, 27, 107, 107, 107, 31,
- 32, 33, 107, 107, 59, 60, 66, 107, 68, 107,
+ 94, 42, 43, 44, 45, 1, 47, 71, 49, 77,
+ 51, 52, 3, 54, 78, 23, 73, 81, 59, 15,
+ 11, 12, 13, 14, 73, 16, 83, 18, 36, 20,
+ 21, 22, 28, 101, 83, 17, 27, 19, 34, 96,
+ 31, 32, 33, 45, 35, 16, 37, 96, 37, 41,
+ 52, 42, 43, 44, 45, 1, 47, 71, 49, 48,
+ 51, 52, 3, 54, 78, 37, 48, 81, 59, 15,
+ 11, 12, 13, 14, 71, 16, 48, 18, 17, 20,
+ 21, 22, 28, 54, 81, 24, 27, 70, 34, 37,
+ 31, 32, 33, 28, 35, 24, 37, 45, 1, 34,
+ 48, 42, 43, 44, 45, 53, 47, 2, 49, 73,
+ 51, 52, 3, 54, 97, 98, 19, 46, 59, 83,
+ 11, 12, 13, 14, 36, 16, 38, 18, 98, 20,
+ 21, 22, 11, 64, 65, 14, 27, 101, 1, 18,
+ 31, 32, 33, 94, 35, 96, 37, 1, 17, 19,
+ 92, 42, 43, 44, 45, 73, 47, 99, 49, 77,
+ 51, 52, 3, 54, 16, 83, 18, 30, 59, 70,
+ 11, 12, 13, 14, 73, 16, 45, 18, 48, 20,
+ 21, 22, 11, 101, 83, 14, 27, 35, 92, 18,
+ 31, 32, 33, 94, 35, 99, 37, 97, 98, 53,
+ 36, 42, 43, 44, 45, 66, 47, 68, 49, 18,
+ 51, 52, 3, 54, 94, 38, 96, 53, 59, 81,
+ 11, 12, 13, 14, 73, 16, 77, 18, 73, 20,
+ 21, 22, 11, 3, 83, 14, 27, 99, 83, 18,
+ 31, 32, 33, 37, 35, 18, 37, 18, 1, 2,
+ 101, 42, 43, 44, 45, 35, 47, 18, 49, 16,
+ 51, 18, 18, 54, 62, 63, 97, 98, 59, 39,
+ 40, 50, 18, 4, 5, 6, 7, 8, 45, 16,
+ 11, 12, 13, 14, 18, 55, 56, 57, 58, 20,
+ 21, 22, 49, 53, 51, 53, 27, 54, 18, 15,
+ 31, 32, 33, 66, 67, 68, 69, 25, 71, 72,
+ 51, 74, 75, 76, 18, 18, 11, 11, 81, 14,
+ 14, 84, 85, 18, 18, 17, 89, 90, 91, 9,
+ 93, 15, 51, 28, 102, 30, 81, 81, 19, 34,
+ 66, 67, 68, 69, 95, 71, 72, 83, 74, 75,
+ 76, 94, 94, 80, 94, 81, 50, 81, 84, 85,
+ 107, 96, 94, 89, 90, 91, 107, 93, 66, 107,
+ 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
+ 107, 107, 107, 81, 107, 107, 84, 85, 107, 107,
+ 107, 89, 90, 91, 66, 93, 68, 69, 107, 71,
+ 72, 107, 74, 75, 76, 103, 104, 107, 11, 81,
+ 107, 14, 84, 85, 107, 18, 107, 89, 90, 91,
+ 107, 93, 107, 5, 107, 107, 107, 107, 107, 11,
+ 12, 13, 14, 107, 16, 107, 107, 107, 20, 21,
+ 22, 107, 107, 107, 107, 27, 5, 50, 107, 31,
+ 32, 33, 11, 12, 13, 14, 107, 16, 107, 107,
+ 107, 20, 21, 22, 107, 107, 107, 107, 27, 107,
+ 107, 107, 31, 32, 33, 107, 107, 59, 60, 66,
+ 107, 68, 107, 107, 71, 107, 107, 74, 75, 76,
+ 107, 107, 107, 107, 81, 73, 107, 84, 85, 77,
+ 59, 60, 89, 90, 91, 83, 93, 107, 86, 87,
+ 88, 107, 66, 100, 68, 107, 107, 71, 107, 107,
+ 74, 75, 76, 101, 107, 107, 107, 81, 107, 107,
+ 84, 85, 107, 107, 107, 89, 90, 91, 107, 93,
+ 107, 107, 107, 107, 66, 107, 68, 107, 107, 71,
+ 104, 107, 74, 75, 76, 107, 78, 107, 107, 81,
+ 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
+ 66, 93, 68, 107, 107, 71, 107, 107, 74, 75,
+ 76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
+ 107, 107, 107, 89, 90, 91, 107, 93, 66, 107,
+ 68, 107, 107, 71, 100, 107, 74, 75, 76, 1,
+ 2, 3, 107, 81, 107, 107, 84, 85, 107, 107,
+ 107, 89, 90, 91, 107, 93, 66, 107, 68, 107,
+ 107, 71, 100, 107, 74, 75, 76, 107, 78, 107,
+ 107, 81, 107, 107, 84, 85, 107, 39, 40, 89,
+ 90, 91, 66, 93, 68, 107, 107, 71, 107, 107,
+ 74, 75, 76, 55, 56, 57, 58, 81, 107, 107,
+ 84, 85, 107, 107, 107, 89, 90, 91, 107, 93,
+ 66, 107, 68, 107, 107, 71, 107, 107, 74, 75,
+ 76, 1, 107, 3, 107, 81, 107, 107, 84, 85,
+ 107, 107, 107, 89, 90, 91, 107, 93, 66, 107,
+ 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
+ 107, 107, 107, 81, 107, 107, 84, 85, 107, 39,
+ 40, 89, 90, 91, 66, 93, 68, 107, 107, 71,
+ 107, 107, 74, 75, 76, 55, 56, 57, 58, 81,
+ 60, 107, 84, 85, 107, 107, 107, 89, 90, 91,
+ 107, 93, 66, 107, 68, 107, 107, 71, 107, 107,
+ 74, 75, 76, 1, 107, 3, 107, 81, 107, 107,
+ 84, 85, 107, 107, 107, 89, 90, 91, 107, 93,
+ 66, 107, 68, 107, 107, 71, 107, 107, 74, 75,
+ 76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
+ 38, 39, 40, 89, 90, 91, 66, 93, 68, 107,
+ 107, 71, 107, 107, 74, 75, 76, 55, 56, 57,
+ 58, 81, 107, 107, 84, 85, 107, 107, 107, 89,
+ 90, 91, 107, 93, 66, 107, 68, 107, 107, 71,
+ 107, 107, 74, 75, 76, 1, 107, 3, 107, 81,
+ 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
+ 107, 93, 66, 107, 68, 107, 107, 71, 107, 107,
+ 74, 75, 76, 29, 107, 107, 107, 81, 107, 107,
+ 84, 85, 107, 39, 40, 89, 90, 91, 66, 93,
+ 68, 107, 107, 71, 107, 107, 74, 75, 76, 55,
+ 56, 57, 58, 81, 107, 107, 84, 85, 107, 107,
+ 107, 89, 90, 91, 107, 93, 66, 107, 68, 107,
+ 107, 71, 107, 107, 74, 75, 76, 1, 107, 3,
+ 107, 81, 107, 107, 84, 85, 107, 107, 107, 89,
+ 90, 91, 107, 93, 66, 107, 68, 107, 107, 71,
+ 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
+ 107, 107, 84, 85, 38, 39, 40, 89, 90, 91,
+ 66, 93, 68, 107, 107, 71, 107, 107, 74, 75,
+ 76, 55, 56, 57, 58, 81, 107, 107, 84, 85,
+ 107, 107, 107, 89, 90, 91, 107, 93, 66, 107,
+ 68, 107, 107, 71, 107, 107, 74, 75, 76, 1,
+ 107, 3, 107, 81, 107, 107, 84, 85, 107, 107,
+ 107, 89, 90, 91, 107, 93, 66, 107, 68, 107,
107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
- 107, 81, 107, 107, 84, 85, 107, 59, 60, 89,
- 90, 91, 66, 93, 68, 107, 11, 71, 107, 14,
- 74, 75, 76, 18, 104, 11, 107, 81, 14, 107,
- 84, 85, 18, 107, 107, 89, 90, 91, 107, 93,
- 107, 107, 66, 107, 68, 107, 100, 71, 107, 107,
- 74, 75, 76, 107, 107, 50, 107, 81, 107, 107,
- 84, 85, 107, 107, 50, 89, 90, 91, 107, 93,
- 107, 107, 66, 107, 68, 107, 100, 71, 107, 107,
+ 107, 81, 107, 107, 84, 85, 107, 39, 40, 89,
+ 90, 91, 66, 93, 68, 107, 107, 71, 107, 107,
+ 74, 75, 76, 55, 56, 57, 58, 81, 107, 107,
+ 84, 85, 107, 1, 107, 89, 90, 91, 107, 93,
+ 66, 107, 68, 107, 107, 71, 107, 15, 74, 75,
+ 76, 19, 107, 107, 107, 81, 107, 107, 84, 85,
+ 28, 107, 107, 89, 90, 91, 34, 93, 66, 37,
+ 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
+ 48, 107, 107, 81, 107, 107, 84, 85, 107, 107,
+ 107, 89, 90, 91, 66, 93, 68, 107, 107, 71,
+ 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
+ 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
+ 107, 93, 66, 107, 68, 107, 107, 71, 107, 107,
74, 75, 76, 107, 107, 107, 107, 81, 107, 107,
84, 85, 107, 107, 107, 89, 90, 91, 107, 93,
- 107, 107, 66, 107, 68, 107, 100, 71, 107, 107,
- 74, 75, 76, 107, 78, 107, 107, 81, 107, 107,
- 84, 85, 107, 107, 107, 89, 90, 91, 66, 93,
- 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
- 78, 107, 107, 81, 107, 107, 84, 85, 107, 107,
- 107, 89, 90, 91, 66, 93, 68, 107, 107, 71,
- 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
- 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
- 107, 93, 107, 107, 66, 107, 68, 107, 107, 71,
- 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
- 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
- 66, 93, 68, 107, 107, 71, 107, 107, 74, 75,
- 76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
- 107, 107, 107, 89, 90, 91, 66, 93, 68, 107,
- 107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
- 107, 81, 107, 107, 84, 85, 107, 107, 107, 89,
- 90, 91, 107, 93, 107, 107, 66, 107, 68, 107,
- 107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
- 107, 81, 107, 107, 84, 85, 107, 107, 107, 89,
- 90, 91, 66, 93, 68, 107, 107, 71, 107, 107,
- 74, 75, 76, 107, 107, 107, 107, 81, 107, 107,
- 84, 85, 107, 107, 107, 89, 90, 91, 66, 93,
- 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
- 107, 107, 107, 81, 107, 107, 84, 85, 107, 107,
- 107, 89, 90, 91, 107, 93, 107, 107, 66, 107,
- 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
- 107, 107, 107, 81, 107, 107, 84, 85, 107, 107,
- 107, 89, 90, 91, 66, 93, 68, 107, 107, 71,
- 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
- 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
- 66, 93, 68, 107, 107, 71, 107, 107, 74, 75,
- 76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
- 107, 107, 107, 89, 90, 91, 107, 93, 107, 107,
66, 107, 68, 107, 107, 71, 107, 107, 74, 75,
76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
107, 107, 107, 89, 90, 91, 66, 93, 68, 107,
107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
107, 81, 107, 107, 84, 85, 107, 107, 107, 89,
- 90, 91, 66, 93, 68, 107, 107, 71, 107, 107,
+ 90, 91, 107, 93, 66, 107, 68, 107, 107, 71,
+ 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
+ 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
+ 107, 93, 66, 107, 68, 107, 107, 71, 107, 107,
74, 75, 76, 107, 107, 107, 107, 81, 107, 107,
- 84, 85, 107, 107, 107, 89, 90, 91, 107, 93,
- 107, 107, 66, 107, 68, 107, 107, 71, 107, 107,
- 74, 75, 76, 107, 107, 107, 107, 81, 107, 107,
- 84, 85, 107, 107, 107, 89, 90, 91, 66, 93,
+ 84, 85, 1, 2, 3, 89, 90, 91, 66, 93,
68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
- 107, 107, 107, 81, 107, 107, 84, 85, 107, 107,
- 107, 89, 90, 91, 66, 93, 68, 107, 107, 71,
- 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
- 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
- 107, 93, 107, 107, 66, 107, 68, 107, 107, 71,
- 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
- 107, 107, 84, 85, 107, 107, 107, 89, 90, 91,
- 66, 93, 68, 107, 107, 71, 107, 107, 74, 75,
- 76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
+ 107, 107, 107, 81, 107, 107, 84, 85, 1, 107,
+ 3, 89, 90, 91, 107, 93, 107, 107, 37, 107,
+ 39, 40, 107, 107, 107, 66, 107, 68, 107, 48,
+ 71, 107, 107, 74, 75, 28, 55, 56, 57, 58,
+ 81, 34, 107, 107, 85, 107, 39, 40, 89, 90,
+ 91, 66, 93, 68, 107, 1, 71, 3, 107, 74,
+ 75, 107, 55, 56, 57, 58, 81, 107, 107, 107,
+ 85, 107, 107, 107, 89, 90, 91, 107, 93, 107,
+ 26, 107, 28, 2, 107, 107, 107, 107, 34, 107,
+ 107, 107, 11, 39, 40, 14, 107, 107, 107, 18,
+ 19, 107, 107, 107, 107, 107, 107, 107, 107, 55,
+ 56, 57, 58, 107, 107, 66, 107, 68, 107, 107,
+ 71, 107, 107, 74, 75, 107, 45, 107, 107, 48,
+ 81, 50, 2, 52, 53, 107, 107, 107, 89, 90,
+ 91, 11, 93, 2, 14, 107, 107, 17, 18, 19,
+ 107, 107, 11, 107, 107, 14, 107, 73, 17, 18,
+ 19, 77, 107, 107, 107, 107, 107, 83, 107, 107,
+ 86, 87, 88, 107, 107, 45, 107, 107, 48, 66,
+ 50, 68, 52, 107, 71, 101, 45, 74, 75, 48,
+ 66, 50, 68, 52, 81, 71, 107, 107, 74, 75,
+ 107, 107, 89, 90, 91, 81, 93, 107, 107, 107,
107, 107, 107, 89, 90, 91, 66, 93, 68, 107,
- 107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
- 107, 81, 107, 107, 84, 85, 107, 107, 107, 89,
- 90, 91, 107, 93, 107, 107, 66, 107, 68, 107,
- 107, 71, 107, 107, 74, 75, 76, 107, 107, 107,
- 107, 81, 107, 107, 84, 85, 107, 107, 107, 89,
- 90, 91, 66, 93, 68, 107, 107, 71, 107, 107,
- 74, 75, 76, 107, 107, 107, 107, 81, 107, 107,
- 84, 85, 107, 107, 107, 89, 90, 91, 66, 93,
- 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
- 107, 107, 107, 81, 107, 107, 84, 85, 107, 107,
- 107, 89, 90, 91, 107, 93, 107, 107, 66, 107,
- 68, 107, 107, 71, 107, 107, 74, 75, 76, 107,
- 107, 107, 107, 81, 107, 107, 84, 85, 107, 107,
- 107, 89, 90, 91, 66, 93, 68, 107, 107, 71,
- 107, 107, 74, 75, 76, 107, 107, 107, 107, 81,
- 107, 107, 84, 85, 1, 2, 3, 89, 90, 91,
- 66, 93, 68, 107, 107, 71, 107, 107, 74, 75,
- 76, 107, 107, 107, 107, 81, 107, 107, 84, 85,
- 107, 107, 107, 89, 90, 91, 107, 93, 107, 107,
- 37, 107, 39, 40, 107, 107, 107, 107, 66, 107,
- 68, 48, 1, 71, 3, 107, 74, 75, 55, 56,
- 57, 58, 3, 81, 107, 107, 107, 85, 107, 107,
- 107, 89, 90, 91, 107, 93, 107, 26, 66, 28,
- 68, 107, 107, 71, 107, 34, 74, 75, 107, 107,
- 39, 40, 1, 81, 3, 107, 107, 85, 39, 40,
- 107, 89, 90, 91, 107, 93, 55, 56, 57, 58,
- 107, 2, 107, 107, 55, 56, 57, 58, 107, 28,
- 11, 107, 107, 14, 107, 34, 2, 18, 19, 107,
- 39, 40, 107, 107, 107, 11, 107, 107, 14, 107,
- 107, 17, 18, 19, 107, 107, 55, 56, 57, 58,
- 107, 1, 107, 3, 45, 107, 107, 48, 66, 50,
- 68, 52, 53, 71, 107, 15, 74, 75, 107, 45,
- 107, 107, 48, 81, 50, 107, 52, 107, 1, 107,
- 3, 89, 90, 91, 107, 93, 66, 107, 68, 39,
- 40, 71, 107, 107, 74, 75, 107, 107, 107, 107,
- 107, 81, 107, 107, 107, 55, 56, 57, 58, 89,
- 90, 91, 2, 93, 107, 107, 39, 40, 107, 107,
- 107, 11, 107, 107, 14, 107, 107, 17, 18, 19,
- 107, 107, 55, 56, 57, 58, 107, 60, 107, 107,
- 107, 66, 107, 68, 107, 107, 71, 107, 107, 74,
- 75, 107, 107, 107, 107, 45, 81, 107, 48, 73,
- 50, 107, 52, 77, 89, 90, 91, 107, 93, 83,
- 107, 107, 86, 87, 88, 107, 107, 66, 107, 68,
- 107, 1, 71, 3, 107, 74, 75, 101, 66, 107,
- 68, 107, 81, 71, 107, 107, 74, 75, 107, 107,
- 89, 90, 91, 81, 93, 107, 1, 107, 3, 107,
- 107, 89, 90, 91, 107, 93, 66, 107, 68, 39,
- 40, 71, 107, 107, 74, 75, 107, 107, 107, 107,
- 107, 81, 107, 53, 29, 55, 56, 57, 58, 89,
- 90, 91, 2, 93, 39, 40, 107, 107, 107, 107,
- 107, 11, 107, 107, 14, 107, 107, 107, 18, 19,
- 55, 56, 57, 58, 1, 107, 3, 107, 1, 107,
- 3, 107, 1, 107, 3, 107, 107, 107, 15, 107,
- 107, 107, 15, 107, 107, 45, 15, 107, 48, 107,
- 50, 107, 52, 107, 107, 107, 107, 11, 107, 107,
- 14, 107, 39, 40, 18, 19, 39, 40, 107, 107,
- 39, 40, 1, 107, 3, 107, 107, 107, 55, 56,
- 57, 58, 55, 56, 57, 58, 55, 56, 57, 58,
- 107, 45, 107, 73, 48, 107, 50, 77, 52, 107,
- 107, 107, 107, 83, 107, 107, 86, 87, 88, 38,
- 39, 40, 107, 107, 107, 107, 107, 107, 107, 107,
- 107, 101, 107, 107, 107, 107, 55, 56, 57, 58,
- 1, 107, 3, 107, 1, 107, 3, 73, 1, 107,
- 3, 77, 107, 107, 15, 107, 107, 83, 107, 107,
- 86, 87, 88, 107, 107, 107, 23, 107, 1, 2,
- 3, 107, 1, 107, 3, 101, 107, 107, 39, 40,
- 107, 107, 39, 40, 107, 38, 39, 40, 107, 107,
- 107, 107, 107, 107, 55, 56, 57, 58, 55, 56,
- 57, 58, 55, 56, 57, 58, 39, 40, 107, 107,
- 39, 40, 107, 107, 107, 107, 107, 107, 107, 107,
- 107, 107, 55, 56, 57, 58, 55, 56, 57, 58,
- 1, 107, 107, 107, 107, 107, 107, 107, 107, 107,
- 107, 107, 107, 107, 15, 107, 107, 107, 19, 107,
- 107, 107, 107, 107, 107, 107, 107, 28, 107, 107,
- 107, 107, 107, 34, 107, 107, 37, 107, 107, 107,
- 107, 107, 107, 107, 107, 107, 107, 48,
+ 107, 71, 107, 107, 74, 75, 107, 66, 107, 68,
+ 107, 81, 71, 107, 107, 74, 75, 107, 107, 89,
+ 90, 91, 81, 93, 1, 107, 3, 107, 107, 107,
+ 89, 90, 91, 66, 93, 68, 107, 1, 71, 3,
+ 107, 74, 75, 107, 107, 107, 23, 107, 81, 107,
+ 1, 15, 3, 107, 107, 107, 89, 90, 91, 1,
+ 93, 3, 39, 40, 15, 107, 107, 107, 107, 107,
+ 107, 107, 107, 15, 107, 39, 40, 107, 55, 56,
+ 57, 58, 107, 107, 107, 107, 107, 107, 39, 40,
+ 107, 55, 56, 57, 58, 107, 107, 39, 40, 107,
+ 107, 107, 107, 107, 55, 56, 57, 58, 2, 1,
+ 107, 3, 107, 55, 56, 57, 58, 11, 107, 107,
+ 14, 107, 107, 15, 18, 19, 2, 107, 107, 107,
+ 107, 107, 107, 107, 107, 11, 107, 107, 14, 107,
+ 107, 107, 18, 19, 1, 107, 3, 39, 40, 107,
+ 107, 45, 107, 1, 48, 3, 50, 107, 52, 107,
+ 107, 107, 107, 55, 56, 57, 58, 15, 107, 45,
+ 107, 107, 48, 107, 50, 107, 52, 11, 107, 107,
+ 14, 107, 39, 40, 18, 19, 107, 107, 107, 107,
+ 107, 39, 40, 107, 107, 107, 53, 107, 55, 56,
+ 57, 58, 107, 107, 107, 107, 107, 55, 56, 57,
+ 58, 45, 107, 107, 48, 107, 50, 73, 52, 107,
+ 107, 77, 107, 107, 107, 107, 107, 83, 107, 107,
+ 86, 87, 88, 107, 107, 107, 107, 107, 107, 107,
+ 107, 107, 107, 107, 107, 101,
);
- static public $yy_shift_ofst = array(
- -23, 399, 399, 349, 99, 449, 449, 99, 349, 99,
- 99, -3, 99, 99, 249, 99, 99, 99, 99, 299,
- 99, 149, 199, 99, 99, 99, 99, 99, 99, 99,
- 99, 99, 99, 299, 99, 99, 49, 49, 499, 499,
- 499, 499, 499, 499, 1621, 1661, 1661, 1981, 2067, 2039,
- 2047, 2043, 1747, 1850, 1720, 1941, 1937, 1875, 1933, 2071,
- 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
- 2071, 2071, 1629, 1629, 522, 695, 2129, 171, 255, 129,
- 718, 707, 9, 255, 316, 255, 129, 129, 304, 337,
- 583, 1780, 244, 784, 221, 344, 294, 411, 40, 411,
- 485, 359, 440, -22, -22, 427, 432, 424, -22, 359,
- 437, 589, 227, 227, 227, 589, 227, 227, 227, 227,
- -23, -23, -23, -23, 1679, 1694, 561, 1910, 1956, 81,
- 674, 212, 461, -22, -22, -22, -14, -14, -22, 360,
- -22, -22, -22, -22, -14, 31, 321, -22, -22, 301,
- 321, -14, -14, -14, 31, -22, -22, -22, -14, -14,
- 589, 589, 227, 508, 589, 288, 227, 227, 288, 227,
- 227, -23, -23, -23, -23, -23, -23, 1573, 30, -12,
- 94, 144, 775, 342, 194, 103, 179, 258, 211, 141,
- 152, 68, 241, 209, 323, 387, 370, 368, 188, -8,
- 101, 556, 567, 563, 552, 539, 548, 574, 443, 558,
- 566, 582, 581, 584, 541, 543, 512, 519, 506, 476,
- 479, 488, 508, 502, 501, 531, 529, 510,
+
+ public static $yy_shift_ofst = array(
+ -23, 399, 399, 449, 49, 49, 449, 349, 49, 49,
+ 349, -3, 49, 49, 49, 49, 49, 49, 49, 49,
+ 49, 49, 49, 149, 199, 299, 49, 149, 49, 49,
+ 49, 49, 49, 49, 249, 49, 99, 99, 499, 499,
+ 499, 499, 499, 499, 1664, 1617, 1617, 1144, 1982, 1973,
+ 1938, 1226, 1853, 1062, 980, 1879, 898, 1866, 1888, 1308,
+ 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308, 1308,
+ 1308, 1308, 520, 520, 533, 731, 1372, 171, 255, 129,
+ 708, 595, 9, 154, 129, 255, 308, 129, 255, 537,
+ 559, 1751, 244, 344, 511, 221, 294, 411, 40, 411,
+ -22, 438, 438, 436, 387, 427, 319, 355, -22, -22,
+ 420, 609, 232, 232, 232, 609, 232, 232, 232, 232,
+ -23, -23, -23, -23, 1740, 1691, 1954, 1936, 1996, 81,
+ 687, 461, 212, -22, 31, -14, -14, -22, 288, -14,
+ 288, -14, -22, 31, -22, -14, -14, -22, -22, 351,
+ -22, -22, -14, -22, -22, -22, -22, -22, -14, 210,
+ 232, 609, 232, 395, 609, 232, 609, 232, 395, 92,
+ 232, -23, -23, -23, -23, -23, -23, 1591, 30, -12,
+ 94, 144, 342, 596, 179, 103, 194, 454, 230, 152,
+ 269, 301, 318, 127, 282, -8, 205, 361, 378, 421,
+ 68, 467, 556, 606, 571, 598, 587, 586, 610, 549,
+ 572, 574, 570, 532, 530, 553, 298, 523, 544, 510,
+ 92, 534, 529, 519, 517, 496, 442, 481,
);
- static public $yy_reduce_ofst = array(
- 460, 493, 551, 579, 605, 832, 806, 776, 690, 746,
- 716, 1134, 1216, 1242, 1160, 1298, 1022, 1052, 1078, 1104,
- 1268, 1488, 1514, 1432, 1462, 1324, 1350, 1406, 1380, 1186,
- 888, 996, 970, 940, 914, 858, 1552, 1582, 1745, 1690,
- 1781, 1820, 1792, 1662, 1974, 1930, 1756, 37, 37, 37,
+
+ public static $yy_reduce_ofst = array(
+ 492, 527, 564, 592, 618, 703, 736, 768, 794, 822,
+ 850, 1068, 1096, 1122, 1150, 1286, 1204, 1232, 1260, 1040,
+ 1314, 1532, 1478, 1506, 1342, 1450, 1424, 1396, 1368, 1178,
+ 1014, 986, 932, 904, 876, 958, 1595, 1569, 1771, 1659,
+ 1760, 1734, 1723, 1797, 712, 1694, 1974, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
- 37, 37, 37, 37, 114, -33, 6, -67, 56, 226,
- 317, 233, 331, 254, 77, 4, 276, 328, 190, 122,
- 429, 396, -23, 393, 74, -23, -23, 393, 176, 413,
- 176, 407, 381, 366, 364, -23, -23, 243, 372, 426,
- 428, 430, -23, -23, 382, 176, -23, -23, -23, -23,
- -23, 324, -23, -23, 537, 537, 537, 537, 537, 549,
- 542, 537, 537, 538, 538, 538, 533, 533, 538, 540,
- 538, 538, 538, 538, 533, 521, 518, 538, 538, 544,
- 535, 533, 533, 533, 562, 538, 538, 538, 533, 533,
- 550, 550, 113, 545, 550, 197, 113, 113, 197, 113,
- 113, 379, 395, -20, 97, -61, 25,
+ 37, 37, 37, 37, 114, -33, 372, -67, 6, 76,
+ 71, 233, 241, 190, 226, 4, 307, 276, 326, 172,
+ 429, 389, -23, -23, 339, 428, -23, 410, 390, 339,
+ 391, 386, 348, -23, 222, -23, 293, 155, 441, 445,
+ 390, 459, -23, -23, -23, 390, -23, -23, -23, 439,
+ -23, -23, 359, -23, 550, 550, 550, 550, 550, 545,
+ 555, 550, 550, 554, 566, 539, 539, 554, 547, 539,
+ 548, 539, 554, 546, 554, 539, 539, 554, 554, 563,
+ 554, 554, 539, 554, 554, 554, 554, 554, 539, 558,
+ 78, 320, 78, 522, 320, 78, 320, 78, 522, 196,
+ 78, 51, -61, -20, -4, 109, 132,
);
- static public $yyExpectedTokens = array(
+
+ public static $yyExpectedTokens = array(
array(),
array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
@@ -698,8 +584,9 @@ class Smarty_Internal_Templateparser
array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
- array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 53, 54,
- 59,),
+ array(
+ 3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 53, 54, 59,
+ ),
array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
array(3, 11, 12, 13, 14, 16, 18, 20, 21, 22, 27, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,),
@@ -735,18 +622,18 @@ class Smarty_Internal_Templateparser
array(1, 3, 26, 28, 34, 39, 40, 55, 56, 57, 58,),
array(1, 3, 28, 34, 39, 40, 55, 56, 57, 58,),
array(1, 3, 28, 34, 39, 40, 55, 56, 57, 58,),
- array(1, 3, 38, 39, 40, 55, 56, 57, 58,),
- array(1, 2, 3, 39, 40, 55, 56, 57, 58,),
+ array(1, 3, 29, 39, 40, 55, 56, 57, 58,),
+ array(1, 3, 15, 39, 40, 55, 56, 57, 58,),
+ array(1, 3, 39, 40, 53, 55, 56, 57, 58,),
array(1, 3, 15, 39, 40, 55, 56, 57, 58,),
array(1, 3, 38, 39, 40, 55, 56, 57, 58,),
array(1, 3, 23, 39, 40, 55, 56, 57, 58,),
+ array(1, 3, 38, 39, 40, 55, 56, 57, 58,),
array(1, 3, 39, 40, 55, 56, 57, 58, 60,),
- array(1, 3, 39, 40, 53, 55, 56, 57, 58,),
array(1, 3, 15, 39, 40, 55, 56, 57, 58,),
+ array(1, 2, 3, 39, 40, 55, 56, 57, 58,),
array(1, 3, 15, 39, 40, 55, 56, 57, 58,),
array(1, 3, 15, 39, 40, 55, 56, 57, 58,),
- array(1, 3, 29, 39, 40, 55, 56, 57, 58,),
- array(1, 3, 15, 39, 40, 55, 56, 57, 58,),
array(1, 3, 39, 40, 55, 56, 57, 58,),
array(1, 3, 39, 40, 55, 56, 57, 58,),
array(1, 3, 39, 40, 55, 56, 57, 58,),
@@ -771,34 +658,34 @@ class Smarty_Internal_Templateparser
array(5, 11, 12, 13, 14, 16, 20, 21, 22, 27, 31, 32, 33, 59, 60,),
array(11, 14, 18, 28, 30, 34,),
array(11, 14, 18, 28, 34,),
+ array(19, 45, 52,),
+ array(16, 37, 54,),
array(1, 28, 34,),
array(17, 19, 48,),
+ array(16, 37, 54,),
array(1, 28, 34,),
- array(16, 37, 54,),
- array(16, 37, 54,),
- array(19, 45, 52,),
array(1, 2,),
array(4, 5, 6, 7, 8, 11, 12, 13, 14, 20, 21, 22, 27, 31, 32, 33,),
array(2, 11, 14, 17, 18, 19, 45, 48, 50, 52,),
array(1, 15, 28, 34,),
+ array(1, 15, 28, 34,),
array(11, 14, 18, 50,),
array(14, 16, 18, 54,),
array(1, 15, 28, 34,),
- array(1, 15, 28, 34,),
array(11, 14, 18,),
array(17, 19, 48,),
array(11, 14, 18,),
- array(19, 48,),
+ array(28, 34,),
+ array(16, 18,),
array(16, 18,),
- array(28, 34,),
- array(28, 34,),
- array(28, 34,),
- array(1, 30,),
array(1, 53,),
+ array(1, 19,),
+ array(1, 30,),
array(16, 54,),
array(28, 34,),
- array(16, 18,),
- array(1, 19,),
+ array(28, 34,),
+ array(28, 34,),
+ array(19, 48,),
array(19,),
array(1,),
array(1,),
@@ -812,52 +699,52 @@ class Smarty_Internal_Templateparser
array(),
array(),
array(),
- array(2, 11, 14, 18, 19, 45, 48, 50, 52, 53,),
array(2, 11, 14, 17, 18, 19, 45, 48, 50, 52,),
+ array(2, 11, 14, 18, 19, 45, 48, 50, 52, 53,),
array(2, 11, 14, 18, 19, 45, 48, 50, 52,),
array(2, 11, 14, 18, 19, 45, 48, 50, 52,),
array(11, 14, 18, 19, 45, 48, 50, 52,),
array(14, 16, 18, 35, 54,),
array(11, 14, 18, 50,),
- array(17, 45, 52,),
array(11, 14, 18,),
+ array(17, 45, 52,),
array(28, 34,),
- array(28, 34,),
- array(28, 34,),
- array(45, 52,),
- array(45, 52,),
- array(28, 34,),
- array(14, 37,),
- array(28, 34,),
- array(28, 34,),
- array(28, 34,),
- array(28, 34,),
- array(45, 52,),
array(16, 54,),
array(45, 52,),
+ array(45, 52,),
+ array(28, 34,),
+ array(45, 52,),
+ array(45, 52,),
+ array(45, 52,),
+ array(45, 52,),
+ array(28, 34,),
+ array(16, 54,),
+ array(28, 34,),
+ array(45, 52,),
+ array(45, 52,),
array(28, 34,),
array(28, 34,),
array(17, 24,),
+ array(28, 34,),
+ array(28, 34,),
array(45, 52,),
- array(45, 52,),
- array(45, 52,),
- array(45, 52,),
- array(16, 54,),
+ array(28, 34,),
+ array(28, 34,),
array(28, 34,),
array(28, 34,),
array(28, 34,),
array(45, 52,),
- array(45, 52,),
- array(19,),
+ array(14, 37,),
+ array(1,),
array(19,),
array(1,),
+ array(2,),
+ array(19,),
+ array(1,),
+ array(19,),
+ array(1,),
+ array(2,),
array(37,),
- array(19,),
- array(2,),
- array(1,),
- array(1,),
- array(2,),
- array(1,),
array(1,),
array(),
array(),
@@ -870,52 +757,52 @@ class Smarty_Internal_Templateparser
array(15, 17, 28, 34, 37, 48,),
array(15, 24, 28, 34, 46,),
array(15, 24, 28, 34, 46,),
- array(11, 14, 18, 50,),
array(37, 45, 48, 53,),
- array(24, 46, 60,),
- array(24, 46, 53,),
+ array(11, 14, 18, 50,),
array(30, 37, 48,),
- array(8, 10,),
- array(36, 38,),
- array(23, 36,),
- array(45, 53,),
- array(36, 38,),
- array(36, 38,),
- array(24, 46,),
- array(17, 45,),
- array(37, 48,),
- array(37, 48,),
- array(37, 48,),
- array(18, 50,),
- array(9, 10,),
+ array(24, 46, 53,),
+ array(24, 46, 60,),
array(36, 53,),
- array(51,),
- array(18,),
- array(18,),
- array(18,),
- array(18,),
- array(18,),
- array(18,),
- array(45,),
- array(35,),
- array(35,),
- array(18,),
- array(17,),
- array(15,),
- array(15,),
- array(9,),
- array(25,),
- array(16,),
- array(18,),
+ array(36, 38,),
+ array(45, 53,),
+ array(8, 10,),
+ array(37, 48,),
+ array(37, 48,),
+ array(37, 48,),
+ array(23, 36,),
+ array(9, 10,),
+ array(18, 50,),
+ array(24, 46,),
+ array(36, 38,),
+ array(17, 45,),
+ array(36, 38,),
array(38,),
- array(37,),
+ array(18,),
+ array(15,),
array(51,),
- array(37,),
- array(53,),
- array(53,),
+ array(17,),
array(18,),
array(18,),
+ array(9,),
+ array(51,),
+ array(25,),
+ array(15,),
+ array(18,),
+ array(53,),
+ array(53,),
+ array(16,),
array(41,),
+ array(45,),
+ array(18,),
+ array(35,),
+ array(37,),
+ array(18,),
+ array(18,),
+ array(18,),
+ array(18,),
+ array(37,),
+ array(35,),
+ array(18,),
array(),
array(),
array(),
@@ -1012,77 +899,46 @@ class Smarty_Internal_Templateparser
array(),
array(),
);
- static public $yy_default = array(
- 334, 509, 509, 494, 509, 509, 509, 473, 509, 473,
- 473, 509, 509, 509, 509, 509, 509, 509, 509, 509,
+
+ public static $yy_default = array(
+ 334, 509, 509, 494, 509, 473, 509, 509, 473, 473,
509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
- 509, 509, 509, 509, 375, 375, 354, 509, 509, 509,
- 509, 509, 509, 509, 509, 509, 347, 380, 509, 497,
- 386, 495, 496, 471, 347, 359, 380, 472, 377, 397,
- 382, 387, 401, 402, 509, 509, 413, 509, 375, 509,
- 509, 375, 375, 375, 428, 375, 509, 509, 485, 366,
- 323, 427, 389, 438, 509, 389, 389, 438, 428, 438,
- 428, 509, 375, 375, 375, 389, 389, 509, 356, 509,
- 369, 482, 400, 406, 371, 428, 396, 405, 389, 392,
- 480, 332, 404, 393, 427, 427, 427, 427, 427, 509,
- 440, 454, 438, 348, 364, 344, 436, 463, 365, 438,
- 352, 355, 361, 357, 464, 509, 433, 362, 358, 509,
- 431, 434, 435, 466, 509, 363, 350, 351, 465, 432,
- 486, 460, 367, 438, 483, 475, 372, 395, 474, 370,
- 422, 438, 479, 438, 479, 479, 332, 413, 409, 413,
- 403, 403, 439, 413, 403, 403, 413, 330, 509, 509,
- 409, 509, 509, 403, 409, 423, 413, 509, 509, 509,
- 509, 509, 509, 509, 509, 509, 509, 509, 409, 509,
- 411, 509, 509, 509, 509, 509, 383, 509, 509, 509,
- 484, 509, 454, 418, 509, 509, 509, 415, 376, 388,
- 447, 481, 446, 454, 445, 448, 453, 360, 468, 469,
- 384, 459, 444, 450, 415, 490, 476, 477, 407, 368,
- 478, 456, 457, 458, 416, 417, 443, 390, 391, 442,
- 441, 425, 426, 437, 374, 353, 329, 331, 333, 328,
- 327, 324, 325, 326, 335, 336, 341, 343, 373, 340,
- 339, 337, 338, 408, 410, 506, 498, 499, 505, 461,
- 455, 470, 342, 500, 503, 491, 493, 492, 501, 508,
- 502, 504, 507, 462, 430, 398, 399, 421, 420, 419,
- 412, 414, 418, 424, 451, 489, 394, 429, 488, 487,
- 449, 452, 467,
+ 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
+ 509, 509, 509, 509, 375, 354, 375, 380, 509, 509,
+ 347, 509, 509, 509, 509, 509, 509, 509, 509, 397,
+ 472, 347, 471, 387, 497, 495, 382, 386, 359, 377,
+ 380, 496, 402, 401, 509, 509, 413, 509, 375, 509,
+ 509, 375, 375, 485, 509, 375, 428, 509, 375, 366,
+ 323, 427, 389, 389, 438, 509, 389, 438, 428, 438,
+ 375, 509, 509, 389, 369, 389, 509, 375, 375, 356,
+ 428, 482, 405, 389, 406, 428, 396, 392, 400, 371,
+ 480, 404, 332, 393, 427, 427, 427, 427, 427, 509,
+ 440, 438, 454, 355, 509, 436, 434, 365, 433, 432,
+ 431, 465, 364, 509, 363, 466, 463, 362, 352, 509,
+ 351, 357, 435, 344, 350, 358, 361, 348, 464, 438,
+ 422, 460, 367, 474, 486, 372, 483, 395, 475, 438,
+ 370, 479, 479, 438, 438, 332, 479, 413, 409, 413,
+ 403, 403, 413, 439, 413, 403, 403, 509, 509, 409,
+ 330, 423, 509, 413, 509, 509, 509, 403, 509, 409,
+ 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
+ 383, 509, 509, 418, 509, 509, 415, 409, 509, 509,
+ 454, 509, 509, 509, 509, 484, 411, 509, 324, 426,
+ 415, 360, 442, 487, 444, 336, 443, 337, 488, 376,
+ 489, 490, 452, 481, 459, 454, 410, 441, 328, 419,
+ 325, 326, 437, 420, 477, 327, 476, 398, 399, 414,
+ 335, 421, 388, 424, 412, 451, 329, 331, 449, 333,
+ 384, 469, 500, 468, 491, 505, 343, 416, 417, 506,
+ 374, 391, 492, 493, 498, 341, 373, 418, 425, 353,
+ 501, 508, 507, 504, 502, 499, 461, 390, 368, 408,
+ 338, 503, 478, 453, 447, 446, 429, 445, 430, 448,
+ 450, 342, 462, 339, 340, 455, 470, 458, 457, 407,
+ 467, 456, 394,
);
- public static $yyFallback = array();
- public $yyTraceFILE;
- public $yyTracePrompt;
-public $yyidx;
-public $yyerrcnt;
-public $yystack = array();
- public $yyTokenName = array(
- '$', 'VERT', 'COLON', 'UNIMATH',
- 'PHP', 'TEXT', 'STRIPON', 'STRIPOFF',
- 'LITERALSTART', 'LITERALEND', 'LITERAL', 'SIMPELOUTPUT',
- 'SIMPLETAG', 'SMARTYBLOCKCHILDPARENT', 'LDEL', 'RDEL',
- 'DOLLARID', 'EQUAL', 'ID', 'PTR',
- 'LDELMAKENOCACHE', 'LDELIF', 'LDELFOR', 'SEMICOLON',
- 'INCDEC', 'TO', 'STEP', 'LDELFOREACH',
- 'SPACE', 'AS', 'APTR', 'LDELSETFILTER',
- 'CLOSETAG', 'LDELSLASH', 'ATTR', 'INTEGER',
- 'COMMA', 'OPENP', 'CLOSEP', 'MATH',
- 'ISIN', 'QMARK', 'NOT', 'TYPECAST',
- 'HEX', 'DOT', 'INSTANCEOF', 'SINGLEQUOTESTRING',
- 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH',
- 'OPENB', 'CLOSEB', 'DOLLAR', 'LOGOP',
- 'SLOGOP', 'TLOGOP', 'SINGLECOND', 'QUOTE',
- 'BACKTICK', 'error', 'start', 'template',
- 'literal_e2', 'literal_e1', 'smartytag', 'tagbody',
- 'tag', 'outattr', 'eqoutattr', 'varindexed',
- 'output', 'attributes', 'variable', 'value',
- 'expr', 'modifierlist', 'statement', 'statements',
- 'foraction', 'varvar', 'modparameters', 'attribute',
- 'ternary', 'array', 'tlop', 'lop',
- 'scond', 'function', 'ns1', 'doublequoted_with_quotes',
- 'static_class_access', 'object', 'arrayindex', 'indexdef',
- 'varvarele', 'objectchain', 'objectelement', 'method',
- 'params', 'modifier', 'modparameter', 'arrayelements',
- 'arrayelement', 'doublequoted', 'doublequotedcontent',
- );
- public static $yyRuleName = array(
+
+ public static $yyFallback = array();
+
+ public static $yyRuleName = array(
'start ::= template',
'template ::= template PHP',
'template ::= template TEXT',
@@ -1270,7 +1126,8 @@ public $yystack = array();
'doublequotedcontent ::= smartytag',
'doublequotedcontent ::= TEXT',
);
- public static $yyRuleInfo = array(
+
+ public static $yyRuleInfo = array(
array(0 => 62, 1 => 1),
array(0 => 63, 1 => 2),
array(0 => 63, 1 => 2),
@@ -1458,7 +1315,8 @@ public $yystack = array();
array(0 => 106, 1 => 1),
array(0 => 106, 1 => 1),
);
- public static $yyReduceMap = array(
+
+ public static $yyReduceMap = array(
0 => 0,
1 => 1,
2 => 2,
@@ -1644,16 +1502,172 @@ public $yystack = array();
181 => 181,
184 => 184,
185 => 185,
- ); /* Index of top element in stack */
- private $_retvalue; /* Shifts left before out of the error */
+ );
+ /**
+ * result status
+ *
+ * @var bool
+ */
+ public $successful = true;
+
+ /**
+ * return value
+ *
+ * @var mixed
+ */
+ public $retvalue = 0;
+
+ /**
+ * @var
+ */
+ public $yymajor;
+
+ /**
+ * last index of array variable
+ *
+ * @var mixed
+ */
+ public $last_index;
+
+ /**
+ * last variable name
+ *
+ * @var string
+ */
+ public $last_variable;
+
+ /**
+ * root parse tree buffer
+ *
+ * @var Smarty_Internal_ParseTree_Template
+ */
+ public $root_buffer;
+
+ /**
+ * current parse tree object
+ *
+ * @var Smarty_Internal_ParseTree
+ */
+ public $current_buffer;
+
+ /**
+ * lexer object
+ *
+ * @var Smarty_Internal_Templatelexer
+ */
+ public $lex;
+
+ /**
+ * {strip} status
+ *
+ * @var bool
+ */
+ public $strip = false;
+
+ /**
+ * compiler object
+ *
+ * @var Smarty_Internal_TemplateCompilerBase
+ */
+ public $compiler = null;
+
+ /**
+ * smarty object
+ *
+ * @var Smarty
+ */
+ public $smarty = null;
+
+ /**
+ * template object
+ *
+ * @var Smarty_Internal_Template
+ */
+ public $template = null;
+
+ /**
+ * block nesting level
+ *
+ * @var int
+ */
+ public $block_nesting_level = 0;
+
+ /**
+ * security object
+ *
+ * @var Smarty_Security
+ */
+ public $security = null;
+
+ /**
+ * template prefix array
+ *
+ * @var \Smarty_Internal_ParseTree[]
+ */
+ public $template_prefix = array();
+
+ /**
+ * template prefix array
+ *
+ * @var \Smarty_Internal_ParseTree[]
+ */
+ public $template_postfix = array();
+
+ public $yyTraceFILE;
+
+ public $yyTracePrompt;
+
+ public $yyidx;
+
+ public $yyerrcnt;
+
+ public $yystack = array();
+
+ public $yyTokenName = array(
+ '$', 'VERT', 'COLON', 'UNIMATH',
+ 'PHP', 'TEXT', 'STRIPON', 'STRIPOFF',
+ 'LITERALSTART', 'LITERALEND', 'LITERAL', 'SIMPELOUTPUT',
+ 'SIMPLETAG', 'SMARTYBLOCKCHILDPARENT', 'LDEL', 'RDEL',
+ 'DOLLARID', 'EQUAL', 'ID', 'PTR',
+ 'LDELMAKENOCACHE', 'LDELIF', 'LDELFOR', 'SEMICOLON',
+ 'INCDEC', 'TO', 'STEP', 'LDELFOREACH',
+ 'SPACE', 'AS', 'APTR', 'LDELSETFILTER',
+ 'CLOSETAG', 'LDELSLASH', 'ATTR', 'INTEGER',
+ 'COMMA', 'OPENP', 'CLOSEP', 'MATH',
+ 'ISIN', 'QMARK', 'NOT', 'TYPECAST',
+ 'HEX', 'DOT', 'INSTANCEOF', 'SINGLEQUOTESTRING',
+ 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH',
+ 'OPENB', 'CLOSEB', 'DOLLAR', 'LOGOP',
+ 'SLOGOP', 'TLOGOP', 'SINGLECOND', 'QUOTE',
+ 'BACKTICK', 'error', 'start', 'template',
+ 'literal_e2', 'literal_e1', 'smartytag', 'tagbody',
+ 'tag', 'outattr', 'eqoutattr', 'varindexed',
+ 'output', 'attributes', 'variable', 'value',
+ 'expr', 'modifierlist', 'statement', 'statements',
+ 'foraction', 'varvar', 'modparameters', 'attribute',
+ 'ternary', 'array', 'tlop', 'lop',
+ 'scond', 'function', 'ns1', 'doublequoted_with_quotes',
+ 'static_class_access', 'object', 'arrayindex', 'indexdef',
+ 'varvarele', 'objectchain', 'objectelement', 'method',
+ 'params', 'modifier', 'modparameter', 'arrayelements',
+ 'arrayelement', 'doublequoted', 'doublequotedcontent',
+ );
+
+ /**
+ * internal error flag
+ *
+ * @var bool
+ */
+ private $internalError = false; /* Index of top element in stack */
+ private $_retvalue; /* Shifts left before out of the error */
/**
* constructor
*
* @param Smarty_Internal_Templatelexer $lex
* @param Smarty_Internal_TemplateCompilerBase $compiler
*/
- function __construct(Smarty_Internal_Templatelexer $lex, Smarty_Internal_TemplateCompilerBase $compiler)
+ public function __construct(Smarty_Internal_Templatelexer $lex, Smarty_Internal_TemplateCompilerBase $compiler)
{
$this->lex = $lex;
$this->compiler = $compiler;
@@ -1662,6 +1676,13 @@ public $yystack = array();
$this->security = isset($this->smarty->security_policy) ? $this->smarty->security_policy : false;
$this->current_buffer = $this->root_buffer = new Smarty_Internal_ParseTree_Template();
} /* The parser's stack */
+ public static function yy_destructor($yymajor, $yypminor)
+ {
+ switch ($yymajor) {
+ default:
+ break; /* If no destructor action specified: do nothing */
+ }
+ }
/**
* insert PHP code in current buffer
@@ -1709,7 +1730,7 @@ public $yystack = array();
{
if (!$TraceFILE) {
$zTracePrompt = 0;
- } else if (!$zTracePrompt) {
+ } elseif (!$zTracePrompt) {
$TraceFILE = 0;
}
$this->yyTraceFILE = $TraceFILE;
@@ -1734,14 +1755,6 @@ public $yystack = array();
}
}
- public static function yy_destructor($yymajor, $yypminor)
- {
- switch ($yymajor) {
- default:
- break; /* If no destructor action specified: do nothing */
- }
- }
-
public function yy_pop_parser_stack()
{
if (empty($this->yystack)) {
@@ -1749,9 +1762,11 @@ public $yystack = array();
}
$yytos = array_pop($this->yystack);
if ($this->yyTraceFILE && $this->yyidx >= 0) {
- fwrite($this->yyTraceFILE,
- $this->yyTracePrompt . 'Popping ' . $this->yyTokenName[ $yytos->major ] .
- "\n");
+ fwrite(
+ $this->yyTraceFILE,
+ $this->yyTracePrompt . 'Popping ' . $this->yyTokenName[ $yytos->major ] .
+ "\n"
+ );
}
$yymajor = $yytos->major;
self::yy_destructor($yymajor, $yytos->minor);
@@ -1761,7 +1776,7 @@ public $yystack = array();
public function __destruct()
{
- while ($this->yystack !== Array()) {
+ while ($this->yystack !== array()) {
$this->yy_pop_parser_stack();
}
if (is_resource($this->yyTraceFILE)) {
@@ -1803,7 +1818,8 @@ public $yystack = array();
$this->yyidx -= self::$yyRuleInfo[ $yyruleno ][ 1 ];
$nextstate = $this->yy_find_reduce_action(
$this->yystack[ $this->yyidx ]->stateno,
- self::$yyRuleInfo[ $yyruleno ][ 0 ]);
+ self::$yyRuleInfo[ $yyruleno ][ 0 ]
+ );
if (isset(self::$yyExpectedTokens[ $nextstate ])) {
$expected = array_merge($expected, self::$yyExpectedTokens[ $nextstate ]);
if (isset($res4[ $nextstate ][ $token ])) {
@@ -1829,14 +1845,14 @@ public $yystack = array();
$x->major = self::$yyRuleInfo[ $yyruleno ][ 0 ];
$this->yystack[ $this->yyidx ] = $x;
continue 2;
- } else if ($nextstate === self::YYNSTATE + self::YYNRULE + 1) {
+ } elseif ($nextstate === self::YYNSTATE + self::YYNRULE + 1) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
// the last token was just ignored, we can't accept
// by ignoring input, this is in essence ignoring a
// syntax error!
return array_unique($expected);
- } else if ($nextstate === self::YY_NO_ACTION) {
+ } elseif ($nextstate === self::YY_NO_ACTION) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
// input accepted, but not shifted (I guess)
@@ -1889,7 +1905,8 @@ public $yystack = array();
$this->yyidx -= self::$yyRuleInfo[ $yyruleno ][ 1 ];
$nextstate = $this->yy_find_reduce_action(
$this->yystack[ $this->yyidx ]->stateno,
- self::$yyRuleInfo[ $yyruleno ][ 0 ]);
+ self::$yyRuleInfo[ $yyruleno ][ 0 ]
+ );
if (isset($res2[ $nextstate ][ $token ])) {
if ($res2[ $nextstate ][ $token ]) {
$this->yyidx = $yyidx;
@@ -1897,10 +1914,9 @@ public $yystack = array();
return true;
}
} else {
- if ($res2[ $nextstate ][ $token ] = (isset(self::$yyExpectedTokens[ $nextstate ]) &&
- in_array($token,
- self::$yyExpectedTokens[ $nextstate ],
- true))) {
+ if ($res2[ $nextstate ][ $token ] =
+ (isset(self::$yyExpectedTokens[ $nextstate ]) &&
+ in_array($token, self::$yyExpectedTokens[ $nextstate ], true))) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
return true;
@@ -1914,7 +1930,7 @@ public $yystack = array();
$x->major = self::$yyRuleInfo[ $yyruleno ][ 0 ];
$this->yystack[ $this->yyidx ] = $x;
continue 2;
- } else if ($nextstate === self::YYNSTATE + self::YYNRULE + 1) {
+ } elseif ($nextstate === self::YYNSTATE + self::YYNRULE + 1) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
if (!$token) {
@@ -1925,7 +1941,7 @@ public $yystack = array();
// by ignoring input, this is in essence ignoring a
// syntax error!
return false;
- } else if ($nextstate === self::YY_NO_ACTION) {
+ } elseif ($nextstate === self::YY_NO_ACTION) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
// input accepted, but not shifted (I guess)
@@ -1963,10 +1979,9 @@ public $yystack = array();
if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback)
&& ($iFallback = self::$yyFallback[ $iLookAhead ]) != 0) {
if ($this->yyTraceFILE) {
- fwrite($this->yyTraceFILE,
- $this->yyTracePrompt . 'FALLBACK ' .
- $this->yyTokenName[ $iLookAhead ] . ' => ' .
- $this->yyTokenName[ $iFallback ] . "\n");
+ fwrite($this->yyTraceFILE, $this->yyTracePrompt . 'FALLBACK ' .
+ $this->yyTokenName[ $iLookAhead ] . ' => ' .
+ $this->yyTokenName[ $iFallback ] . "\n");
}
return $this->yy_find_shift_action($iFallback);
}
@@ -1998,8 +2013,7 @@ public $yystack = array();
}
}
- #line 234 "../smarty/lexer/smarty_internal_templateparser.y"
-
+ // line 234 "../smarty/lexer/smarty_internal_templateparser.y"
public function yy_shift($yyNewState, $yyMajor, $yypMinor)
{
$this->yyidx++;
@@ -2011,7 +2025,7 @@ public $yystack = array();
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
- #line 221 "../smarty/lexer/smarty_internal_templateparser.y"
+ // line 221 "../smarty/lexer/smarty_internal_templateparser.y"
$this->internalError = true;
$this->compiler->trigger_template_error('Stack overflow in template parser');
return;
@@ -2022,37 +2036,39 @@ public $yystack = array();
$yytos->minor = $yypMinor;
$this->yystack[] = $yytos;
if ($this->yyTraceFILE && $this->yyidx > 0) {
- fprintf($this->yyTraceFILE,
- "%sShift %d\n",
- $this->yyTracePrompt,
- $yyNewState);
+ fprintf(
+ $this->yyTraceFILE,
+ "%sShift %d\n",
+ $this->yyTracePrompt,
+ $yyNewState
+ );
fprintf($this->yyTraceFILE, "%sStack:", $this->yyTracePrompt);
for ($i = 1; $i <= $this->yyidx; $i++) {
- fprintf($this->yyTraceFILE,
- " %s",
- $this->yyTokenName[ $this->yystack[ $i ]->major ]);
+ fprintf(
+ $this->yyTraceFILE,
+ " %s",
+ $this->yyTokenName[ $this->yystack[ $i ]->major ]
+ );
}
fwrite($this->yyTraceFILE, "\n");
}
}
- #line 242 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r0()
+ // line 242 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r0()
{
$this->root_buffer->prepend_array($this, $this->template_prefix);
$this->root_buffer->append_array($this, $this->template_postfix);
$this->_retvalue = $this->root_buffer->to_smarty_php($this);
}
- #line 251 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r1()
+ // line 251 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r1()
{
- $code = $this->compiler->compileTag('private_php',
- array(array('code' => $this->yystack[ $this->yyidx + 0 ]->minor),
- array('type' => $this->lex->phpType)),
- array());
+ $code =
+ $this->compiler->compileTag('private_php',
+ array(array('code' => $this->yystack[ $this->yyidx + 0 ]->minor), array('type' => $this->lex->phpType)),
+ array());
if ($this->compiler->has_code && !empty($code)) {
$tmp = '';
foreach ($this->compiler->prefix_code as $code) {
@@ -2060,114 +2076,94 @@ public $yystack = array();
}
$this->compiler->prefix_code = array();
$this->current_buffer->append_subtree($this,
- new Smarty_Internal_ParseTree_Tag($this,
- $this->compiler->processNocacheCode($tmp .
- $code,
- true)));
+ new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp . $code, true)));
}
}
- #line 255 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r2()
+ // line 255 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r2()
{
$this->current_buffer->append_subtree($this,
- $this->compiler->processText($this->yystack[ $this->yyidx + 0 ]->minor));
+ $this->compiler->processText($this->yystack[ $this->yyidx + 0 ]->minor));
}
- #line 259 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r3()
+ // line 259 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r3()
{
$this->strip = true;
}
- #line 264 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r4()
+ // line 264 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r4()
{
$this->strip = false;
}
- #line 269 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r5()
+ // line 269 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r5()
{
$this->current_buffer->append_subtree($this,
- new Smarty_Internal_ParseTree_Text($this->yystack[ $this->yyidx +
- -1 ]->minor));
+ new Smarty_Internal_ParseTree_Text($this->yystack[ $this->yyidx + -1 ]->minor));
}
- #line 272 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r6()
+ // line 272 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r6()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -3 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor;
}
- #line 276 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r7()
+ // line 276 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r7()
{
$this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 281 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r8()
+ // line 281 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r8()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 285 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r9()
+ // line 285 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r9()
{
$this->_retvalue = '';
}
- #line 297 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r10()
+ // line 297 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r10()
{
if ($this->compiler->has_code) {
$this->current_buffer->append_subtree($this,
- $this->mergePrefixCode($this->yystack[ $this->yyidx + 0 ]->minor));
+ $this->mergePrefixCode($this->yystack[ $this->yyidx + 0 ]->minor));
}
$this->compiler->has_variable_string = false;
$this->block_nesting_level = count($this->compiler->_tag_stack);
}
- #line 307 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r12()
+ // line 307 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r12()
{
- $var = trim(substr($this->yystack[ $this->yyidx + 0 ]->minor,
- $this->compiler->getLdelLength(),
- -$this->compiler->getRdelLength()),
- ' $');
+ $var =
+ trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler->getLdelLength(),
+ -$this->compiler->getRdelLength()), ' $');
if (preg_match('/^(.*)(\s+nocache)$/', $var, $match)) {
- $this->_retvalue = $this->compiler->compileTag('private_print_expression',
- array('nocache'),
- array('value' => $this->compiler->compileVariable('\'' .
- $match[ 1 ] .
- '\'')));
+ $this->_retvalue =
+ $this->compiler->compileTag('private_print_expression', array('nocache'),
+ array('value' => $this->compiler->compileVariable('\'' . $match[ 1 ] . '\'')));
} else {
- $this->_retvalue = $this->compiler->compileTag('private_print_expression',
- array(),
- array('value' => $this->compiler->compileVariable('\'' .
- $var .
- '\'')));
+ $this->_retvalue =
+ $this->compiler->compileTag('private_print_expression', array(),
+ array('value' => $this->compiler->compileVariable('\'' . $var . '\'')));
}
}
- #line 328 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r13()
+ // line 328 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r13()
{
- $tag = trim(substr($this->yystack[ $this->yyidx + 0 ]->minor,
- $this->compiler->getLdelLength(),
- -$this->compiler->getRdelLength()));
+ $tag =
+ trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler->getLdelLength(),
+ -$this->compiler->getRdelLength()));
if ($tag == 'strip') {
$this->strip = true;
$this->_retvalue = null;;
@@ -2188,328 +2184,283 @@ public $yystack = array();
}
}
- #line 339 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r14()
+ // line 339 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r14()
{
$j = strrpos($this->yystack[ $this->yyidx + 0 ]->minor, '.');
if ($this->yystack[ $this->yyidx + 0 ]->minor[ $j + 1 ] == 'c') {
// {$smarty.block.child}
$this->_retvalue =
- $this->compiler->compileTag('child', array(), array($this->yystack[ $this->yyidx + 0 ]->minor));;
+ $this->compiler->compileTag('child', array(), array($this->yystack[ $this->yyidx + 0 ]->minor));
} else {
// {$smarty.block.parent}
$this->_retvalue =
- $this->compiler->compileTag('parent', array(), array($this->yystack[ $this->yyidx + 0 ]->minor));;
+ $this->compiler->compileTag('parent', array(), array($this->yystack[ $this->yyidx + 0 ]->minor));
}
}
- #line 343 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r15()
+ // line 343 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r15()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor;
}
- #line 347 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r16()
+ // line 347 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r16()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor;
}
- #line 356 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r17()
+ // line 356 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r17()
{
- $this->_retvalue = $this->compiler->compileTag('private_print_expression',
- $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ],
- array('value' => $this->yystack[ $this->yyidx +
- 0 ]->minor[ 0 ]));
+ $this->_retvalue =
+ $this->compiler->compileTag('private_print_expression', $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ],
+ array('value' => $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ]));
}
- #line 360 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r18()
+ // line 360 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r18()
{
- $this->_retvalue = $this->compiler->compileTag('assign',
- array_merge(array(array('value' => $this->yystack[ $this->yyidx +
- 0 ]->minor[ 0 ]),
- array('var' => '\'' .
- substr($this->yystack[ $this->yyidx +
- -1 ]->minor,
- 1) . '\'')),
- $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ]));
+ $this->_retvalue =
+ $this->compiler->compileTag('assign', array_merge(array(
+ array('value' => $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ]),
+ array('var' => '\'' . substr($this->yystack[ $this->yyidx + -1 ]->minor, 1) . '\'')
+ ), $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ]));
}
- #line 364 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r19()
+ // line 364 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r19()
{
- $this->_retvalue = $this->compiler->compileTag('assign',
- array_merge(array(array('value' => $this->yystack[ $this->yyidx +
- 0 ]->minor[ 0 ]),
- array('var' => $this->yystack[ $this->yyidx +
- -1 ]->minor[ 'var' ])),
- $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ]),
- array('smarty_internal_index' => $this->yystack[ $this->yyidx +
- -1 ]->minor[ 'smarty_internal_index' ]));
+ $this->_retvalue =
+ $this->compiler->compileTag('assign', array_merge(array(
+ array('value' => $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ]),
+ array('var' => $this->yystack[ $this->yyidx + -1 ]->minor[ 'var' ])
+ ), $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ]), array(
+ 'smarty_internal_index' => $this->yystack[ $this->yyidx +
+ -1 ]->minor[ 'smarty_internal_index' ]
+ ));
}
- #line 368 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r20()
+ // line 368 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r20()
{
$this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 383 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r21()
+ // line 383 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r21()
{
$this->_retvalue = array($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor);
}
- #line 393 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r25()
+ // line 393 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r25()
{
if (defined($this->yystack[ $this->yyidx + -1 ]->minor)) {
if ($this->security) {
$this->security->isTrustedConstant($this->yystack[ $this->yyidx + -1 ]->minor, $this->compiler);
}
- $this->_retvalue = $this->compiler->compileTag('private_print_expression',
- $this->yystack[ $this->yyidx + 0 ]->minor,
- array('value' => $this->yystack[ $this->yyidx +
- -1 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag('private_print_expression', $this->yystack[ $this->yyidx + 0 ]->minor,
+ array('value' => $this->yystack[ $this->yyidx + -1 ]->minor));
} else {
- $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor,
- $this->yystack[ $this->yyidx + 0 ]->minor);
+ $this->_retvalue =
+ $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor,
+ $this->yystack[ $this->yyidx + 0 ]->minor);
}
}
- #line 406 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r26()
+ // line 406 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r26()
{
if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) {
if ($this->security) {
$this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler);
}
- $this->_retvalue = $this->compiler->compileTag('private_print_expression',
- array(),
- array('value' => $this->yystack[ $this->yyidx + 0 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag('private_print_expression', array(),
+ array('value' => $this->yystack[ $this->yyidx + 0 ]->minor));
} else {
$this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor, array());
}
}
- #line 418 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r27()
+ // line 418 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r27()
{
if (defined($this->yystack[ $this->yyidx + -2 ]->minor)) {
if ($this->security) {
$this->security->isTrustedConstant($this->yystack[ $this->yyidx + -2 ]->minor, $this->compiler);
}
- $this->_retvalue = $this->compiler->compileTag('private_print_expression',
- $this->yystack[ $this->yyidx + 0 ]->minor,
- array('value' => $this->yystack[ $this->yyidx +
- -2 ]->minor,
- 'modifierlist' => $this->yystack[ $this->yyidx +
- -1 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag('private_print_expression', $this->yystack[ $this->yyidx + 0 ]->minor,
+ array(
+ 'value' => $this->yystack[ $this->yyidx + -2 ]->minor,
+ 'modifierlist' => $this->yystack[ $this->yyidx + -1 ]->minor
+ ));
} else {
- $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -2 ]->minor,
- $this->yystack[ $this->yyidx + 0 ]->minor,
- array('modifierlist' => $this->yystack[ $this->yyidx +
- -1 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag($this->yystack[ $this->yyidx + -2 ]->minor,
+ $this->yystack[ $this->yyidx + 0 ]->minor,
+ array('modifierlist' => $this->yystack[ $this->yyidx + -1 ]->minor));
}
}
- #line 423 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r28()
+ // line 423 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r28()
{
- $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -3 ]->minor,
- $this->yystack[ $this->yyidx + 0 ]->minor,
- array('object_method' => $this->yystack[ $this->yyidx +
- -1 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag($this->yystack[ $this->yyidx + -3 ]->minor,
+ $this->yystack[ $this->yyidx + 0 ]->minor,
+ array('object_method' => $this->yystack[ $this->yyidx + -1 ]->minor));
}
- #line 428 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r29()
+ // line 428 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r29()
{
- $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -4 ]->minor,
- $this->yystack[ $this->yyidx + 0 ]->minor,
- array('modifierlist' => $this->yystack[ $this->yyidx +
- -1 ]->minor,
- 'object_method' => $this->yystack[ $this->yyidx +
- -2 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag($this->yystack[ $this->yyidx + -4 ]->minor,
+ $this->yystack[ $this->yyidx + 0 ]->minor, array(
+ 'modifierlist' => $this->yystack[ $this->yyidx + -1 ]->minor,
+ 'object_method' => $this->yystack[ $this->yyidx + -2 ]->minor
+ ));
}
- #line 433 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r30()
+ // line 433 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r30()
{
- $this->_retvalue = $this->compiler->compileTag('make_nocache',
- array(array('var' => '\'' . substr($this->yystack[ $this->yyidx +
- 0 ]->minor,
- 1) . '\'')));
+ $this->_retvalue =
+ $this->compiler->compileTag('make_nocache',
+ array(array('var' => '\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'')));
}
- #line 438 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r31()
+ // line 438 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r31()
{
$tag = trim(substr($this->yystack[ $this->yyidx + -1 ]->minor, $this->compiler->getLdelLength()));
- $this->_retvalue = $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag,
- array(),
- array('if condition' => $this->yystack[ $this->yyidx +
- 0 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag, array(),
+ array('if condition' => $this->yystack[ $this->yyidx + 0 ]->minor));
}
- #line 443 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r32()
+ // line 443 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r32()
{
$tag = trim(substr($this->yystack[ $this->yyidx + -2 ]->minor, $this->compiler->getLdelLength()));
- $this->_retvalue = $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag,
- $this->yystack[ $this->yyidx + 0 ]->minor,
- array('if condition' => $this->yystack[ $this->yyidx +
- -1 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag,
+ $this->yystack[ $this->yyidx + 0 ]->minor,
+ array('if condition' => $this->yystack[ $this->yyidx + -1 ]->minor));
}
- #line 454 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r33()
+ // line 454 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r33()
{
$tag = trim(substr($this->yystack[ $this->yyidx + -1 ]->minor, $this->compiler->getLdelLength()));
- $this->_retvalue = $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag,
- array(),
- array('if condition' => $this->yystack[ $this->yyidx +
- 0 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag, array(),
+ array('if condition' => $this->yystack[ $this->yyidx + 0 ]->minor));
}
- #line 458 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r35()
+ // line 458 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r35()
{
- $this->_retvalue = $this->compiler->compileTag('for',
- array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
- array(array('start' => $this->yystack[ $this->yyidx +
- -6 ]->minor),
- array('ifexp' => $this->yystack[ $this->yyidx +
- -4 ]->minor),
- array('var' => $this->yystack[ $this->yyidx +
- -2 ]->minor),
- array('step' => $this->yystack[ $this->yyidx +
- -1 ]->minor))),
- 1);
+ $this->_retvalue =
+ $this->compiler->compileTag('for', array_merge($this->yystack[ $this->yyidx + 0 ]->minor, array(
+ array('start' => $this->yystack[ $this->yyidx + -6 ]->minor),
+ array('ifexp' => $this->yystack[ $this->yyidx + -4 ]->minor),
+ array('var' => $this->yystack[ $this->yyidx + -2 ]->minor),
+ array('step' => $this->yystack[ $this->yyidx + -1 ]->minor)
+ )), 1);
}
- #line 466 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r36()
+ // line 466 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r36()
{
$this->_retvalue = '=' . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 470 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r38()
+ // line 470 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r38()
{
- $this->_retvalue = $this->compiler->compileTag('for',
- array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
- array(array('start' => $this->yystack[ $this->yyidx +
- -3 ]->minor),
- array('to' => $this->yystack[ $this->yyidx +
- -1 ]->minor))),
- 0);
+ $this->_retvalue =
+ $this->compiler->compileTag('for', array_merge($this->yystack[ $this->yyidx + 0 ]->minor, array(
+ array('start' => $this->yystack[ $this->yyidx + -3 ]->minor),
+ array('to' => $this->yystack[ $this->yyidx + -1 ]->minor)
+ )), 0);
}
- #line 475 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r39()
+ // line 475 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r39()
{
- $this->_retvalue = $this->compiler->compileTag('for',
- array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
- array(array('start' => $this->yystack[ $this->yyidx +
- -5 ]->minor),
- array('to' => $this->yystack[ $this->yyidx +
- -3 ]->minor),
- array('step' => $this->yystack[ $this->yyidx +
- -1 ]->minor))),
- 0);
+ $this->_retvalue =
+ $this->compiler->compileTag('for', array_merge($this->yystack[ $this->yyidx + 0 ]->minor, array(
+ array('start' => $this->yystack[ $this->yyidx + -5 ]->minor),
+ array('to' => $this->yystack[ $this->yyidx + -3 ]->minor),
+ array('step' => $this->yystack[ $this->yyidx + -1 ]->minor)
+ )), 0);
}
- #line 479 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r40()
+ // line 479 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r40()
{
- $this->_retvalue = $this->compiler->compileTag('foreach',
- array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
- array(array('from' => $this->yystack[ $this->yyidx +
- -3 ]->minor),
- array('item' => $this->yystack[ $this->yyidx +
- -1 ]->minor))));
+ $this->_retvalue =
+ $this->compiler->compileTag('foreach', array_merge($this->yystack[ $this->yyidx + 0 ]->minor, array(
+ array('from' => $this->yystack[ $this->yyidx + -3 ]->minor),
+ array('item' => $this->yystack[ $this->yyidx + -1 ]->minor)
+ )));
}
- #line 482 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r41()
+ // line 482 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r41()
{
- $this->_retvalue = $this->compiler->compileTag('foreach',
- array_merge($this->yystack[ $this->yyidx + 0 ]->minor,
- array(array('from' => $this->yystack[ $this->yyidx +
- -5 ]->minor),
- array('item' => $this->yystack[ $this->yyidx +
- -1 ]->minor),
- array('key' => $this->yystack[ $this->yyidx +
- -3 ]->minor))));
+ $this->_retvalue =
+ $this->compiler->compileTag('foreach', array_merge($this->yystack[ $this->yyidx + 0 ]->minor, array(
+ array('from' => $this->yystack[ $this->yyidx + -5 ]->minor),
+ array('item' => $this->yystack[ $this->yyidx + -1 ]->minor),
+ array('key' => $this->yystack[ $this->yyidx + -3 ]->minor)
+ )));
}
- #line 487 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r42()
+ // line 487 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r42()
{
$this->_retvalue = $this->compiler->compileTag('foreach', $this->yystack[ $this->yyidx + 0 ]->minor);
}
- #line 491 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r43()
+ // line 491 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r43()
{
- $this->_retvalue = $this->compiler->compileTag('setfilter',
- array(),
- array('modifier_list' => array(array_merge(array($this->yystack[ $this->yyidx +
- -1 ]->minor),
- $this->yystack[ $this->yyidx +
- 0 ]->minor))));
+ $this->_retvalue =
+ $this->compiler->compileTag('setfilter', array(), array(
+ 'modifier_list' => array(
+ array_merge(array($this->yystack[ $this->yyidx + -1 ]->minor),
+ $this->yystack[ $this->yyidx + 0 ]->minor)
+ )
+ ));
}
- #line 497 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r44()
+ // line 497 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r44()
{
- $this->_retvalue = $this->compiler->compileTag('setfilter',
- array(),
- array('modifier_list' => array_merge(array(array_merge(array($this->yystack[ $this->yyidx +
- -2 ]->minor),
- $this->yystack[ $this->yyidx +
- -1 ]->minor)),
- $this->yystack[ $this->yyidx +
- 0 ]->minor)));
+ $this->_retvalue =
+ $this->compiler->compileTag('setfilter', array(), array(
+ 'modifier_list' => array_merge(array(
+ array_merge(array(
+ $this->yystack[ $this->yyidx +
+ -2 ]->minor
+ ), $this->yystack[ $this->yyidx + -1 ]->minor)
+ ), $this->yystack[ $this->yyidx + 0 ]->minor)
+ ));
}
- #line 506 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r45()
+ // line 506 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r45()
{
- $tag = trim(substr($this->yystack[ $this->yyidx + 0 ]->minor,
- $this->compiler->getLdelLength(),
- -$this->compiler->getRdelLength()),
- ' /');
+ $tag =
+ trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler->getLdelLength(),
+ -$this->compiler->getRdelLength()), ' /');
if ($tag === 'strip') {
$this->strip = false;
$this->_retvalue = null;
@@ -2518,70 +2469,59 @@ public $yystack = array();
}
}
- #line 510 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r46()
+ // line 510 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r46()
{
$this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor . 'close', array());
}
- #line 515 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r47()
+ // line 515 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r47()
{
- $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor . 'close',
- array(),
- array('modifier_list' => $this->yystack[ $this->yyidx +
- 0 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor . 'close', array(),
+ array('modifier_list' => $this->yystack[ $this->yyidx + 0 ]->minor));
}
- #line 519 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r48()
+ // line 519 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r48()
{
- $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -2 ]->minor . 'close',
- array(),
- array('object_method' => $this->yystack[ $this->yyidx +
- 0 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag($this->yystack[ $this->yyidx + -2 ]->minor . 'close', array(),
+ array('object_method' => $this->yystack[ $this->yyidx + 0 ]->minor));
}
- #line 527 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r49()
+ // line 527 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r49()
{
- $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -3 ]->minor . 'close',
- array(),
- array('object_method' => $this->yystack[ $this->yyidx +
- -1 ]->minor,
- 'modifier_list' => $this->yystack[ $this->yyidx +
- 0 ]->minor));
+ $this->_retvalue =
+ $this->compiler->compileTag($this->yystack[ $this->yyidx + -3 ]->minor . 'close', array(), array(
+ 'object_method' => $this->yystack[ $this->yyidx + -1 ]->minor,
+ 'modifier_list' => $this->yystack[ $this->yyidx + 0 ]->minor
+ ));
}
- #line 533 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r50()
+ // line 533 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r50()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor;
$this->_retvalue[] = $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 538 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r51()
+ // line 538 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r51()
{
$this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor);
}
- #line 543 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r52()
+ // line 543 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r52()
{
$this->_retvalue = array();
}
- #line 554 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r53()
+ // line 554 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r53()
{
if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) {
if ($this->security) {
@@ -2591,196 +2531,202 @@ public $yystack = array();
array($this->yystack[ $this->yyidx + -2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor);
} else {
$this->_retvalue =
- array($this->yystack[ $this->yyidx + -2 ]->minor => '\'' . $this->yystack[ $this->yyidx + 0 ]->minor .
- '\'');
+ array(
+ $this->yystack[ $this->yyidx + -2 ]->minor => '\'' .
+ $this->yystack[ $this->yyidx + 0 ]->minor .
+ '\''
+ );
}
}
- #line 562 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r54()
+ // line 562 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r54()
{
$this->_retvalue =
- array(trim($this->yystack[ $this->yyidx + -1 ]->minor, " =\n\r\t") => $this->yystack[ $this->yyidx +
- 0 ]->minor);
+ array(
+ trim($this->yystack[ $this->yyidx + -1 ]->minor, " =\n\r\t") => $this->yystack[ $this->yyidx +
+ 0 ]->minor
+ );
}
- #line 574 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r56()
+ // line 574 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r56()
{
$this->_retvalue = '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\'';
}
- #line 587 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r59()
+ // line 587 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r59()
{
$this->_retvalue =
array($this->yystack[ $this->yyidx + -2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor);
}
- #line 592 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r61()
+ // line 592 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r61()
{
$this->yystack[ $this->yyidx + -2 ]->minor[] = $this->yystack[ $this->yyidx + 0 ]->minor;
$this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor;
}
- #line 599 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r62()
+ // line 599 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r62()
{
- $this->_retvalue = array('var' => '\'' . substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . '\'',
- 'value' => $this->yystack[ $this->yyidx + 0 ]->minor);
+ $this->_retvalue =
+ array(
+ 'var' => '\'' . substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . '\'',
+ 'value' => $this->yystack[ $this->yyidx + 0 ]->minor
+ );
}
- #line 603 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r64()
+ // line 603 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r64()
{
- $this->_retvalue = array('var' => $this->yystack[ $this->yyidx + -2 ]->minor,
- 'value' => $this->yystack[ $this->yyidx + 0 ]->minor);
+ $this->_retvalue =
+ array(
+ 'var' => $this->yystack[ $this->yyidx + -2 ]->minor,
+ 'value' => $this->yystack[ $this->yyidx + 0 ]->minor
+ );
}
- #line 623 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r65()
+ // line 623 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r65()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor;
}
- #line 628 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r68()
+ // line 628 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r68()
{
$this->_retvalue =
- '$_smarty_tpl->getStreamVariable(\'' . substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . '://' .
- $this->yystack[ $this->yyidx + 0 ]->minor . '\')';
+ '$_smarty_tpl->getStreamVariable(\'' .
+ substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) .
+ '://' .
+ $this->yystack[ $this->yyidx + 0 ]->minor .
+ '\')';
}
- #line 642 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r69()
+ // line 642 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r69()
{
$this->_retvalue =
- $this->yystack[ $this->yyidx + -2 ]->minor . trim($this->yystack[ $this->yyidx + -1 ]->minor) .
+ $this->yystack[ $this->yyidx + -2 ]->minor .
+ trim($this->yystack[ $this->yyidx + -1 ]->minor) .
$this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 648 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r72()
- {
- $this->_retvalue = $this->compiler->compileTag('private_modifier',
- array(),
- array('value' => $this->yystack[ $this->yyidx +
- -1 ]->minor,
- 'modifierlist' => $this->yystack[ $this->yyidx +
- 0 ]->minor));
- }
-
- #line 652 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r73()
+ // line 648 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r72()
{
$this->_retvalue =
- $this->yystack[ $this->yyidx + -1 ]->minor[ 'pre' ] . $this->yystack[ $this->yyidx + -2 ]->minor .
- $this->yystack[ $this->yyidx + -1 ]->minor[ 'op' ] . $this->yystack[ $this->yyidx + 0 ]->minor . ')';
+ $this->compiler->compileTag('private_modifier', array(), array(
+ 'value' => $this->yystack[ $this->yyidx + -1 ]->minor,
+ 'modifierlist' => $this->yystack[ $this->yyidx + 0 ]->minor
+ ));
}
- #line 656 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r74()
+ // line 652 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r73()
{
- $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor .
- $this->yystack[ $this->yyidx + 0 ]->minor;
+ $this->_retvalue =
+ $this->yystack[ $this->yyidx + -1 ]->minor[ 'pre' ] .
+ $this->yystack[ $this->yyidx + -2 ]->minor .
+ $this->yystack[ $this->yyidx + -1 ]->minor[ 'op' ] .
+ $this->yystack[ $this->yyidx + 0 ]->minor .
+ ')';
}
- #line 660 "../smarty/lexer/smarty_internal_templateparser.y"
+ // line 656 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r74()
+ {
+ $this->_retvalue =
+ $this->yystack[ $this->yyidx + -2 ]->minor .
+ $this->yystack[ $this->yyidx + -1 ]->minor .
+ $this->yystack[ $this->yyidx + 0 ]->minor;
+ }
- function yy_r75()
+ // line 660 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r75()
{
$this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor . ')';
}
- #line 664 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r76()
+ // line 664 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r76()
{
$this->_retvalue =
- 'in_array(' . $this->yystack[ $this->yyidx + -2 ]->minor . ',' . $this->yystack[ $this->yyidx + 0 ]->minor .
+ 'in_array(' .
+ $this->yystack[ $this->yyidx + -2 ]->minor .
+ ',' .
+ $this->yystack[ $this->yyidx + 0 ]->minor .
')';
}
- #line 672 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r77()
- {
- $this->_retvalue = 'in_array(' . $this->yystack[ $this->yyidx + -2 ]->minor . ',(array)' .
- $this->yystack[ $this->yyidx + 0 ]->minor . ')';
- }
-
- #line 676 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r78()
- {
- $this->_retvalue = $this->yystack[ $this->yyidx + -5 ]->minor . ' ? ' . $this->compiler->compileVariable('\'' .
- substr($this->yystack[ $this->yyidx +
- -2 ]->minor,
- 1) .
- '\'') .
- ' : ' . $this->yystack[ $this->yyidx + 0 ]->minor;
- }
-
- #line 686 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r79()
+ // line 672 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r77()
{
$this->_retvalue =
- $this->yystack[ $this->yyidx + -5 ]->minor . ' ? ' . $this->yystack[ $this->yyidx + -2 ]->minor . ' : ' .
+ 'in_array(' .
+ $this->yystack[ $this->yyidx + -2 ]->minor .
+ ',(array)' .
+ $this->yystack[ $this->yyidx + 0 ]->minor .
+ ')';
+ }
+
+ // line 676 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r78()
+ {
+ $this->_retvalue =
+ $this->yystack[ $this->yyidx + -5 ]->minor .
+ ' ? ' .
+ $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . '\'') .
+ ' : ' .
$this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 691 "../smarty/lexer/smarty_internal_templateparser.y"
+ // line 686 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r79()
+ {
+ $this->_retvalue =
+ $this->yystack[ $this->yyidx + -5 ]->minor .
+ ' ? ' .
+ $this->yystack[ $this->yyidx + -2 ]->minor .
+ ' : ' .
+ $this->yystack[ $this->yyidx + 0 ]->minor;
+ }
- function yy_r81()
+ // line 691 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r81()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 712 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r82()
+ // line 712 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r82()
{
$this->_retvalue = '!' . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 716 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r87()
+ // line 716 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r87()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 720 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r88()
+ // line 720 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r88()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . '.';
}
- #line 725 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r89()
+ // line 725 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r89()
{
$this->_retvalue = '.' . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 742 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r90()
+ // line 742 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r90()
{
if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) {
if ($this->security) {
@@ -2792,32 +2738,30 @@ public $yystack = array();
}
}
- #line 746 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r92()
+ // line 746 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r92()
{
$this->_retvalue = '(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')';
}
- #line 764 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r93()
+ // line 764 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r93()
{
- $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor .
- $this->yystack[ $this->yyidx + 0 ]->minor;
+ $this->_retvalue =
+ $this->yystack[ $this->yyidx + -2 ]->minor .
+ $this->yystack[ $this->yyidx + -1 ]->minor .
+ $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 775 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r97()
+ // line 775 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r97()
{
$prefixVar = $this->compiler->getNewPrefixVariable();
if ($this->yystack[ $this->yyidx + -2 ]->minor[ 'var' ] === '\'smarty\'') {
$this->compiler->appendPrefixCode("compiler->compileTag('private_special_variable',
- array(),
- $this->yystack[ $this->yyidx +
- -2 ]->minor[ 'smarty_internal_index' ]) .
+ $this->compiler->compileTag('private_special_variable', array(),
+ $this->yystack[ $this->yyidx +
+ -2 ]->minor[ 'smarty_internal_index' ]) .
';?>');
} else {
$this->compiler->appendPrefixCode("yystack[ $this->yyidx + -2 ]->minor[ 'smarty_internal_index' ] .
';?>');
}
- $this->_retvalue = $prefixVar . '::' . $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] .
- $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ];
+ $this->_retvalue =
+ $prefixVar .
+ '::' .
+ $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] .
+ $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ];
}
- #line 792 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r98()
+ // line 792 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r98()
{
$prefixVar = $this->compiler->getNewPrefixVariable();
$tmp = $this->compiler->appendCode('', $this->yystack[ $this->yyidx + 0 ]->minor);
@@ -2840,464 +2786,457 @@ public $yystack = array();
$this->_retvalue = $prefixVar;
}
- #line 811 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r101()
+ // line 811 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r101()
{
if (!in_array(strtolower($this->yystack[ $this->yyidx + -2 ]->minor), array('self', 'parent')) &&
- (!$this->security || $this->security->isTrustedStaticClassAccess($this->yystack[ $this->yyidx + -2 ]->minor,
- $this->yystack[ $this->yyidx + 0 ]->minor,
- $this->compiler))) {
+ (!$this->security ||
+ $this->security->isTrustedStaticClassAccess($this->yystack[ $this->yyidx + -2 ]->minor,
+ $this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler))) {
if (isset($this->smarty->registered_classes[ $this->yystack[ $this->yyidx + -2 ]->minor ])) {
$this->_retvalue =
- $this->smarty->registered_classes[ $this->yystack[ $this->yyidx + -2 ]->minor ] . '::' .
- $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] . $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ];
+ $this->smarty->registered_classes[ $this->yystack[ $this->yyidx + -2 ]->minor ] .
+ '::' .
+ $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] .
+ $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ];
} else {
$this->_retvalue =
- $this->yystack[ $this->yyidx + -2 ]->minor . '::' . $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] .
+ $this->yystack[ $this->yyidx + -2 ]->minor .
+ '::' .
+ $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] .
$this->yystack[ $this->yyidx + 0 ]->minor[ 1 ];
}
} else {
- $this->compiler->trigger_template_error('static class \'' . $this->yystack[ $this->yyidx + -2 ]->minor .
+ $this->compiler->trigger_template_error('static class \'' .
+ $this->yystack[ $this->yyidx + -2 ]->minor .
'\' is undefined or not allowed by security setting');
}
}
- #line 822 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r103()
+ // line 822 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r103()
{
$this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 825 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r104()
+ // line 825 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r104()
{
$this->_retvalue =
$this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'');
}
- #line 838 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r105()
+ // line 838 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r105()
{
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;
} else {
// used for array reset,next,prev,end,current
$this->last_variable = $this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ];
$this->last_index = $this->yystack[ $this->yyidx + 0 ]->minor[ 'smarty_internal_index' ];
- $this->_retvalue = $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ]) .
- $this->yystack[ $this->yyidx + 0 ]->minor[ 'smarty_internal_index' ];
+ $this->_retvalue =
+ $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ]) .
+ $this->yystack[ $this->yyidx + 0 ]->minor[ 'smarty_internal_index' ];
}
}
- #line 848 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r106()
+ // line 848 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r106()
{
- $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;
}
- #line 852 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r108()
+ // line 852 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r108()
{
$this->_retvalue =
$this->compiler->compileConfigVariable('\'' . $this->yystack[ $this->yyidx + -1 ]->minor . '\'');
}
- #line 856 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r109()
+ // line 856 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r109()
{
- $this->_retvalue = '(is_array($tmp = ' .
- $this->compiler->compileConfigVariable('\'' . $this->yystack[ $this->yyidx + -2 ]->minor .
- '\'') . ') ? $tmp' .
- $this->yystack[ $this->yyidx + 0 ]->minor . ' :null)';
+ $this->_retvalue =
+ '(is_array($tmp = ' .
+ $this->compiler->compileConfigVariable('\'' . $this->yystack[ $this->yyidx + -2 ]->minor . '\'') .
+ ') ? $tmp' .
+ $this->yystack[ $this->yyidx + 0 ]->minor .
+ ' :null)';
}
- #line 860 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r110()
+ // line 860 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r110()
{
$this->_retvalue = $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + -1 ]->minor);
}
- #line 864 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r111()
+ // line 864 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r111()
{
$this->_retvalue =
- '(is_array($tmp = ' . $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + -2 ]->minor) .
- ') ? $tmp' . $this->yystack[ $this->yyidx + 0 ]->minor . ' : null)';
+ '(is_array($tmp = ' .
+ $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + -2 ]->minor) .
+ ') ? $tmp' .
+ $this->yystack[ $this->yyidx + 0 ]->minor .
+ ' : null)';
}
- #line 867 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r112()
+ // line 867 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r112()
{
- $this->_retvalue = array('var' => '\'' . substr($this->yystack[ $this->yyidx + -1 ]->minor, 1) . '\'',
- 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor);
+ $this->_retvalue =
+ array(
+ 'var' => '\'' . substr($this->yystack[ $this->yyidx + -1 ]->minor, 1) . '\'',
+ 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor
+ );
}
- #line 880 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r113()
+ // line 880 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r113()
{
- $this->_retvalue = array('var' => $this->yystack[ $this->yyidx + -1 ]->minor,
- 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor);
+ $this->_retvalue =
+ array(
+ 'var' => $this->yystack[ $this->yyidx + -1 ]->minor,
+ 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor
+ );
}
- #line 886 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r115()
+ // line 886 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r115()
{
return;
}
- #line 889 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r116()
+ // line 889 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r116()
{
$this->_retvalue =
- '[' . $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'') .
+ '[' .
+ $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'') .
']';
}
- #line 893 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r117()
+ // line 893 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r117()
{
$this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor) . ']';
}
- #line 897 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r118()
+ // line 897 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r118()
{
- $this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + -2 ]->minor) . '->' .
- $this->yystack[ $this->yyidx + 0 ]->minor . ']';
+ $this->_retvalue =
+ '[' .
+ $this->compiler->compileVariable($this->yystack[ $this->yyidx + -2 ]->minor) .
+ '->' .
+ $this->yystack[ $this->yyidx + 0 ]->minor .
+ ']';
}
- #line 901 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r119()
+ // line 901 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r119()
{
$this->_retvalue = '[\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\']';
}
- #line 906 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r120()
+ // line 906 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r120()
{
$this->_retvalue = '[' . $this->yystack[ $this->yyidx + 0 ]->minor . ']';
}
- #line 911 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r121()
+ // line 911 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r121()
{
$this->_retvalue = '[' . $this->yystack[ $this->yyidx + -1 ]->minor . ']';
}
- #line 915 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r122()
+ // line 915 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r122()
{
- $this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable',
- array(),
- '[\'section\'][\'' .
- $this->yystack[ $this->yyidx + -1 ]->minor .
- '\'][\'index\']') . ']';
+ $this->_retvalue =
+ '[' .
+ $this->compiler->compileTag('private_special_variable', array(),
+ '[\'section\'][\'' . $this->yystack[ $this->yyidx + -1 ]->minor . '\'][\'index\']') .
+ ']';
}
- #line 918 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r123()
+ // line 918 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r123()
{
- $this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable',
- array(),
- '[\'section\'][\'' .
- $this->yystack[ $this->yyidx + -3 ]->minor . '\'][\'' .
- $this->yystack[ $this->yyidx + -1 ]->minor . '\']') . ']';
+ $this->_retvalue =
+ '[' .
+ $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' .
+ $this->yystack[ $this->yyidx +
+ -3 ]->minor .
+ '\'][\'' .
+ $this->yystack[ $this->yyidx +
+ -1 ]->minor .
+ '\']') .
+ ']';
}
- #line 924 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r124()
+ // line 924 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r124()
{
$this->_retvalue = '[' . $this->yystack[ $this->yyidx + -1 ]->minor . ']';
}
- #line 940 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r126()
+ // line 940 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r126()
{
- $this->_retvalue = '[' . $this->compiler->compileVariable('\'' .
- substr($this->yystack[ $this->yyidx + -1 ]->minor,
- 1) . '\'') . ']';;
+ $this->_retvalue =
+ '[' .
+ $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + -1 ]->minor, 1) . '\'') .
+ ']';
}
- #line 950 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r130()
+ // line 950 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r130()
{
$this->_retvalue = '[]';
}
- #line 954 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r131()
+ // line 954 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r131()
{
$this->_retvalue = '\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'';
}
- #line 959 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r132()
+ // line 959 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r132()
{
$this->_retvalue = '\'\'';
}
- #line 967 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r133()
+ // line 967 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r133()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 973 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r135()
+ // line 973 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r135()
{
- $var = trim(substr($this->yystack[ $this->yyidx + 0 ]->minor,
- $this->compiler->getLdelLength(),
- -$this->compiler->getRdelLength()),
- ' $');
+ $var =
+ trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler->getLdelLength(),
+ -$this->compiler->getRdelLength()), ' $');
$this->_retvalue = $this->compiler->compileVariable('\'' . $var . '\'');
}
- #line 980 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r136()
+ // line 980 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r136()
{
$this->_retvalue = '(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')';
}
- #line 989 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r137()
+ // line 989 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r137()
{
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;
+ $this->_retvalue =
+ $this->compiler->compileTag('private_special_variable', array(),
+ $this->yystack[ $this->yyidx + -1 ]->minor[ 'smarty_internal_index' ]) .
+ $this->yystack[ $this->yyidx + 0 ]->minor;
} else {
- $this->_retvalue = $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor[ 'var' ]) .
- $this->yystack[ $this->yyidx + -1 ]->minor[ 'smarty_internal_index' ] .
- $this->yystack[ $this->yyidx + 0 ]->minor;
+ $this->_retvalue =
+ $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor[ 'var' ]) .
+ $this->yystack[ $this->yyidx + -1 ]->minor[ 'smarty_internal_index' ] .
+ $this->yystack[ $this->yyidx + 0 ]->minor;
}
}
- #line 994 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r138()
+ // line 994 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r138()
{
$this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 999 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r139()
+ // line 999 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r139()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 1006 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r140()
+ // line 1006 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r140()
{
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;
}
- #line 1013 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r141()
+ // line 1013 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r141()
{
if ($this->security) {
- $this->compiler->trigger_template_error(self::Err2);
+ $this->compiler->trigger_template_error(self::ERR2);
}
- $this->_retvalue = '->{' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor) .
- $this->yystack[ $this->yyidx + 0 ]->minor . '}';
+ $this->_retvalue =
+ '->{' .
+ $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor) .
+ $this->yystack[ $this->yyidx + 0 ]->minor .
+ '}';
}
- #line 1020 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r142()
+ // line 1020 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r142()
{
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 . '}';
}
- #line 1028 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r143()
+ // line 1028 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r143()
{
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->yystack[ $this->yyidx + -4 ]->minor .
+ '\'.' .
+ $this->yystack[ $this->yyidx + -2 ]->minor .
+ $this->yystack[ $this->yyidx + 0 ]->minor .
+ '}';
}
- #line 1036 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r144()
+ // line 1036 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r144()
{
$this->_retvalue = '->' . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 1044 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r145()
+ // line 1044 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r145()
{
- $this->_retvalue = $this->compiler->compilePHPFunctionCall($this->yystack[ $this->yyidx + -3 ]->minor,
- $this->yystack[ $this->yyidx + -1 ]->minor);
+ $this->_retvalue =
+ $this->compiler->compilePHPFunctionCall($this->yystack[ $this->yyidx + -3 ]->minor,
+ $this->yystack[ $this->yyidx + -1 ]->minor);
}
- #line 1051 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r146()
+ // line 1051 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r146()
{
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 1062 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r147()
+ // line 1062 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r147()
{
if ($this->security) {
- $this->compiler->trigger_template_error(self::Err2);
+ $this->compiler->trigger_template_error(self::ERR2);
}
$prefixVar = $this->compiler->getNewPrefixVariable();
- $this->compiler->appendPrefixCode("compiler->compileVariable('\'' .
- substr($this->yystack[ $this->yyidx +
- -3 ]->minor,
- 1) . '\'') .
+ $this->compiler->appendPrefixCode("compiler->compileVariable('\'' .
+ substr($this->yystack[ $this->yyidx +
+ -3 ]->minor, 1) .
+ '\'') .
';?>');
$this->_retvalue = $prefixVar . '(' . implode(',', $this->yystack[ $this->yyidx + -1 ]->minor) . ')';
}
- #line 1079 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r148()
+ // line 1079 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r148()
{
$this->_retvalue =
array_merge($this->yystack[ $this->yyidx + -2 ]->minor, array($this->yystack[ $this->yyidx + 0 ]->minor));
}
- #line 1083 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r151()
+ // line 1083 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r151()
{
- $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)));
+ $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 1091 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r152()
+ // line 1091 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r152()
{
$this->_retvalue =
array(array_merge($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor));
}
- #line 1099 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r154()
+ // line 1099 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r154()
{
$this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor);
}
- #line 1118 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r155()
+ // line 1118 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r155()
{
$this->_retvalue =
array_merge($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor);
}
- #line 1123 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r159()
+ // line 1123 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r159()
{
$this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, '', 'method');
}
- #line 1128 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r160()
+ // line 1128 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r160()
{
$this->_retvalue =
array($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor, 'method');
}
- #line 1133 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r161()
+ // line 1133 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r161()
{
$this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, '');
}
- #line 1138 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r162()
+ // line 1138 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r162()
{
$this->_retvalue =
array($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor, 'property');
}
- #line 1144 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r163()
+ // line 1144 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r163()
{
- $this->_retvalue = array($this->yystack[ $this->yyidx + -2 ]->minor,
- $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor,
- 'property');
+ $this->_retvalue =
+ array(
+ $this->yystack[ $this->yyidx + -2 ]->minor,
+ $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor, 'property'
+ );
}
- #line 1148 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r164()
+ // line 1148 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r164()
{
$this->_retvalue = ' ' . trim($this->yystack[ $this->yyidx + 0 ]->minor) . ' ';
}
- #line 1167 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r165()
+ // line 1167 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r165()
{
static $lops = array(
'eq' => ' == ',
@@ -3318,9 +3257,8 @@ public $yystack = array();
$this->_retvalue = $lops[ $op ];
}
- #line 1180 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r166()
+ // line 1180 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r166()
{
static $tlops = array(
'isdivby' => array('op' => ' % ', 'pre' => '!('),
@@ -3334,9 +3272,8 @@ public $yystack = array();
$this->_retvalue = $tlops[ $op ];
}
- #line 1194 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r167()
+ // line 1194 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r167()
{
static $scond = array(
'iseven' => '!(1 & ',
@@ -3348,91 +3285,81 @@ public $yystack = array();
$this->_retvalue = $scond[ $op ];
}
- #line 1202 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r168()
+ // line 1202 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r168()
{
$this->_retvalue = 'array(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')';
}
- #line 1210 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r170()
+ // line 1210 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r170()
{
$this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . ',' . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 1214 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r172()
+ // line 1214 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r172()
{
$this->_retvalue =
$this->yystack[ $this->yyidx + -2 ]->minor . '=>' . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 1230 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r173()
+ // line 1230 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r173()
{
$this->_retvalue =
'\'' . $this->yystack[ $this->yyidx + -2 ]->minor . '\'=>' . $this->yystack[ $this->yyidx + 0 ]->minor;
}
- #line 1236 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r176()
+ // line 1236 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r176()
{
$this->compiler->leaveDoubleQuote();
$this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor->to_smarty_php($this);
}
- #line 1241 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r177()
+ // line 1241 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r177()
{
$this->yystack[ $this->yyidx + -1 ]->minor->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor);
$this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor;
}
- #line 1245 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r178()
+ // line 1245 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r178()
{
$this->_retvalue = new Smarty_Internal_ParseTree_Dq($this, $this->yystack[ $this->yyidx + 0 ]->minor);
}
- #line 1249 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r179()
+ // line 1249 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r179()
{
$this->_retvalue = new Smarty_Internal_ParseTree_Code('(string)' . $this->yystack[ $this->yyidx + -1 ]->minor);
}
- #line 1253 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r180()
+ // line 1253 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r180()
{
$this->_retvalue =
new Smarty_Internal_ParseTree_Code('(string)(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')');
}
- #line 1265 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r181()
+ // line 1265 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r181()
{
- $this->_retvalue = new Smarty_Internal_ParseTree_Code('(string)$_smarty_tpl->tpl_vars[\'' .
- substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) .
- '\']->value');
+ $this->_retvalue =
+ new Smarty_Internal_ParseTree_Code('(string)$_smarty_tpl->tpl_vars[\'' .
+ substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) .
+ '\']->value');
}
- #line 1269 "../smarty/lexer/smarty_internal_templateparser.y"
-
- function yy_r184()
+ // line 1269 "../smarty/lexer/smarty_internal_templateparser.y"
+ public function yy_r184()
{
$this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->yystack[ $this->yyidx + 0 ]->minor);
}
- function yy_r185()
+ public function yy_r185()
{
$this->_retvalue = new Smarty_Internal_ParseTree_DqContent($this->yystack[ $this->yyidx + 0 ]->minor);
}
@@ -3441,11 +3368,13 @@ public $yystack = array();
{
if ($this->yyTraceFILE && $yyruleno >= 0
&& $yyruleno < count(self::$yyRuleName)) {
- fprintf($this->yyTraceFILE,
- "%sReduce (%d) [%s].\n",
- $this->yyTracePrompt,
- $yyruleno,
- self::$yyRuleName[ $yyruleno ]);
+ fprintf(
+ $this->yyTraceFILE,
+ "%sReduce (%d) [%s].\n",
+ $this->yyTracePrompt,
+ $yyruleno,
+ self::$yyRuleName[ $yyruleno ]
+ );
}
$this->_retvalue = $yy_lefthand_side = null;
if (isset(self::$yyReduceMap[ $yyruleno ])) {
@@ -3473,7 +3402,7 @@ public $yystack = array();
} else {
$this->yy_shift($yyact, $yygoto, $yy_lefthand_side);
}
- } else if ($yyact === self::YYNSTATE + self::YYNRULE + 1) {
+ } elseif ($yyact === self::YYNSTATE + self::YYNRULE + 1) {
$this->yy_accept();
}
}
@@ -3490,7 +3419,7 @@ public $yystack = array();
public function yy_syntax_error($yymajor, $TOKEN)
{
- #line 214 "../smarty/lexer/smarty_internal_templateparser.y"
+ // line 214 "../smarty/lexer/smarty_internal_templateparser.y"
$this->internalError = true;
$this->yymajor = $yymajor;
$this->compiler->trigger_template_error();
@@ -3504,7 +3433,7 @@ public $yystack = array();
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
- #line 207 "../smarty/lexer/smarty_internal_templateparser.y"
+ // line 207 "../smarty/lexer/smarty_internal_templateparser.y"
$this->successful = !$this->internalError;
$this->internalError = false;
$this->retvalue = $this->_retvalue;
@@ -3524,10 +3453,12 @@ public $yystack = array();
}
$yyendofinput = ($yymajor == 0);
if ($this->yyTraceFILE) {
- fprintf($this->yyTraceFILE,
- "%sInput %s\n",
- $this->yyTracePrompt,
- $this->yyTokenName[ $yymajor ]);
+ fprintf(
+ $this->yyTraceFILE,
+ "%sInput %s\n",
+ $this->yyTracePrompt,
+ $this->yyTokenName[ $yymajor ]
+ );
}
do {
$yyact = $this->yy_find_shift_action($yymajor);
@@ -3544,13 +3475,15 @@ public $yystack = array();
} else {
$yymajor = self::YYNOCODE;
}
- } else if ($yyact < self::YYNSTATE + self::YYNRULE) {
+ } elseif ($yyact < self::YYNSTATE + self::YYNRULE) {
$this->yy_reduce($yyact - self::YYNSTATE);
- } else if ($yyact === self::YY_ERROR_ACTION) {
+ } elseif ($yyact === self::YY_ERROR_ACTION) {
if ($this->yyTraceFILE) {
- fprintf($this->yyTraceFILE,
- "%sSyntax Error!\n",
- $this->yyTracePrompt);
+ fprintf(
+ $this->yyTraceFILE,
+ "%sSyntax Error!\n",
+ $this->yyTracePrompt
+ );
}
if (self::YYERRORSYMBOL) {
if ($this->yyerrcnt < 0) {
@@ -3559,10 +3492,12 @@ public $yystack = array();
$yymx = $this->yystack[ $this->yyidx ]->major;
if ($yymx === self::YYERRORSYMBOL || $yyerrorhit) {
if ($this->yyTraceFILE) {
- fprintf($this->yyTraceFILE,
- "%sDiscard input token %s\n",
- $this->yyTracePrompt,
- $this->yyTokenName[ $yymajor ]);
+ fprintf(
+ $this->yyTraceFILE,
+ "%sDiscard input token %s\n",
+ $this->yyTracePrompt,
+ $this->yyTokenName[ $yymajor ]
+ );
}
$this->yy_destructor($yymajor, $yytokenvalue);
$yymajor = self::YYNOCODE;
@@ -3577,7 +3512,7 @@ public $yystack = array();
$this->yy_destructor($yymajor, $yytokenvalue);
$this->yy_parse_failed();
$yymajor = self::YYNOCODE;
- } else if ($yymx !== self::YYERRORSYMBOL) {
+ } elseif ($yymx !== self::YYERRORSYMBOL) {
$u2 = 0;
$this->yy_shift($yyact, self::YYERRORSYMBOL, $u2);
}
@@ -3602,4 +3537,3 @@ public $yystack = array();
} while ($yymajor !== self::YYNOCODE && $this->yyidx >= 0);
}
}
-
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_testinstall.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_testinstall.php
index bea8b3a80..504a4582c 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_testinstall.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_testinstall.php
@@ -21,7 +21,7 @@ class Smarty_Internal_TestInstall
* If $errors is secified, the diagnostic report will be appended to the array, rather than being output.
*
* @param \Smarty $smarty
- * @param array $errors array to push results into rather than outputting them
+ * @param array $errors array to push results into rather than outputting them
*
* @return bool status, true if everything is fine, false else
*/
@@ -82,7 +82,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'template_dir' ] = $message;
}
- } else if (!is_readable($template_dir)) {
+ } elseif (!is_readable($template_dir)) {
$status = false;
$message = "FAILED: $template_dir is not readable";
if ($errors === null) {
@@ -110,7 +110,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'compile_dir' ] = $message;
}
- } else if (!is_dir($_compile_dir)) {
+ } elseif (!is_dir($_compile_dir)) {
$status = false;
$message = "FAILED: {$_compile_dir} is not a directory";
if ($errors === null) {
@@ -118,7 +118,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'compile_dir' ] = $message;
}
- } else if (!is_readable($_compile_dir)) {
+ } elseif (!is_readable($_compile_dir)) {
$status = false;
$message = "FAILED: {$_compile_dir} is not readable";
if ($errors === null) {
@@ -126,7 +126,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'compile_dir' ] = $message;
}
- } else if (!is_writable($_compile_dir)) {
+ } elseif (!is_writable($_compile_dir)) {
$status = false;
$message = "FAILED: {$_compile_dir} is not writable";
if ($errors === null) {
@@ -192,7 +192,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'plugins_dir' ] = $message;
}
- } else if (!is_readable($plugin_dir)) {
+ } elseif (!is_readable($plugin_dir)) {
$status = false;
$message = "FAILED: $plugin_dir is not readable";
if ($errors === null) {
@@ -200,7 +200,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'plugins_dir' ] = $message;
}
- } else if ($_core_plugins_dir && $_core_plugins_dir == realpath($plugin_dir)) {
+ } elseif ($_core_plugins_dir && $_core_plugins_dir == realpath($plugin_dir)) {
$_core_plugins_available = true;
if ($errors === null) {
echo "$plugin_dir is OK.\n";
@@ -216,7 +216,7 @@ class Smarty_Internal_TestInstall
$message = "WARNING: Smarty's own libs/plugins is not available";
if ($errors === null) {
echo $message . ".\n";
- } else if (!isset($errors[ 'plugins_dir' ])) {
+ } elseif (!isset($errors[ 'plugins_dir' ])) {
$errors[ 'plugins_dir' ] = $message;
}
}
@@ -234,7 +234,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'cache_dir' ] = $message;
}
- } else if (!is_dir($_cache_dir)) {
+ } elseif (!is_dir($_cache_dir)) {
$status = false;
$message = "FAILED: {$_cache_dir} is not a directory";
if ($errors === null) {
@@ -242,7 +242,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'cache_dir' ] = $message;
}
- } else if (!is_readable($_cache_dir)) {
+ } elseif (!is_readable($_cache_dir)) {
$status = false;
$message = "FAILED: {$_cache_dir} is not readable";
if ($errors === null) {
@@ -250,7 +250,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'cache_dir' ] = $message;
}
- } else if (!is_writable($_cache_dir)) {
+ } elseif (!is_writable($_cache_dir)) {
$status = false;
$message = "FAILED: {$_cache_dir} is not writable";
if ($errors === null) {
@@ -312,7 +312,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'config_dir' ] = $message;
}
- } else if (!is_readable($config_dir)) {
+ } elseif (!is_readable($config_dir)) {
$status = false;
$message = "FAILED: $config_dir is not readable";
if ($errors === null) {
@@ -332,159 +332,161 @@ class Smarty_Internal_TestInstall
// test if sysplugins are available
$source = SMARTY_SYSPLUGINS_DIR;
if (is_dir($source)) {
- $expectedSysplugins = array('smartycompilerexception.php' => true,
- 'smartyexception.php' => true,
- 'smarty_cacheresource.php' => true,
- 'smarty_cacheresource_custom.php' => true,
- 'smarty_cacheresource_keyvaluestore.php' => true,
- 'smarty_data.php' => true,
- 'smarty_internal_block.php' => true,
- 'smarty_internal_cacheresource_file.php' => true,
- 'smarty_internal_compilebase.php' => true,
- 'smarty_internal_compile_append.php' => true,
- 'smarty_internal_compile_assign.php' => true,
- 'smarty_internal_compile_block.php' => true,
- 'smarty_internal_compile_block_child.php' => true,
- 'smarty_internal_compile_block_parent.php' => true,
- 'smarty_internal_compile_child.php' => true,
- 'smarty_internal_compile_parent.php' => true,
- 'smarty_internal_compile_break.php' => true,
- 'smarty_internal_compile_call.php' => true,
- 'smarty_internal_compile_capture.php' => true,
- 'smarty_internal_compile_config_load.php' => true,
- 'smarty_internal_compile_continue.php' => true,
- 'smarty_internal_compile_debug.php' => true,
- 'smarty_internal_compile_eval.php' => true,
- 'smarty_internal_compile_extends.php' => true,
- 'smarty_internal_compile_for.php' => true,
- 'smarty_internal_compile_foreach.php' => true,
- 'smarty_internal_compile_function.php' => true,
- 'smarty_internal_compile_if.php' => true,
- 'smarty_internal_compile_include.php' => true,
- 'smarty_internal_compile_include_php.php' => true,
- 'smarty_internal_compile_insert.php' => true,
- 'smarty_internal_compile_ldelim.php' => true,
- 'smarty_internal_compile_make_nocache.php' => true,
- 'smarty_internal_compile_nocache.php' => true,
- 'smarty_internal_compile_private_block_plugin.php' => true,
- 'smarty_internal_compile_private_foreachsection.php' => true,
- 'smarty_internal_compile_private_function_plugin.php' => true,
- 'smarty_internal_compile_private_modifier.php' => true,
- 'smarty_internal_compile_private_object_block_function.php' => true,
- 'smarty_internal_compile_private_object_function.php' => true,
- 'smarty_internal_compile_private_php.php' => true,
- 'smarty_internal_compile_private_print_expression.php' => true,
- 'smarty_internal_compile_private_registered_block.php' => true,
- 'smarty_internal_compile_private_registered_function.php' => true,
- 'smarty_internal_compile_private_special_variable.php' => true,
- 'smarty_internal_compile_rdelim.php' => true,
- 'smarty_internal_compile_section.php' => true,
- 'smarty_internal_compile_setfilter.php' => true,
- 'smarty_internal_compile_shared_inheritance.php' => true,
- 'smarty_internal_compile_while.php' => true,
- 'smarty_internal_configfilelexer.php' => true,
- 'smarty_internal_configfileparser.php' => true,
- 'smarty_internal_config_file_compiler.php' => true,
- 'smarty_internal_data.php' => true,
- 'smarty_internal_debug.php' => true,
- 'smarty_internal_errorhandler.php' => true,
- 'smarty_internal_extension_handler.php' => true,
- 'smarty_internal_method_addautoloadfilters.php' => true,
- 'smarty_internal_method_adddefaultmodifiers.php' => true,
- 'smarty_internal_method_append.php' => true,
- 'smarty_internal_method_appendbyref.php' => true,
- 'smarty_internal_method_assignbyref.php' => true,
- 'smarty_internal_method_assignglobal.php' => true,
- 'smarty_internal_method_clearallassign.php' => true,
- 'smarty_internal_method_clearallcache.php' => true,
- 'smarty_internal_method_clearassign.php' => true,
- 'smarty_internal_method_clearcache.php' => true,
- 'smarty_internal_method_clearcompiledtemplate.php' => true,
- 'smarty_internal_method_clearconfig.php' => true,
- 'smarty_internal_method_compileallconfig.php' => true,
- 'smarty_internal_method_compilealltemplates.php' => true,
- 'smarty_internal_method_configload.php' => true,
- 'smarty_internal_method_createdata.php' => true,
- 'smarty_internal_method_getautoloadfilters.php' => true,
- 'smarty_internal_method_getconfigvariable.php' => true,
- 'smarty_internal_method_getconfigvars.php' => true,
- 'smarty_internal_method_getdebugtemplate.php' => true,
- 'smarty_internal_method_getdefaultmodifiers.php' => true,
- 'smarty_internal_method_getglobal.php' => true,
- 'smarty_internal_method_getregisteredobject.php' => true,
- 'smarty_internal_method_getstreamvariable.php' => true,
- 'smarty_internal_method_gettags.php' => true,
- 'smarty_internal_method_gettemplatevars.php' => true,
- 'smarty_internal_method_literals.php' => true,
- 'smarty_internal_method_loadfilter.php' => true,
- 'smarty_internal_method_loadplugin.php' => true,
- 'smarty_internal_method_mustcompile.php' => true,
- 'smarty_internal_method_registercacheresource.php' => true,
- 'smarty_internal_method_registerclass.php' => true,
- 'smarty_internal_method_registerdefaultconfighandler.php' => true,
- 'smarty_internal_method_registerdefaultpluginhandler.php' => true,
- 'smarty_internal_method_registerdefaulttemplatehandler.php' => true,
- 'smarty_internal_method_registerfilter.php' => true,
- 'smarty_internal_method_registerobject.php' => true,
- 'smarty_internal_method_registerplugin.php' => true,
- 'smarty_internal_method_registerresource.php' => true,
- 'smarty_internal_method_setautoloadfilters.php' => true,
- 'smarty_internal_method_setdebugtemplate.php' => true,
- 'smarty_internal_method_setdefaultmodifiers.php' => true,
- 'smarty_internal_method_unloadfilter.php' => true,
- 'smarty_internal_method_unregistercacheresource.php' => true,
- 'smarty_internal_method_unregisterfilter.php' => true,
- 'smarty_internal_method_unregisterobject.php' => true,
- 'smarty_internal_method_unregisterplugin.php' => true,
- 'smarty_internal_method_unregisterresource.php' => true,
- 'smarty_internal_nocache_insert.php' => true,
- 'smarty_internal_parsetree.php' => true,
- 'smarty_internal_parsetree_code.php' => true,
- 'smarty_internal_parsetree_dq.php' => true,
- 'smarty_internal_parsetree_dqcontent.php' => true,
- 'smarty_internal_parsetree_tag.php' => true,
- 'smarty_internal_parsetree_template.php' => true,
- 'smarty_internal_parsetree_text.php' => true,
- 'smarty_internal_resource_eval.php' => true,
- 'smarty_internal_resource_extends.php' => true,
- 'smarty_internal_resource_file.php' => true,
- 'smarty_internal_resource_php.php' => true,
- 'smarty_internal_resource_registered.php' => true,
- 'smarty_internal_resource_stream.php' => true,
- 'smarty_internal_resource_string.php' => true,
- 'smarty_internal_runtime_cachemodify.php' => true,
- 'smarty_internal_runtime_cacheresourcefile.php' => true,
- 'smarty_internal_runtime_capture.php' => true,
- 'smarty_internal_runtime_codeframe.php' => true,
- 'smarty_internal_runtime_filterhandler.php' => true,
- 'smarty_internal_runtime_foreach.php' => true,
- 'smarty_internal_runtime_getincludepath.php' => true,
- 'smarty_internal_runtime_inheritance.php' => true,
- 'smarty_internal_runtime_make_nocache.php' => true,
- 'smarty_internal_runtime_tplfunction.php' => true,
- 'smarty_internal_runtime_updatecache.php' => true,
- 'smarty_internal_runtime_updatescope.php' => true,
- 'smarty_internal_runtime_writefile.php' => true,
- 'smarty_internal_smartytemplatecompiler.php' => true,
- 'smarty_internal_template.php' => true,
- 'smarty_internal_templatebase.php' => true,
- 'smarty_internal_templatecompilerbase.php' => true,
- 'smarty_internal_templatelexer.php' => true,
- 'smarty_internal_templateparser.php' => true,
- 'smarty_internal_testinstall.php' => true,
- 'smarty_internal_undefined.php' => true,
- 'smarty_resource.php' => true,
- 'smarty_resource_custom.php' => true,
- 'smarty_resource_recompiled.php' => true,
- 'smarty_resource_uncompiled.php' => true,
- 'smarty_security.php' => true,
- 'smarty_template_cached.php' => true,
- 'smarty_template_compiled.php' => true,
- 'smarty_template_config.php' => true,
- 'smarty_template_resource_base.php' => true,
- 'smarty_template_source.php' => true,
- 'smarty_undefined_variable.php' => true,
- 'smarty_variable.php' => true,);
+ $expectedSysplugins = array(
+ 'smartycompilerexception.php' => true,
+ 'smartyexception.php' => true,
+ 'smarty_cacheresource.php' => true,
+ 'smarty_cacheresource_custom.php' => true,
+ 'smarty_cacheresource_keyvaluestore.php' => true,
+ 'smarty_data.php' => true,
+ 'smarty_internal_block.php' => true,
+ 'smarty_internal_cacheresource_file.php' => true,
+ 'smarty_internal_compilebase.php' => true,
+ 'smarty_internal_compile_append.php' => true,
+ 'smarty_internal_compile_assign.php' => true,
+ 'smarty_internal_compile_block.php' => true,
+ 'smarty_internal_compile_block_child.php' => true,
+ 'smarty_internal_compile_block_parent.php' => true,
+ 'smarty_internal_compile_child.php' => true,
+ 'smarty_internal_compile_parent.php' => true,
+ 'smarty_internal_compile_break.php' => true,
+ 'smarty_internal_compile_call.php' => true,
+ 'smarty_internal_compile_capture.php' => true,
+ 'smarty_internal_compile_config_load.php' => true,
+ 'smarty_internal_compile_continue.php' => true,
+ 'smarty_internal_compile_debug.php' => true,
+ 'smarty_internal_compile_eval.php' => true,
+ 'smarty_internal_compile_extends.php' => true,
+ 'smarty_internal_compile_for.php' => true,
+ 'smarty_internal_compile_foreach.php' => true,
+ 'smarty_internal_compile_function.php' => true,
+ 'smarty_internal_compile_if.php' => true,
+ 'smarty_internal_compile_include.php' => true,
+ 'smarty_internal_compile_include_php.php' => true,
+ 'smarty_internal_compile_insert.php' => true,
+ 'smarty_internal_compile_ldelim.php' => true,
+ 'smarty_internal_compile_make_nocache.php' => true,
+ 'smarty_internal_compile_nocache.php' => true,
+ 'smarty_internal_compile_private_block_plugin.php' => true,
+ 'smarty_internal_compile_private_foreachsection.php' => true,
+ 'smarty_internal_compile_private_function_plugin.php' => true,
+ 'smarty_internal_compile_private_modifier.php' => true,
+ 'smarty_internal_compile_private_object_block_function.php' => true,
+ 'smarty_internal_compile_private_object_function.php' => true,
+ 'smarty_internal_compile_private_php.php' => true,
+ 'smarty_internal_compile_private_print_expression.php' => true,
+ 'smarty_internal_compile_private_registered_block.php' => true,
+ 'smarty_internal_compile_private_registered_function.php' => true,
+ 'smarty_internal_compile_private_special_variable.php' => true,
+ 'smarty_internal_compile_rdelim.php' => true,
+ 'smarty_internal_compile_section.php' => true,
+ 'smarty_internal_compile_setfilter.php' => true,
+ 'smarty_internal_compile_shared_inheritance.php' => true,
+ 'smarty_internal_compile_while.php' => true,
+ 'smarty_internal_configfilelexer.php' => true,
+ 'smarty_internal_configfileparser.php' => true,
+ 'smarty_internal_config_file_compiler.php' => true,
+ 'smarty_internal_data.php' => true,
+ 'smarty_internal_debug.php' => true,
+ 'smarty_internal_errorhandler.php' => true,
+ 'smarty_internal_extension_handler.php' => true,
+ 'smarty_internal_method_addautoloadfilters.php' => true,
+ 'smarty_internal_method_adddefaultmodifiers.php' => true,
+ 'smarty_internal_method_append.php' => true,
+ 'smarty_internal_method_appendbyref.php' => true,
+ 'smarty_internal_method_assignbyref.php' => true,
+ 'smarty_internal_method_assignglobal.php' => true,
+ 'smarty_internal_method_clearallassign.php' => true,
+ 'smarty_internal_method_clearallcache.php' => true,
+ 'smarty_internal_method_clearassign.php' => true,
+ 'smarty_internal_method_clearcache.php' => true,
+ 'smarty_internal_method_clearcompiledtemplate.php' => true,
+ 'smarty_internal_method_clearconfig.php' => true,
+ 'smarty_internal_method_compileallconfig.php' => true,
+ 'smarty_internal_method_compilealltemplates.php' => true,
+ 'smarty_internal_method_configload.php' => true,
+ 'smarty_internal_method_createdata.php' => true,
+ 'smarty_internal_method_getautoloadfilters.php' => true,
+ 'smarty_internal_method_getconfigvariable.php' => true,
+ 'smarty_internal_method_getconfigvars.php' => true,
+ 'smarty_internal_method_getdebugtemplate.php' => true,
+ 'smarty_internal_method_getdefaultmodifiers.php' => true,
+ 'smarty_internal_method_getglobal.php' => true,
+ 'smarty_internal_method_getregisteredobject.php' => true,
+ 'smarty_internal_method_getstreamvariable.php' => true,
+ 'smarty_internal_method_gettags.php' => true,
+ 'smarty_internal_method_gettemplatevars.php' => true,
+ 'smarty_internal_method_literals.php' => true,
+ 'smarty_internal_method_loadfilter.php' => true,
+ 'smarty_internal_method_loadplugin.php' => true,
+ 'smarty_internal_method_mustcompile.php' => true,
+ 'smarty_internal_method_registercacheresource.php' => true,
+ 'smarty_internal_method_registerclass.php' => true,
+ 'smarty_internal_method_registerdefaultconfighandler.php' => true,
+ 'smarty_internal_method_registerdefaultpluginhandler.php' => true,
+ 'smarty_internal_method_registerdefaulttemplatehandler.php' => true,
+ 'smarty_internal_method_registerfilter.php' => true,
+ 'smarty_internal_method_registerobject.php' => true,
+ 'smarty_internal_method_registerplugin.php' => true,
+ 'smarty_internal_method_registerresource.php' => true,
+ 'smarty_internal_method_setautoloadfilters.php' => true,
+ 'smarty_internal_method_setdebugtemplate.php' => true,
+ 'smarty_internal_method_setdefaultmodifiers.php' => true,
+ 'smarty_internal_method_unloadfilter.php' => true,
+ 'smarty_internal_method_unregistercacheresource.php' => true,
+ 'smarty_internal_method_unregisterfilter.php' => true,
+ 'smarty_internal_method_unregisterobject.php' => true,
+ 'smarty_internal_method_unregisterplugin.php' => true,
+ 'smarty_internal_method_unregisterresource.php' => true,
+ 'smarty_internal_nocache_insert.php' => true,
+ 'smarty_internal_parsetree.php' => true,
+ 'smarty_internal_parsetree_code.php' => true,
+ 'smarty_internal_parsetree_dq.php' => true,
+ 'smarty_internal_parsetree_dqcontent.php' => true,
+ 'smarty_internal_parsetree_tag.php' => true,
+ 'smarty_internal_parsetree_template.php' => true,
+ 'smarty_internal_parsetree_text.php' => true,
+ 'smarty_internal_resource_eval.php' => true,
+ 'smarty_internal_resource_extends.php' => true,
+ 'smarty_internal_resource_file.php' => true,
+ 'smarty_internal_resource_php.php' => true,
+ 'smarty_internal_resource_registered.php' => true,
+ 'smarty_internal_resource_stream.php' => true,
+ 'smarty_internal_resource_string.php' => true,
+ 'smarty_internal_runtime_cachemodify.php' => true,
+ 'smarty_internal_runtime_cacheresourcefile.php' => true,
+ 'smarty_internal_runtime_capture.php' => true,
+ 'smarty_internal_runtime_codeframe.php' => true,
+ 'smarty_internal_runtime_filterhandler.php' => true,
+ 'smarty_internal_runtime_foreach.php' => true,
+ 'smarty_internal_runtime_getincludepath.php' => true,
+ 'smarty_internal_runtime_inheritance.php' => true,
+ 'smarty_internal_runtime_make_nocache.php' => true,
+ 'smarty_internal_runtime_tplfunction.php' => true,
+ 'smarty_internal_runtime_updatecache.php' => true,
+ 'smarty_internal_runtime_updatescope.php' => true,
+ 'smarty_internal_runtime_writefile.php' => true,
+ 'smarty_internal_smartytemplatecompiler.php' => true,
+ 'smarty_internal_template.php' => true,
+ 'smarty_internal_templatebase.php' => true,
+ 'smarty_internal_templatecompilerbase.php' => true,
+ 'smarty_internal_templatelexer.php' => true,
+ 'smarty_internal_templateparser.php' => true,
+ 'smarty_internal_testinstall.php' => true,
+ 'smarty_internal_undefined.php' => true,
+ 'smarty_resource.php' => true,
+ 'smarty_resource_custom.php' => true,
+ 'smarty_resource_recompiled.php' => true,
+ 'smarty_resource_uncompiled.php' => true,
+ 'smarty_security.php' => true,
+ 'smarty_template_cached.php' => true,
+ 'smarty_template_compiled.php' => true,
+ 'smarty_template_config.php' => true,
+ 'smarty_template_resource_base.php' => true,
+ 'smarty_template_source.php' => true,
+ 'smarty_undefined_variable.php' => true,
+ 'smarty_variable.php' => true,
+ );
$iterator = new DirectoryIterator($source);
foreach ($iterator as $file) {
if (!$file->isDot()) {
@@ -502,7 +504,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'sysplugins' ] = $message;
}
- } else if ($errors === null) {
+ } elseif ($errors === null) {
echo "... OK\n";
}
} else {
@@ -586,7 +588,7 @@ class Smarty_Internal_TestInstall
} else {
$errors[ 'plugins' ] = $message;
}
- } else if ($errors === null) {
+ } elseif ($errors === null) {
echo "... OK\n";
}
} else {
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php
index d6f4bf62e..7df0acc2d 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php
@@ -11,7 +11,6 @@
*/
class Smarty_Internal_Undefined
{
-
/**
* Name of undefined extension class
*
@@ -32,9 +31,9 @@ class Smarty_Internal_Undefined
/**
* Wrapper for obsolete class Smarty_Internal_Runtime_ValidateCompiled
*
- * @param \Smarty_Internal_Template $tpl
- * @param array $properties special template properties
- * @param bool $cache flag if called from cache file
+ * @param \Smarty_Internal_Template $tpl
+ * @param array $properties special template properties
+ * @param bool $cache flag if called from cache file
*
* @return bool false
*/
@@ -65,4 +64,4 @@ class Smarty_Internal_Undefined
throw new SmartyException(get_class($args[ 0 ]) . "->{$name}() undefined method");
}
}
-}
\ No newline at end of file
+}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_resource.php b/vendor/smarty/smarty/libs/sysplugins/smarty_resource.php
index b76b9c783..aae7e42f7 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_resource.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_resource.php
@@ -25,24 +25,29 @@ abstract class Smarty_Resource
*
* @var array
*/
- public static $sysplugins = array('file' => 'smarty_internal_resource_file.php',
- 'string' => 'smarty_internal_resource_string.php',
- 'extends' => 'smarty_internal_resource_extends.php',
- 'stream' => 'smarty_internal_resource_stream.php',
- 'eval' => 'smarty_internal_resource_eval.php',
- 'php' => 'smarty_internal_resource_php.php');
+ public static $sysplugins = array(
+ 'file' => 'smarty_internal_resource_file.php',
+ 'string' => 'smarty_internal_resource_string.php',
+ 'extends' => 'smarty_internal_resource_extends.php',
+ 'stream' => 'smarty_internal_resource_stream.php',
+ 'eval' => 'smarty_internal_resource_eval.php',
+ 'php' => 'smarty_internal_resource_php.php'
+ );
+
/**
* Source is bypassing compiler
*
* @var boolean
*/
public $uncompiled = false;
+
/**
* Source must be recompiled on every occasion
*
* @var boolean
*/
public $recompiled = false;
+
/**
* Flag if resource does implement populateCompiledFilepath() method
*
@@ -53,8 +58,8 @@ abstract class Smarty_Resource
/**
* Load Resource Handler
*
- * @param Smarty $smarty smarty object
- * @param string $type name of the resource
+ * @param Smarty $smarty smarty object
+ * @param string $type name of the resource
*
* @throws SmartyException
* @return Smarty_Resource Resource Handler
@@ -82,9 +87,13 @@ abstract class Smarty_Resource
if (class_exists($_resource_class, false)) {
return $smarty->_cache[ 'resource_handlers' ][ $type ] = new $_resource_class();
} else {
- $smarty->registerResource($type,
- array("smarty_resource_{$type}_source", "smarty_resource_{$type}_timestamp",
- "smarty_resource_{$type}_secure", "smarty_resource_{$type}_trusted"));
+ $smarty->registerResource(
+ $type,
+ array(
+ "smarty_resource_{$type}_source", "smarty_resource_{$type}_timestamp",
+ "smarty_resource_{$type}_secure", "smarty_resource_{$type}_trusted"
+ )
+ );
// give it another try, now that the resource is registered properly
return self::load($smarty, $type);
}
@@ -105,10 +114,11 @@ abstract class Smarty_Resource
/**
* extract resource_type and resource_name from template_resource and config_resource
+ *
* @note "C:/foo.tpl" was forced to file resource up till Smarty 3.1.3 (including).
*
- * @param string $resource_name template_resource or config_resource to parse
- * @param string $default_resource the default resource_type defined in $smarty
+ * @param string $resource_name template_resource or config_resource to parse
+ * @param string $default_resource the default resource_type defined in $smarty
*
* @return array with parsed resource name and type
*/
@@ -129,8 +139,9 @@ abstract class Smarty_Resource
/**
* modify template_resource according to resource handlers specifications
*
- * @param \Smarty_Internal_Template|\Smarty $obj Smarty instance
- * @param string $template_resource template_resource to extract resource handler and name of
+ * @param \Smarty_Internal_Template|\Smarty $obj Smarty instance
+ * @param string $template_resource template_resource to extract resource handler and
+ * name of
*
* @return string unique resource name
* @throws \SmartyException
@@ -143,8 +154,8 @@ abstract class Smarty_Resource
$resource = Smarty_Resource::load($smarty, $type);
// go relative to a given template?
$_file_is_dotted = $name[ 0 ] === '.' && ($name[ 1 ] === '.' || $name[ 1 ] === '/');
- if ($obj->_isTplObj() && $_file_is_dotted &&
- ($obj->source->type === 'file' || $obj->parent->source->type === 'extends')
+ if ($obj->_isTplObj() && $_file_is_dotted
+ && ($obj->source->type === 'file' || $obj->parent->source->type === 'extends')
) {
$name = $smarty->_realpath(dirname($obj->parent->source->filepath) . DIRECTORY_SEPARATOR . $name);
}
@@ -156,24 +167,25 @@ abstract class Smarty_Resource
* wrapper for backward compatibility to versions < 3.1.22
* Either [$_template] or [$smarty, $template_resource] must be specified
*
- * @param Smarty_Internal_Template $_template template object
- * @param Smarty $smarty smarty object
- * @param string $template_resource resource identifier
+ * @param Smarty_Internal_Template $_template template object
+ * @param Smarty $smarty smarty object
+ * @param string $template_resource resource identifier
*
* @return \Smarty_Template_Source Source Object
* @throws \SmartyException
*/
- public static function source(Smarty_Internal_Template $_template = null,
- Smarty $smarty = null,
- $template_resource = null)
- {
+ public static function source(
+ Smarty_Internal_Template $_template = null,
+ Smarty $smarty = null,
+ $template_resource = null
+ ) {
return Smarty_Template_Source::load($_template, $smarty, $template_resource);
}
/**
* Load template's source into current template object
*
- * @param Smarty_Template_Source $source source object
+ * @param Smarty_Template_Source $source source object
*
* @return string template source
* @throws SmartyException if source cannot be loaded
@@ -201,9 +213,9 @@ abstract class Smarty_Resource
/**
* modify resource_name according to resource handlers specifications
*
- * @param Smarty $smarty Smarty instance
- * @param string $resource_name resource_name to make unique
- * @param boolean $isConfig flag for config resource
+ * @param Smarty $smarty Smarty instance
+ * @param string $resource_name resource_name to make unique
+ * @param boolean $isConfig flag for config resource
*
* @return string unique resource name
*/
@@ -228,11 +240,10 @@ abstract class Smarty_Resource
*
* @return bool
*/
-
/**
* Determine basename for compiled filename
*
- * @param Smarty_Template_Source $source source object
+ * @param Smarty_Template_Source $source source object
*
* @return string resource's basename
*/
@@ -249,4 +260,3 @@ abstract class Smarty_Resource
return true;
}
}
-
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php b/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php
index 77f619eca..8d66be3ae 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php
@@ -30,7 +30,7 @@ abstract class Smarty_Resource_Custom extends Smarty_Resource
* {@internal implementing this method is optional.
* Only implement it if modification times can be accessed faster than loading the complete template source.}}
*
- * @param string $name template name
+ * @param string $name template name
*
* @return integer|boolean timestamp (epoch) the template was modified, or false if not found
*/
@@ -47,9 +47,8 @@ abstract class Smarty_Resource_Custom extends Smarty_Resource
*/
public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null)
{
- $source->filepath = $source->type . ':' . substr(preg_replace('/[^A-Za-z0-9.]/','',$source->name),0,25);
+ $source->filepath = $source->type . ':' . substr(preg_replace('/[^A-Za-z0-9.]/', '', $source->name), 0, 25);
$source->uid = sha1($source->type . ':' . $source->name);
-
$mtime = $this->fetchTimestamp($source->name);
if ($mtime !== null) {
$source->timestamp = $mtime;
@@ -66,7 +65,7 @@ abstract class Smarty_Resource_Custom extends Smarty_Resource
/**
* Load template's source into current template object
*
- * @param Smarty_Template_Source $source source object
+ * @param Smarty_Template_Source $source source object
*
* @return string template source
* @throws SmartyException if source cannot be loaded
@@ -77,19 +76,18 @@ abstract class Smarty_Resource_Custom extends Smarty_Resource
if (isset($content)) {
return $content;
}
-
throw new SmartyException("Unable to read template {$source->type} '{$source->name}'");
}
/**
* Determine basename for compiled filename
*
- * @param Smarty_Template_Source $source source object
+ * @param Smarty_Template_Source $source source object
*
* @return string resource's basename
*/
public function getBasename(Smarty_Template_Source $source)
{
- return basename(substr(preg_replace('/[^A-Za-z0-9.]/','',$source->name),0,25));
+ return basename(substr(preg_replace('/[^A-Za-z0-9.]/', '', $source->name), 0, 25));
}
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php b/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php
index 322cdabfa..760c4dd33 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php
@@ -50,8 +50,7 @@ abstract class Smarty_Resource_Recompiled extends Smarty_Resource
// call compiler
try {
eval('?>' . $_smarty_tpl->compiler->compileTemplate($_smarty_tpl));
- }
- catch (Exception $e) {
+ } catch (Exception $e) {
unset($_smarty_tpl->compiler);
while (ob_get_level() > $level) {
ob_end_clean();
@@ -68,8 +67,8 @@ abstract class Smarty_Resource_Recompiled extends Smarty_Resource
/**
* populate Compiled Object with compiled filepath
*
- * @param Smarty_Template_Compiled $compiled compiled object
- * @param Smarty_Internal_Template $_template template object
+ * @param Smarty_Template_Compiled $compiled compiled object
+ * @param Smarty_Internal_Template $_template template object
*
* @return void
*/
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_security.php b/vendor/smarty/smarty/libs/sysplugins/smarty_security.php
index 126f6fb46..441a7e284 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_security.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_security.php
@@ -6,12 +6,12 @@
* @subpackage Security
* @author Uwe Tews
*/
-
-/*
+/**
* FIXME: Smarty_Security API
* - getter and setter instead of public properties would allow cultivating an internal cache properly
- * - current implementation of isTrustedResourceDir() assumes that Smarty::$template_dir and Smarty::$config_dir are immutable
- * the cache is killed every time either of the variables change. That means that two distinct Smarty objects with differing
+ * - current implementation of isTrustedResourceDir() assumes that Smarty::$template_dir and Smarty::$config_dir
+ * are immutable the cache is killed every time either of the variables change. That means that two distinct
+ * Smarty objects with differing
* $template_dir or $config_dir should NOT share the same Smarty_Security instance,
* as this would lead to (severe) performance penalty! how should this be handled?
*/
@@ -258,63 +258,54 @@ class Smarty_Security
public function __construct($smarty)
{
$this->smarty = $smarty;
- $this->smarty->_cache[ 'template_dir_new' ] = true;
- $this->smarty->_cache[ 'config_dir_new' ] = true;
}
/**
* Check if PHP function is trusted.
*
- * @param string $function_name
- * @param object $compiler compiler object
+ * @param string $function_name
+ * @param object $compiler compiler object
*
* @return boolean true if function is trusted
- * @throws SmartyCompilerException if php function is not trusted
*/
public function isTrustedPhpFunction($function_name, $compiler)
{
- if (isset($this->php_functions) &&
- (empty($this->php_functions) || in_array($function_name, $this->php_functions))
+ if (isset($this->php_functions)
+ && (empty($this->php_functions) || in_array($function_name, $this->php_functions))
) {
return true;
}
-
$compiler->trigger_template_error("PHP function '{$function_name}' not allowed by security setting");
-
return false; // should not, but who knows what happens to the compiler in the future?
}
/**
* Check if static class is trusted.
*
- * @param string $class_name
- * @param object $compiler compiler object
+ * @param string $class_name
+ * @param object $compiler compiler object
*
* @return boolean true if class is trusted
- * @throws SmartyCompilerException if static class is not trusted
*/
public function isTrustedStaticClass($class_name, $compiler)
{
- if (isset($this->static_classes) &&
- (empty($this->static_classes) || in_array($class_name, $this->static_classes))
+ if (isset($this->static_classes)
+ && (empty($this->static_classes) || in_array($class_name, $this->static_classes))
) {
return true;
}
-
$compiler->trigger_template_error("access to static class '{$class_name}' not allowed by security setting");
-
return false; // should not, but who knows what happens to the compiler in the future?
}
/**
* Check if static class method/property is trusted.
*
- * @param string $class_name
- * @param string $params
- * @param object $compiler compiler object
+ * @param string $class_name
+ * @param string $params
+ * @param object $compiler compiler object
*
* @return boolean true if class method is trusted
- * @throws SmartyCompilerException if static class method is not trusted
*/
public function isTrustedStaticClassAccess($class_name, $params, $compiler)
{
@@ -335,8 +326,8 @@ class Smarty_Security
// fall back
return $this->isTrustedStaticClass($class_name, $compiler);
}
- if (isset($allowed[ $class_name ]) &&
- (empty($allowed[ $class_name ]) || in_array($name, $allowed[ $class_name ]))
+ if (isset($allowed[ $class_name ])
+ && (empty($allowed[ $class_name ]) || in_array($name, $allowed[ $class_name ]))
) {
return true;
}
@@ -348,42 +339,43 @@ class Smarty_Security
/**
* Check if PHP modifier is trusted.
*
- * @param string $modifier_name
- * @param object $compiler compiler object
+ * @param string $modifier_name
+ * @param object $compiler compiler object
*
* @return boolean true if modifier is trusted
- * @throws SmartyCompilerException if modifier is not trusted
*/
public function isTrustedPhpModifier($modifier_name, $compiler)
{
- if (isset($this->php_modifiers) &&
- (empty($this->php_modifiers) || in_array($modifier_name, $this->php_modifiers))
+ if (isset($this->php_modifiers)
+ && (empty($this->php_modifiers) || in_array($modifier_name, $this->php_modifiers))
) {
return true;
}
-
$compiler->trigger_template_error("modifier '{$modifier_name}' not allowed by security setting");
-
return false; // should not, but who knows what happens to the compiler in the future?
}
/**
* Check if tag is trusted.
*
- * @param string $tag_name
- * @param object $compiler compiler object
+ * @param string $tag_name
+ * @param object $compiler compiler object
*
* @return boolean true if tag is trusted
- * @throws SmartyCompilerException if modifier is not trusted
*/
public function isTrustedTag($tag_name, $compiler)
{
// check for internal always required tags
- if (in_array($tag_name,
- array('assign', 'call', 'private_filter', 'private_block_plugin', 'private_function_plugin',
- 'private_object_block_function', 'private_object_function', 'private_registered_function',
- 'private_registered_block', 'private_special_variable', 'private_print_expression',
- 'private_modifier'))) {
+ if (in_array(
+ $tag_name,
+ array(
+ 'assign', 'call', 'private_filter', 'private_block_plugin', 'private_function_plugin',
+ 'private_object_block_function', 'private_object_function', 'private_registered_function',
+ 'private_registered_block', 'private_special_variable', 'private_print_expression',
+ 'private_modifier'
+ )
+ )
+ ) {
return true;
}
// check security settings
@@ -398,39 +390,38 @@ class Smarty_Security
} else {
$compiler->trigger_template_error("tag '{$tag_name}' not allowed by security setting", null, true);
}
-
return false; // should not, but who knows what happens to the compiler in the future?
}
/**
* Check if special $smarty variable is trusted.
*
- * @param string $var_name
- * @param object $compiler compiler object
+ * @param string $var_name
+ * @param object $compiler compiler object
*
* @return boolean true if tag is trusted
- * @throws SmartyCompilerException if modifier is not trusted
*/
public function isTrustedSpecialSmartyVar($var_name, $compiler)
{
if (!in_array($var_name, $this->disabled_special_smarty_vars)) {
return true;
} else {
- $compiler->trigger_template_error("special variable '\$smarty.{$var_name}' not allowed by security setting",
- null, true);
+ $compiler->trigger_template_error(
+ "special variable '\$smarty.{$var_name}' not allowed by security setting",
+ null,
+ true
+ );
}
-
return false; // should not, but who knows what happens to the compiler in the future?
}
/**
* Check if modifier plugin is trusted.
*
- * @param string $modifier_name
- * @param object $compiler compiler object
+ * @param string $modifier_name
+ * @param object $compiler compiler object
*
* @return boolean true if tag is trusted
- * @throws SmartyCompilerException if modifier is not trusted
*/
public function isTrustedModifier($modifier_name, $compiler)
{
@@ -443,26 +434,31 @@ class Smarty_Security
if (empty($this->disabled_modifiers) || !in_array($modifier_name, $this->disabled_modifiers)) {
return true;
} else {
- $compiler->trigger_template_error("modifier '{$modifier_name}' disabled by security setting", null,
- true);
+ $compiler->trigger_template_error(
+ "modifier '{$modifier_name}' disabled by security setting",
+ null,
+ true
+ );
}
- } elseif (in_array($modifier_name, $this->allowed_modifiers) &&
- !in_array($modifier_name, $this->disabled_modifiers)
+ } elseif (in_array($modifier_name, $this->allowed_modifiers)
+ && !in_array($modifier_name, $this->disabled_modifiers)
) {
return true;
} else {
- $compiler->trigger_template_error("modifier '{$modifier_name}' not allowed by security setting", null,
- true);
+ $compiler->trigger_template_error(
+ "modifier '{$modifier_name}' not allowed by security setting",
+ null,
+ true
+ );
}
-
return false; // should not, but who knows what happens to the compiler in the future?
}
/**
* Check if constants are enabled or trusted
*
- * @param string $const constant name
- * @param object $compiler compiler object
+ * @param string $const constant name
+ * @param object $compiler compiler object
*
* @return bool
*/
@@ -488,7 +484,7 @@ class Smarty_Security
/**
* Check if stream is trusted.
*
- * @param string $stream_name
+ * @param string $stream_name
*
* @return boolean true if stream is trusted
* @throws SmartyException if stream is not trusted
@@ -498,14 +494,13 @@ class Smarty_Security
if (isset($this->streams) && (empty($this->streams) || in_array($stream_name, $this->streams))) {
return true;
}
-
throw new SmartyException("stream '{$stream_name}' not allowed by security setting");
}
/**
* Check if directory of file resource is trusted.
*
- * @param string $filepath
+ * @param string $filepath
* @param null|bool $isConfig
*
* @return bool true if directory is trusted
@@ -514,38 +509,35 @@ class Smarty_Security
public function isTrustedResourceDir($filepath, $isConfig = null)
{
if ($this->_include_path_status !== $this->smarty->use_include_path) {
- $_dir = $this->smarty->use_include_path ? $this->smarty->ext->_getIncludePath->getIncludePathDirs($this->smarty) : array();
+ $_dir =
+ $this->smarty->use_include_path ? $this->smarty->ext->_getIncludePath->getIncludePathDirs($this->smarty) : array();
if ($this->_include_dir !== $_dir) {
$this->_updateResourceDir($this->_include_dir, $_dir);
$this->_include_dir = $_dir;
}
$this->_include_path_status = $this->smarty->use_include_path;
}
- if ($isConfig !== true) {
- $_dir = $this->smarty->getTemplateDir();
- if ($this->_template_dir !== $_dir) {
- $this->_updateResourceDir($this->_template_dir, $_dir);
- $this->_template_dir = $_dir;
- }
+ $_dir = $this->smarty->getTemplateDir();
+ if ($this->_template_dir !== $_dir) {
+ $this->_updateResourceDir($this->_template_dir, $_dir);
+ $this->_template_dir = $_dir;
}
- if ($isConfig !== false) {
- $_dir = $this->smarty->getConfigDir();
- if ($this->_config_dir !== $_dir) {
- $this->_updateResourceDir($this->_config_dir, $_dir);
- $this->_config_dir = $_dir;
- }
+ $_dir = $this->smarty->getConfigDir();
+ if ($this->_config_dir !== $_dir) {
+ $this->_updateResourceDir($this->_config_dir, $_dir);
+ $this->_config_dir = $_dir;
}
if ($this->_secure_dir !== $this->secure_dir) {
$this->secure_dir = (array)$this->secure_dir;
- foreach($this->secure_dir as $k => $d) {
- $this->secure_dir[$k] = $this->smarty->_realpath($d.DIRECTORY_SEPARATOR,true);
+ foreach ($this->secure_dir as $k => $d) {
+ $this->secure_dir[ $k ] = $this->smarty->_realpath($d . DIRECTORY_SEPARATOR, true);
}
$this->_updateResourceDir($this->_secure_dir, $this->secure_dir);
$this->_secure_dir = $this->secure_dir;
}
- $addPath = $this->_checkDir($filepath, $this->_resource_dir);
+ $addPath = $this->_checkDir($filepath, $this->_resource_dir);
if ($addPath !== false) {
- $this->_resource_dir = array_merge($this->_resource_dir, $addPath);
+ $this->_resource_dir = array_merge($this->_resource_dir, $addPath);
}
return true;
}
@@ -556,11 +548,11 @@ class Smarty_Security
* So "http://username:password@hello.world.example.org:8080/some-path?some=query-string"
* is reduced to "http://hello.world.example.org" prior to applying the patters from {@link $trusted_uri}.
*
- * @param string $uri
+ * @param string $uri
*
* @return boolean true if URI is trusted
* @throws SmartyException if URI is not trusted
- * @uses $trusted_uri for list of patterns to match against $uri
+ * @uses $trusted_uri for list of patterns to match against $uri
*/
public function isTrustedUri($uri)
{
@@ -573,14 +565,13 @@ class Smarty_Security
}
}
}
-
throw new SmartyException("URI '{$uri}' not allowed by security setting");
}
/**
* Check if directory of file resource is trusted.
*
- * @param string $filepath
+ * @param string $filepath
*
* @return boolean true if directory is trusted
* @throws SmartyException if PHP directory is not trusted
@@ -590,22 +581,20 @@ class Smarty_Security
if (empty($this->trusted_dir)) {
throw new SmartyException("directory '{$filepath}' not allowed by security setting (no trusted_dir specified)");
}
-
// check if index is outdated
if (!$this->_trusted_dir || $this->_trusted_dir !== $this->trusted_dir) {
$this->_php_resource_dir = array();
-
$this->_trusted_dir = $this->trusted_dir;
- foreach ((array) $this->trusted_dir as $directory) {
- $directory = $this->smarty->_realpath($directory . DIRECTORY_SEPARATOR, true);
+ foreach ((array)$this->trusted_dir as $directory) {
+ $directory = $this->smarty->_realpath($directory . '/', true);
$this->_php_resource_dir[ $directory ] = true;
}
}
- $addPath = $this->_checkDir($filepath, $this->_php_resource_dir);
+ $addPath = $this->_checkDir($filepath, $this->_php_resource_dir);
if ($addPath !== false) {
- $this->_php_resource_dir = array_merge($this->_php_resource_dir, $addPath);
+ $this->_php_resource_dir = array_merge($this->_php_resource_dir, $addPath);
}
- return true;
+ return true;
}
/**
@@ -614,21 +603,23 @@ class Smarty_Security
* @param array $oldDir
* @param array $newDir
*/
- private function _updateResourceDir($oldDir, $newDir) {
+ private function _updateResourceDir($oldDir, $newDir)
+ {
foreach ($oldDir as $directory) {
- $directory = $this->smarty->_realpath($directory, true);
+ // $directory = $this->smarty->_realpath($directory, true);
$length = strlen($directory);
foreach ($this->_resource_dir as $dir) {
- if (substr($dir, 0,$length) === $directory) {
+ if (substr($dir, 0, $length) === $directory) {
unset($this->_resource_dir[ $dir ]);
}
}
}
foreach ($newDir as $directory) {
- $directory = $this->smarty->_realpath($directory, true);
+ // $directory = $this->smarty->_realpath($directory, true);
$this->_resource_dir[ $directory ] = true;
}
}
+
/**
* Check if file is inside a valid directory
*
@@ -640,37 +631,34 @@ class Smarty_Security
*/
private function _checkDir($filepath, $dirs)
{
- $directory = dirname($filepath) . DIRECTORY_SEPARATOR;
- if (isset($dirs[ $directory ])) {
- return false;
- }
- $filepath = $this->smarty->_realpath($filepath, true);
- $directory = dirname($filepath) . DIRECTORY_SEPARATOR;
+ $directory = dirname($this->smarty->_realpath($filepath, true)) . DIRECTORY_SEPARATOR;
$_directory = array();
- while (true) {
- // test if the directory is trusted
- if (isset($dirs[ $directory ])) {
- return $_directory;
+ if (!preg_match('#[\\\\/][.][.][\\\\/]#', $directory)) {
+ while (true) {
+ // test if the directory is trusted
+ if (isset($dirs[ $directory ])) {
+ return $_directory;
+ }
+ // abort if we've reached root
+ if (!preg_match('#[\\\\/][^\\\\/]+[\\\\/]$#', $directory)) {
+ // give up
+ break;
+ }
+ // remember the directory to add it to _resource_dir in case we're successful
+ $_directory[ $directory ] = true;
+ // bubble up one level
+ $directory = preg_replace('#[\\\\/][^\\\\/]+[\\\\/]$#', DIRECTORY_SEPARATOR, $directory);
}
- // abort if we've reached root
- if (!preg_match('#[\\\/][^\\\/]+[\\\/]$#', $directory)) {
- break;
- }
- // remember the directory to add it to _resource_dir in case we're successful
- $_directory[ $directory ] = true;
- // bubble up one level
- $directory = preg_replace('#[\\\/][^\\\/]+[\\\/]$#', DIRECTORY_SEPARATOR, $directory);
}
-
// give up
- throw new SmartyException("directory '{$filepath}' not allowed by security setting");
+ throw new SmartyException(sprintf('Smarty Security: not trusted file path \'%s\' ', $filepath));
}
/**
* Loads security class and enables security
*
- * @param \Smarty $smarty
- * @param string|Smarty_Security $security_class if a string is used, it must be class-name
+ * @param \Smarty $smarty
+ * @param string|Smarty_Security $security_class if a string is used, it must be class-name
*
* @return \Smarty current Smarty instance for chaining
* @throws \SmartyException when an invalid class name is provided
@@ -695,6 +683,7 @@ class Smarty_Security
}
return $smarty;
}
+
/**
* Start template processing
*
@@ -704,19 +693,18 @@ class Smarty_Security
*/
public function startTemplate($template)
{
- if ($this->max_template_nesting > 0 && $this->_current_template_nesting ++ >= $this->max_template_nesting) {
+ if ($this->max_template_nesting > 0 && $this->_current_template_nesting++ >= $this->max_template_nesting) {
throw new SmartyException("maximum template nesting level of '{$this->max_template_nesting}' exceeded when calling '{$template->template_resource}'");
}
}
/**
* Exit template processing
- *
*/
public function endTemplate()
{
if ($this->max_template_nesting > 0) {
- $this->_current_template_nesting --;
+ $this->_current_template_nesting--;
}
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_template_cached.php b/vendor/smarty/smarty/libs/sysplugins/smarty_template_cached.php
index 45c83c895..508d27f36 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_template_cached.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_template_cached.php
@@ -92,7 +92,7 @@ class Smarty_Template_Cached extends Smarty_Template_Resource_Base
$this->cache_id = $_template->cache_id;
$this->source = $_template->source;
if (!class_exists('Smarty_CacheResource', false)) {
- require SMARTY_SYSPLUGINS_DIR . 'smarty_cacheresource.php';
+ include SMARTY_SYSPLUGINS_DIR . 'smarty_cacheresource.php';
}
$this->handler = Smarty_CacheResource::load($_template->smarty);
}
@@ -102,7 +102,7 @@ class Smarty_Template_Cached extends Smarty_Template_Resource_Base
*
* @return Smarty_Template_Cached
*/
- static function load(Smarty_Internal_Template $_template)
+ public static function load(Smarty_Internal_Template $_template)
{
$_template->cached = new Smarty_Template_Cached($_template);
$_template->cached->handler->populate($_template->cached, $_template);
@@ -118,7 +118,7 @@ class Smarty_Template_Cached extends Smarty_Template_Resource_Base
* Render cache template
*
* @param \Smarty_Internal_Template $_template
- * @param bool $no_output_filter
+ * @param bool $no_output_filter
*
* @throws \Exception
*/
@@ -163,14 +163,14 @@ class Smarty_Template_Cached extends Smarty_Template_Resource_Base
} else {
$this->valid = true;
}
- if ($this->valid && $_template->caching === Smarty::CACHING_LIFETIME_CURRENT &&
- $_template->cache_lifetime >= 0 && time() > ($this->timestamp + $_template->cache_lifetime)
+ if ($this->valid && $_template->caching === Smarty::CACHING_LIFETIME_CURRENT
+ && $_template->cache_lifetime >= 0 && time() > ($this->timestamp + $_template->cache_lifetime)
) {
// lifetime expired
$this->valid = false;
}
- if ($this->valid && $_template->compile_check === Smarty::COMPILECHECK_ON &&
- $_template->source->getTimeStamp() > $this->timestamp
+ if ($this->valid && $_template->compile_check === Smarty::COMPILECHECK_ON
+ && $_template->source->getTimeStamp() > $this->timestamp
) {
$this->valid = false;
}
@@ -204,9 +204,9 @@ class Smarty_Template_Cached extends Smarty_Template_Resource_Base
} else {
return $this->valid;
}
- if ($this->valid && $_template->caching === Smarty::CACHING_LIFETIME_SAVED &&
- $_template->cached->cache_lifetime >= 0 &&
- (time() > ($_template->cached->timestamp + $_template->cached->cache_lifetime))
+ if ($this->valid && $_template->caching === Smarty::CACHING_LIFETIME_SAVED
+ && $_template->cached->cache_lifetime >= 0
+ && (time() > ($_template->cached->timestamp + $_template->cached->cache_lifetime))
) {
$this->valid = false;
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php b/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php
index 7ca2ebcb4..37d8f0a9e 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php
@@ -7,7 +7,7 @@
* @package Smarty
* @subpackage TemplateResources
* @author Rodney Rehm
- * @property string $content compiled content
+ * @property string $content compiled content
*/
class Smarty_Template_Compiled extends Smarty_Template_Resource_Base
{
@@ -21,11 +21,11 @@ class Smarty_Template_Compiled extends Smarty_Template_Resource_Base
/**
* get a Compiled Object of this source
*
- * @param Smarty_Internal_Template $_template template object
+ * @param Smarty_Internal_Template $_template template object
*
* @return Smarty_Template_Compiled compiled object
*/
- static function load($_template)
+ public static function load($_template)
{
$compiled = new Smarty_Template_Compiled();
if ($_template->source->handler->hasCompiledHandler) {
@@ -134,9 +134,9 @@ class Smarty_Template_Compiled extends Smarty_Template_Resource_Base
$smarty = &$_smarty_tpl->smarty;
if ($source->handler->recompiled) {
$source->handler->process($_smarty_tpl);
- } else if (!$source->handler->uncompiled) {
- if (!$this->exists || $smarty->force_compile ||
- ($_smarty_tpl->compile_check && $source->getTimeStamp() > $this->getTimeStamp())
+ } elseif (!$source->handler->uncompiled) {
+ if (!$this->exists || $smarty->force_compile
+ || ($_smarty_tpl->compile_check && $source->getTimeStamp() > $this->getTimeStamp())
) {
$this->compileTemplateSource($_smarty_tpl);
$compileCheck = $_smarty_tpl->compile_check;
@@ -145,7 +145,7 @@ class Smarty_Template_Compiled extends Smarty_Template_Resource_Base
$_smarty_tpl->compile_check = $compileCheck;
} else {
$_smarty_tpl->mustCompile = true;
- @include($this->filepath);
+ @include $this->filepath;
if ($_smarty_tpl->mustCompile) {
$this->compileTemplateSource($_smarty_tpl);
$compileCheck = $_smarty_tpl->compile_check;
@@ -182,8 +182,7 @@ class Smarty_Template_Compiled extends Smarty_Template_Resource_Base
// call compiler
$_template->loadCompiler();
$this->write($_template, $_template->compiler->compileTemplate($_template));
- }
- catch (Exception $e) {
+ } catch (Exception $e) {
// restore old timestamp in case of error
if ($saved_timestamp && is_file($this->filepath)) {
touch($this->filepath, $saved_timestamp);
@@ -246,13 +245,13 @@ class Smarty_Template_Compiled extends Smarty_Template_Resource_Base
&& (!function_exists('ini_get') || strlen(ini_get("opcache.restrict_api")) < 1)
) {
opcache_invalidate($this->filepath, true);
- } else if (function_exists('apc_compile_file')) {
+ } elseif (function_exists('apc_compile_file')) {
apc_compile_file($this->filepath);
}
if (defined('HHVM_VERSION')) {
eval('?>' . file_get_contents($this->filepath));
} else {
- include($this->filepath);
+ include $this->filepath;
}
}
}
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_template_config.php b/vendor/smarty/smarty/libs/sysplugins/smarty_template_config.php
index 44cdba6fd..850ae32e7 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_template_config.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_template_config.php
@@ -14,7 +14,6 @@
* @package Smarty
* @subpackage TemplateResources
* @author Uwe Tews
- *
*/
class Smarty_Template_Config extends Smarty_Template_Source
{
@@ -64,16 +63,18 @@ class Smarty_Template_Config extends Smarty_Template_Source
* initialize Source Object for given resource
* Either [$_template] or [$smarty, $template_resource] must be specified
*
- * @param Smarty_Internal_Template $_template template object
- * @param Smarty $smarty smarty object
- * @param string $template_resource resource identifier
+ * @param Smarty_Internal_Template $_template template object
+ * @param Smarty $smarty smarty object
+ * @param string $template_resource resource identifier
*
* @return Smarty_Template_Config Source Object
* @throws SmartyException
*/
- public static function load(Smarty_Internal_Template $_template = null, Smarty $smarty = null,
- $template_resource = null)
- {
+ public static function load(
+ Smarty_Internal_Template $_template = null,
+ Smarty $smarty = null,
+ $template_resource = null
+ ) {
static $_incompatible_resources = array('extends' => true, 'php' => true);
if ($_template) {
$smarty = $_template->smarty;
@@ -82,11 +83,11 @@ class Smarty_Template_Config extends Smarty_Template_Source
if (empty($template_resource)) {
throw new SmartyException('Source: Missing name');
}
- // parse resource_name, load resource handler
+ // parse resource_name, load resource handler
list($name, $type) = Smarty_Resource::parseResourceName($template_resource, $smarty->default_config_type);
// make sure configs are not loaded via anything smarty can't handle
if (isset($_incompatible_resources[ $type ])) {
- throw new SmartyException ("Unable to use resource '{$type}' for config");
+ throw new SmartyException("Unable to use resource '{$type}' for config");
}
$source = new Smarty_Template_Config($smarty, $template_resource, $type, $name);
$source->handler->populate($source, $_template);
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php b/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php
index 951e02af3..52bfba252 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php
@@ -125,8 +125,7 @@ abstract class Smarty_Template_Resource_Base
call_user_func($callback, $_template);
}
$_template->isRenderingCache = false;
- }
- catch (Exception $e) {
+ } catch (Exception $e) {
$_template->isRenderingCache = false;
while (ob_get_level() > $level) {
ob_end_clean();
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php b/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php
index 4868706c8..16b47f23c 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php
@@ -7,7 +7,6 @@
* @package Smarty
* @subpackage TemplateResources
* @author Rodney Rehm
- *
*/
class Smarty_Template_Source
{
@@ -131,7 +130,7 @@ class Smarty_Template_Source
* @param string $type type of resource
* @param string $name resource name
*
- * @throws \SmartyException
+ * @throws \SmartyException
* @internal param \Smarty_Resource $handler Resource Handler this source object communicates with
*/
public function __construct(Smarty $smarty, $resource, $type, $name)
@@ -149,16 +148,18 @@ class Smarty_Template_Source
* initialize Source Object for given resource
* Either [$_template] or [$smarty, $template_resource] must be specified
*
- * @param Smarty_Internal_Template $_template template object
- * @param Smarty $smarty smarty object
- * @param string $template_resource resource identifier
+ * @param Smarty_Internal_Template $_template template object
+ * @param Smarty $smarty smarty object
+ * @param string $template_resource resource identifier
*
* @return Smarty_Template_Source Source Object
* @throws SmartyException
*/
- public static function load(Smarty_Internal_Template $_template = null, Smarty $smarty = null,
- $template_resource = null)
- {
+ public static function load(
+ Smarty_Internal_Template $_template = null,
+ Smarty $smarty = null,
+ $template_resource = null
+ ) {
if ($_template) {
$smarty = $_template->smarty;
$template_resource = $_template->template_resource;
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_undefined_variable.php b/vendor/smarty/smarty/libs/sysplugins/smarty_undefined_variable.php
index e064f6551..6d31a8a05 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_undefined_variable.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_undefined_variable.php
@@ -12,13 +12,13 @@ class Smarty_Undefined_Variable extends Smarty_Variable
/**
* Returns null for not existing properties
*
- * @param string $name
+ * @param string $name
*
* @return null
*/
public function __get($name)
{
- return null;
+ return null;
}
/**
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php b/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php
index 0b17bc7cf..914d99bd7 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php
@@ -42,7 +42,6 @@ class Smarty_Variable
*/
public function __toString()
{
- return (string) $this->value;
+ return (string)$this->value;
}
}
-
diff --git a/view/es-es/hstrings.php b/view/es-es/hstrings.php
index 6daac9592..2024504a1 100644
--- a/view/es-es/hstrings.php
+++ b/view/es-es/hstrings.php
@@ -5,7 +5,7 @@ function string_plural_select_es_es($n){
return ($n != 1);;
}}
App::$rtl = 0;
-App::$strings["plural_function_code"] = "(n != 1);";
+App::$strings["plural_function_code"] = "(n != 1)";
App::$strings["Can view my channel stream and posts"] = "Pueden verse la actividad y publicaciones de mi canal";
App::$strings["Can send me their channel stream and posts"] = "Se me pueden enviar entradas y contenido de un canal";
App::$strings["Can view my default channel profile"] = "Puede verse mi perfil de canal predeterminado.";
diff --git a/view/it/hmessages.po b/view/it/hmessages.po
index fc4772846..94911bc20 100644
--- a/view/it/hmessages.po
+++ b/view/it/hmessages.po
@@ -5849,7 +5849,7 @@ msgstr "Impossibile creare il menù."
#: ../../Zotlabs/Module/Menu.php:98 ../../Zotlabs/Module/Menu.php:110
msgid "Menu Name"
-msgstr "Nome del menu"
+msgstr "Nome del menù"
#: ../../Zotlabs/Module/Menu.php:98
msgid "Unique name (not visible on webpage) - required"
@@ -6543,7 +6543,7 @@ msgstr "Homepage del progetto"
#: ../../Zotlabs/Module/Siteinfo.php:32
msgid "Developer homepage"
-msgstr "Homepege dello sviluppatore"
+msgstr "Homepage dello sviluppatore"
#: ../../Zotlabs/Module/Ratings.php:70
msgid "No ratings"
@@ -6623,7 +6623,7 @@ msgstr "Importazione completata."
msgid ""
"Channel name changes are not allowed within 48 hours of changing the account"
" password."
-msgstr "Non è possibile cambiare il nome del canale entro le 48 dal cambio della password dell'account."
+msgstr "Non è possibile cambiare il nome del canale entro le 48 ore dal cambio della password dell'account."
#: ../../Zotlabs/Module/Changeaddr.php:46 ../../include/channel.php:214
#: ../../include/channel.php:599
diff --git a/view/it/hstrings.php b/view/it/hstrings.php
index 42fc58347..1f5527946 100644
--- a/view/it/hstrings.php
+++ b/view/it/hstrings.php
@@ -1393,7 +1393,7 @@ App::$strings["This site is powered by \$Projectname"] = "Questo sito è costrui
App::$strings["Federated and decentralised networking and identity services provided by Zot"] = "";
App::$strings["Version %s"] = "Versione %s";
App::$strings["Project homepage"] = "Homepage del progetto";
-App::$strings["Developer homepage"] = "Homepege dello sviluppatore";
+App::$strings["Developer homepage"] = "Homepage dello sviluppatore";
App::$strings["No ratings"] = "Nessuna valutazione";
App::$strings["Ratings"] = "Valutazioni";
App::$strings["Rating: "] = "Valutazione:";
diff --git a/view/pdl/mod_wiki.pdl b/view/pdl/mod_wiki.pdl
index 2e99ea36b..be86be7e3 100644
--- a/view/pdl/mod_wiki.pdl
+++ b/view/pdl/mod_wiki.pdl
@@ -1,6 +1,5 @@
[region=aside]
[widget=vcard][/widget]
-[widget=wiki_list][/widget]
[widget=wiki_pages][/widget]
[/region]
[region=right_aside]
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index 489d71735..ddf3d1295 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -856,15 +856,26 @@ div.jGrowl div.jGrowl-notification {
.contact-block-content {
margin-top: 10px;
}
-.contact-block-img.archived, .app-deleted, .dim {
+.contact-block-img.archived,
+.app-deleted,
+.dim {
opacity: 0.3;
filter:alpha(opacity=30);
}
-.profile-match-connect { margin-top: 5px; }
+.profile-match-connect {
+ margin-top: 5px;
+}
+
+.reshared-content {
+ margin-left: 20px;
+}
+
+.reshared-content img {
+ width: 100%;
+}
-.reshared-content { margin-left: 20px; }
.shared_header img {
border-radius: $radius;
margin-right: 10px;
diff --git a/view/tpl/cloud.tpl b/view/tpl/cloud.tpl
index e7237c7e6..9df95c8cc 100644
--- a/view/tpl/cloud.tpl
+++ b/view/tpl/cloud.tpl
@@ -1,6 +1,6 @@
-
-
-
+
+
+
{{include file="cloud_header.tpl"}}
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index be09fbebf..2670ba9e7 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -42,9 +42,9 @@ function enableOnUser(){
}
-
-
-
+
+
+
-
-
+
+
+