Example #1
0
function updatecategorycache()
{
    global $_G, $_SGLOBAL;
    $types = array('region', 'shop', 'good', 'notice', 'consume', 'album', 'groupbuy');
    foreach ($types as $type) {
        updatecategorysingle($type);
    }
}
Example #2
0
define('B_URL_ALL', $newsiteurl);
if (file_exists(B_ROOT . './index.html')) {
    define('S_ISPHP', '1');
}
// config.cache不存在將刷新頁面
refreshbrandsetting();
// 讀取用戶組
if (!@(include_once B_ROOT . './data/system/shopgroup.cache.php')) {
    include_once B_ROOT . './source/function/cache.func.php';
    updateshopgroupcache();
}
// 讀取分類
$cattypes = array('region', 'shop', 'good', 'notice', 'consume', 'album', 'groupbuy');
foreach ($cattypes as $cattype) {
    if (!@(include_once B_ROOT . './data/system/' . $cattype . 'category.cache.php')) {
        include_once B_ROOT . './source/function/cache.func.php';
        updatecategorysingle($cattype);
    }
}
// 讀取分類
$categorylist = $cats = $cats_plus = array();
$_G['categorylist'] = getmodelcategory('shop');
// 讀取消息
if (exists_discuz()) {
    $pm = loadClass('pm');
    $pm_new = $pm->pm_new;
}
// 初始化 SEO 標題
$seo_title = $_G['setting']['sitename'] . ' - ' . $_G['setting']['wwwname'];
$seo_keywords = $_G['setting']['seokeywords'];
$seo_description = $_G['setting']['seodescription'];