wSESSION('groupid', $lgrow['groupid']); $lg['memberid'] = intval(rSESSION('memberid')); $lg['groupid'] = intval(rSESSION('groupid')); } } } } //模板相关 $_SYS['styleid'] = $cache_settings['template']; if (isset($_GET['preview'])) { $_SYS['styleid'] = $_GET['styleid']; $_SYS['styleid'] = str_replace(array("'", "/", "\\", "\"", "."), array('', '', '', '', ''), $_SYS['styleid']); } //模板路径 $_SYS['TP'] = 'template/' . $_SYS['styleid']; $_SYS['indexurl'] = $webcore->genUrl('index.php'); $_SYS['positionindex'] = "<a href=\"{$_SYS['indexurl']}\">{$cache_settings['webname']}</a>"; //加载系统语言包 if (!empty($cache_langs[$_cachelangid])) { $systemlang = INC_P . '/../language/' . $cache_langs[$_cachelangid]['directory'] . '/language.php'; if (file_exists($systemlang)) { require_once $systemlang; } unset($systemlang); } //加载模版语言包 if (!empty($cache_settings['templatelang'])) { $templatelang = INC_P . '/../template/' . $cache_settings['template'] . '/language/' . $cache_settings['templatelang']; if (file_exists($templatelang)) { require_once $templatelang; }