define("SITEHOST", $web_url); //程序地址 $smarty->template_dir = OVOVCMS_ROOT . '/templates/ovov_admin'; //这个放置模版文件 $smarty->compile_dir = OVOVCMS_ROOT . '/smarty/templates_admin/'; //以下三个文件内容为空 $smarty->config_dir = OVOVCMS_ROOT . '/smarty/configs/'; $smarty->cache_dir = OVOVCMS_ROOT . '/smarty/cache/'; $smarty->assign("OVOATITLE", $web_name); $smarty->assign("ovovweb", $ovovweb); $smarty->assign("skinnum", $skinnum); //权限控制 $quid = intval($_SESSION['user_id']); if ($quid) { //顶部导航 $user_tview = explode(",", $View->Print_user($quid, 'user_cview')); $smarty->assign("user_tview", $user_tview); $user_view = explode(",", $View->Print_user($quid, 'user_view')); $smarty->assign("user_view", $user_view); $mytopmenu = $Db->FetchAll("select `channel_id`,`channel_urlname`,`channel_name`,`channel_ename`,`tjchar`,`channel_urlok`,`channel_ico` from `" . $db_prefix . "channel` where `channel_istop`=1 and `channel_ifdel`=0 order by `channel_order` limit 0,7"); $smarty->assign("mytopmenu", $mytopmenu); $qxid = $quid ? $View->Print_user($quid, 'user_quanxian') : 1; //查询权限ID $smarty->assign("qxid", $qxid); //菜单权限控制 $user_cview = explode(",", $View->Print_user($quid, 'user_cview')); $user_view = explode(",", $View->Print_user($quid, 'user_view')); $smarty->assign("user_view", $user_view); $smarty->assign("user_cview", $user_cview); $menuroot = $Db->FetchAll("SELECT `channel_id`,`channel_name`,`channel_ename`,`channel_urlok`,`channel_urlname`,`channel_ico` FROM `" . $db_prefix . "channel` WHERE `jibie` = 1 and `channel_kid`=0 and `channel_ifdel`=0 order by `channel_order`"); //所有系统