dologin($_G[uid], getgpc('cppwd'), true); } if(!$modsession->islogin) { include template('portal/portalcp_login'); dexit(); } } if($ac == 'logout') { $modsession = new discuz_panel(PORTALCP_PANEL); $modsession->dologout(); showmessage('modcp_logout_succeed', 'index.php'); } $navtitle = lang('core', 'title_'.$ac.'_management').' - '.lang('core', 'title_portal_management'); require_once libfile('function/portalcp'); require_once libfile('portalcp/'.$ac, 'include'); ?>