Exemple #1
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
header("Content-Type:application/json; charset=UTF-8");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
if ($this->ADMIN_USER) {
    $this->get['categories_id'] = $this->get['tx_multishop_pi1']['categories_id'];
    $this->get['products_id'] = $this->get['tx_multishop_pi1']['products_id'];
    $data = mslib_fe::jQueryAdminMenu();
    echo json_encode($data, ENT_NOQUOTES);
    exit;
}
Exemple #2
0
            ';
    if ($this->get['products_id']) {
        $meta_tags['1_jquery'].='msAdminShortcutFunc(\'product\');'."\n";
    } elseif ($this->get['categories_id']) {
        $meta_tags['1_jquery'].='msAdminShortcutFunc(\'category\');'."\n";
    } else {
        $meta_tags['1_jquery'].='msAdminShortcutFunc();'."\n";
    }
    $meta_tags['1_jquery'].='
    });
    </script>
    ';
    */
}
if ($this->ADMIN_USER) {
    $admin_menu_panel = mslib_fe::jQueryAdminMenu();
    // admin stats
    if ($this->ms['MODULES']['GLOBAL_MODULES']['CACHE_FRONT_END']) {
        $options = array('caching' => true, 'cacheDir' => $this->DOCUMENT_ROOT . 'uploads/tx_multishop/tmp/cache/', 'lifeTime' => 180);
        $Cache_Lite = new Cache_Lite($options);
        $string = md5('admin_stats_' . $this->shop_pid);
    }
    if (!$this->ms['MODULES']['GLOBAL_MODULES']['CACHE_FRONT_END'] or $this->ms['MODULES']['GLOBAL_MODULES']['CACHE_FRONT_END'] and !($html = $Cache_Lite->get($string))) {
        $html = '
		<script type="text/javascript" data-ignore="1">
		jQuery(document).ready(function($) {
			var intervalID;
			// messages
		';
        $messages = array();
        // total customers