8 if (!function_exists(
'smarty_mb_str_replace')) {
20 function smarty_mb_str_replace(
$search, $replace, $subject, &$count=0)
22 if (!is_array(
$search) && is_array($replace)) {
25 if (is_array($subject)) {
27 foreach ($subject as &$string) {
28 $string = &smarty_mb_str_replace(
$search, $replace, $string, $c);
32 if (!is_array($replace)) {
34 $subject = smarty_mb_str_replace($string, $replace, $subject, $c);
38 $n = max(count(
$search), count($replace));
40 $subject = smarty_mb_str_replace(current(
$search), current($replace), $subject, $c);
47 $parts = mb_split(preg_quote(
$search), $subject);
48 $count = count($parts) - 1;
49 $subject = implode($replace, $parts);
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))