Example #1
0
function system_adminuser_kefucache()
{
    create_kefuuser_cachefile();
    echo '<h2>仅当客服用户名更改或新增客服时才需要执行些操作。</h2>';
    echo '<span style="color:red;">缓存文件已成功生成</span>';
}
Example #2
0
/*
foreach($allow_nav as $k=>$v1){
	foreach($allow_action_list as $k2=>$v2){
		if(strpos($v2,$v1) !== false){
			$type_list[$k]['typename'] = $menu_nav_arr[$v1];	//大分类
			if(isset($leftMenu[$v1][$v2])){
				$type_list[$k]['subname'][$k2]['title'] = $leftMenu[$v1][$v2]['title']; //子分类
				$type_list[$k]['subname'][$k2]['url'] = $leftMenu[$v1][$v2]['url']; //子分类链接
			}
		}
	}
}*/
//print_r($type_list);exit;
//后台客服缓存文件不存在时,这里再次判断创建
if (!file_exists($file_kefulist_cache)) {
    create_kefuuser_cachefile();
}
$h = MooGetGPC('h', 'string') == '' ? 'index' : MooGetGPC('h', 'string');
//note 动作列表
$hlist = array('index');
//note 判断页面是否存在
if (!in_array($h, $hlist)) {
    MooMessage('您要打开的页面不存在', 'index.php?action=admin&h=index');
}
switch ($h) {
    //note 欢迎界面
    case 'index':
        admin_index();
        break;
    default:
        admin_index();