Esempio n. 1
0
set_magic_quotes_runtime(0);
ini_set('magic_quotes_runtime', 0);
ini_set('memory_limit', '640M');
ini_set('default_charset', 'utf-8');
define('adminfile', 'adminsoft');
define('admin_ClassURL', 'http://' . $_SERVER['HTTP_HOST'] . substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/')) . '/');
define('admin_htmlDIR', 'html/big5/');
define('admin_URL', str_replace(admin_htmlDIR, '', admin_ClassURL));
define('admin_ROOT', str_replace('html\\big5', '', dirname(__FILE__)) . '/');
define('admin_FROM', true);
define('admin_http', $_SERVER['HTTP_HOST']);
if (!@(include admin_ROOT . 'datacache/public.php')) {
    exit('<b>Access denied!</b>');
}
$archive = indexget('ac', 'R');
$action = indexget('at', 'R');
require admin_ROOT . 'public/class_connector.php';
if (!@(include admin_ROOT . 'datacache/command.php')) {
    exit('System file don\'t exist, please create!<br>Filename : datacache/command.php<br><a href="' . admin_URL . adminfile . '">Click to create!</a>');
}
if ($CONFIG['is_close']) {
    header('Content-type: text/html; charset=utf-8');
    exit($CONFIG['close_content']);
}
include admin_ROOT . 'public/uc_config.php';
define('admin_LNG', 'big5');
$lngpack = admin_LNG == 'big5' ? $CONFIG['is_lancode'] : admin_LNG;
define('admin_LNGDIR', $lngpack . '/');
define('admin_AGENT', $_SERVER['HTTP_USER_AGENT']);
$rootDIR = $CONFIG['http_pathtype'] ? admin_URL : str_replace('http://' . admin_http, '', admin_URL);
define('admin_rootDIR', $rootDIR);
Esempio n. 2
0
define('admin_URL', str_replace(adminfile, '', admin_ClassURL));
$urlinfo = parse_url(admin_URL);
define('admin_PATH', $urlinfo['path']);
define('admin_http', $urlinfo['host']);
$rootDIR = $CONFIG['http_pathtype'] ? admin_URL : str_replace('http://' . admin_http, '', admin_URL);
define('admin_rootDIR', $rootDIR);
define('admin_ROOT', substr(__FILE__, 0, strrpos(__FILE__, adminfile)));
define('admin_DIR', pathinfo(__FILE__, PATHINFO_DIRNAME));
define('admin_FROM', false);
define('admin_WAP', false);
define('admin_AGENT', $_SERVER['HTTP_USER_AGENT']);
require admin_ROOT . 'datacache/public.php';
require admin_ROOT . 'public/class_connector.php';
$archive = indexget('archive', 'R');
$archive = empty($archive) ? 'adminuser' : $archive;
$action = indexget('action', 'R');
$action = empty($action) ? 'login' : $action;
if (in_array($archive, array('acmessagemain', 'adminuser', 'advertmain', 'adverttypemain', 'albummain', 'article', 'bbsmain', 'bbstypemain', 'callmain', 'citylist', 'connected', 'createmain', 'createseomain', 'upgrademain', 'enquirymain', 'filemain', 'filemanage', 'formmain', 'formmessmain', 'language', 'languagepack', 'lib_menu', 'mailinvite', 'mailsendmain', 'mailtemplatemain', 'management', 'memattmanage', 'membermain', 'memclassmanage', 'modelmanage', 'ordermain', 'payplug', 'payreceipt', 'powergroup', 'printtemplatemain', 'recommanage', 'seomanage', 'shipplug', 'shipreceipt', 'sitemain', 'skinmain', 'sqlmanage', 'smstemplatemain', 'subjectmanage', 'templatemain', 'typemanage', 'mobliemain', 'smsmain', 'weixinmain', 'modenmain'))) {
    if (!file_exists(admin_ROOT . adminfile . "/control/{$archive}.php")) {
        exit('Access error!');
    }
    include admin_ROOT . adminfile . "/control/{$archive}.php";
    $control = new important();
    $action = 'on' . $action;
    if (method_exists($control, $action)) {
        $control->{$action}();
    } else {
        exit('错误:系统方法错误!');
    }
} else {
    exit('Access error!');
Esempio n. 3
0
$action = indexget('at', 'R');
require admin_ROOT . 'public/class_connector.php';
if (!@(include admin_ROOT . 'datacache/command.php')) {
    header('Content-type: text/html; charset=utf-8');
    exit('错误:系统文件丢失,登陆后台会自动生成!<br>Filename : datacache/command.php<br><a href="' . admin_URL . adminfile . '">点陆登陆管理平台!</a>');
}
if (!$CONFIG['is_wap']) {
    header('Content-type: text/html; charset=utf-8');
    exit($CONFIG['close_content']);
}
if ($CONFIG['is_close']) {
    header('Content-type: text/html; charset=utf-8');
    exit($CONFIG['close_content']);
}
include admin_ROOT . 'public/uc_config.php';
$lngnow = indexget('lng', 'R');
$lngnow = empty($lngnow) ? $CONFIG['home_lng'] : $lngnow;
define('admin_LNG', $lngnow);
define('LANCODE', $CONFIG['is_lancode']);
$lngpack = admin_LNG == 'big5' ? $CONFIG['is_lancode'] : admin_LNG;
define('admin_LNGDIR', $lngpack . '/');
$rootDIR = $CONFIG['http_pathtype'] ? admin_URL : str_replace('http://' . admin_http, '', admin_URL);
define('admin_rootDIR', $rootDIR);
if (empty($archive) || empty($action)) {
    include admin_ROOT . 'interface/3gwap_public.php';
    $mainlist = new mainpage();
    if (method_exists($mainlist, 'in_index')) {
        $mainlist->in_index();
    } else {
        exit('Access error!');
    }