Beispiel #1
0
<?php

date_default_timezone_set('PRC') or die('时区设置失败,请联系管理员!');
require './constants.php';
require './setting/sitesetting.php';
require './Include/functions/global.fun.php';
require './Include/logic/base.logic.php';
include './Include/Entities/base.entity.php';
require './Modules/base.mod.php';
require './Include/lib/log.lib.php';
require './Include/Entities/UserPermission.php';
require './Include/logic/authority.logic.php';
require "./Baidu_Push/Channel.class.php";
$mod_ary = null;
if (isset($_POST['mod'])) {
    $mod_ary = $_POST['mod'];
} else {
    if (isset($_GET['mod'])) {
        $mod_ary = $_GET['mod'];
    } else {
        $mod_ary = $siteconfig['default_module'];
    }
}
if (!checkmodule(__WEB_ROOT . '/Modules/ajax/' . $mod_ary . '.mod.php')) {
    $baseMod = new BaseModule($siteconfig);
    $baseMod->Messager('输入非法,请输入正确地址。', './index.php');
    return;
}
include __WEB_ROOT . '/Modules/ajax/' . $mod_ary . '.mod.php';
$moduleObj = new ModuleObj($siteconfig);