32 $source->uid = $source->filepath = sha1($source->name);
33 $source->timestamp = 0;
34 $source->exists =
true;
46 return $this->
decode($source->name);
58 if (($pos = strpos($string,
':')) !==
false) {
59 if (!strncmp($string,
'base64', 6)) {
60 return base64_decode(substr($string, 7));
61 }
elseif (!strncmp($string,
'urlencode', 9)) {
62 return urldecode(substr($string, 10));
78 return get_class($this) .
'#' .$this->decode($resource_name);
populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
populate Source Object with meta data from Resource
Smarty plugin to format text blocks.
if(strlen($date2)== '10') if($type== 'users-by-age'&&a_priv('admin_users', true)) elseif($type== 'forums-count'&&a_priv('admin_content', true)) elseif($type== 'forums-categories'&&a_priv('admin_content', true)) elseif($type== 'users-count'&&a_priv('admin_users', true)) elseif($type== 'product-categories'&&a_priv('admin_products', true)) elseif($type== 'users-by-sex'&&a_priv('admin_users', true)) elseif($type== 'users-by-country'&&a_priv('admin_users', true)) elseif($type== 'sales'&&a_priv('admin_sales', true))
Smarty Internal Plugin Resource String.
decode($string)
decode base64 and urlencode
buildUniqueResourceName(Smarty $smarty, $resource_name)
modify resource_name according to resource handlers specifications
getContent(Smarty_Template_Source $source)
Load template's source from $resource_name into current template object.
getBasename(Smarty_Template_Source $source)
Determine basename for compiled filename.