} } elseif ($adminjob == 'apps' && $admintype && $rightset[$admintype] == 1) { //基础性app管理 list($adminname, $subname) = explode('_', $admintype); $subname = $subname ? "admin/{$subname}.php" : 'admin.php'; if (!is_dir(R_P . "apps/{$adminname}") || !file_exists(R_P . "apps/{$adminname}/{$subname}")) { adminmsg('app_admin_error'); } define('A_P', R_P . "apps/{$adminname}/"); $appdir = $adminname; $pwAppImg = "mode/{$adminname}/images"; $basename = "{$admin_file}?adminjob=apps&admintype={$admintype}"; require_once S::escapePath(A_P . $subname); } elseif ($adminjob == 'content' && ($rightset['tpccheck'] && ($type == 'tpc' || $type == 'post') || (int) $rightset['message'] == 1 && $type == 'message')) { require_once R_P . 'admin/content.php'; } elseif (managerRight($adminjob) || adminRight($adminjob, $admintype)) { require_once S::escapePath(R_P . 'admin/' . $adminjob . '.php'); } else { $basename = "javascript:parent.closeAdminTab(window);"; adminmsg('undefine_action'); } function managerRight($adminjob) { return If_manager && in_array($adminjob, array('rightset', 'manager', 'ystats', 'diyoption', 'optimize', 'modepage', 'sphinx', 'ajaxhandler')); } function adminRight($adminjob, $admintype) { $temp = $admintype ? $admintype : $adminjob; return adminRightCheck($temp); } function getdirname($path = null)
unset($file_content); require_once R_P . 'require/common.php'; $_AdminUser = GetCookie('AdminUser'); if (!$_AdminUser) { $message = 'µÇ¼³¬Ê±'; include R_P . 'connexion/template/message.htm'; exit; } // ¼ì²éµÇ¼ require_once R_P . 'admin/admincp.php'; //$imgpath = $db_bbsurl . '/images/'; $basename = $admin_file . '?adminjob=platformweiboapp&action=' . $action; if ($adminjob == 'msg') { showNotice($message); } if ($adminjob != 'platformweiboapp' || !adminRight($adminjob, $admintype)) { showNotice('·Ç·¨²Ù×÷'); } if ($action == 'customweibotemplate') { require_once R_P . 'connexion/customweibotemplate.php'; } else { if ($adminjob == 'admin') { } else { //adminmsg('undefine_action'); showNotice('·Ç·¨²Ù×÷'); } } function showNotice($notice) { //global $db_bbsurl; //$imgpath = $db_bbsurl . '/images/';