* $Id: portal_portalcp.php 23372 2011-07-12 01:50:34Z zhangguosheng $ */ if (!defined('IN_DISCUZ')) { exit('Access Denied'); } $ac = in_array($_GET['ac'], array('comment', 'article', 'related', 'block', 'portalblock', 'blockdata', 'topic', 'diy', 'upload', 'category', 'plugin', 'logout')) ? $_GET['ac'] : 'index'; $admincp2 = getstatus($_G['member']['allowadmincp'], 2); $admincp3 = getstatus($_G['member']['allowadmincp'], 3); $admincp4 = getstatus($_G['member']['allowadmincp'], 4); $admincp5 = getstatus($_G['member']['allowadmincp'], 5); $admincp6 = getstatus($_G['member']['allowadmincp'], 6); if (!$_G['inajax'] && in_array($ac, array('index', 'portalblock', 'blockdata', 'category', 'plugin')) && ($_G['group']['allowdiy'] || $_G['group']['allowmanagearticle'] || $admincp2 || $admincp3 || $admincp4 || $admincp6)) { require_once libfile('class/panel'); $modsession = new discuz_panel(PORTALCP_PANEL); if (getgpc('login_panel') && getgpc('cppwd') && submitcheck('submit')) { $modsession->dologin($_G[uid], getgpc('cppwd'), true); } if (!$modsession->islogin) { include template('portal/portalcp_login'); dexit(); } } if ($ac == 'logout') { require_once libfile('class/panel'); $modsession = new discuz_panel(PORTALCP_PANEL); $modsession->dologout(); showmessage('modcp_logout_succeed', 'portal.php'); } $navtitle = lang('core', 'title_' . $ac . '_management') . ' - ' . lang('core', 'title_portal_management'); require_once libfile('function/portalcp'); require_once libfile('portalcp/' . $ac, 'include');
/** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: forum_modcp.php 28867 2012-03-16 02:27:08Z monkey $ */ if (!defined('IN_DISCUZ')) { exit('Access Denied'); } define('IN_MODCP', true); $cpscript = basename($_G['PHP_SELF']); if (!empty($_G['forum']) && $_G['forum']['status'] == 3) { showmessage('group_admin_enter_panel', 'forum.php?mod=group&action=manage&fid=' . $_G['fid']); } $modsession = new discuz_panel(MODCP_PANEL); if (getgpc('login_panel') && getgpc('cppwd') && submitcheck('submit')) { $modsession->dologin($_G[uid], getgpc('cppwd'), true); } if (!$modsession->islogin) { $_GET['action'] = 'login'; } if ($_GET['action'] == 'logout') { $modsession->dologout(); showmessage('modcp_logout_succeed', 'forum.php'); } $modforums = $modsession->get('modforums'); $_GET['action'] = empty($_GET['action']) && $_G['fid'] ? 'thread' : $_GET['action']; $op = getgpc('op'); if ($modforums === null) { $modforums = array('fids' => '', 'list' => array(), 'recyclebins' => array());