Example #1
0
#[加载字符串处理类]
require_once SYSTEM_ROOT . "/class/string.php";
$STR = new PHPOK_STRING(false, false, false);
$magic_quotes_gpc = get_magic_quotes_gpc();
@extract($STR->format($_POST));
@extract($STR->format($_GET));
if (!$magic_quotes_gpc) {
    $_FILES = $STR->format($_FILES);
}
#[加载文件处理操作]
require_once SYSTEM_ROOT . "/class/file.php";
$FS = new files();
#[加载数据库]
require_once SYSTEM_ROOT . "/class/db/" . $dbType . ".php";
$DB = new DB_SQL($dbHost, $dbUser, $dbPass);
$DB->Connect($dbData);
#[加载工厂类]
require_once SYSTEM_ROOT . "/class/factory.php";
$CF = new C_Factory($DB, $prefix, $dbType);
#[启用数据库SESSION]
require_once SYSTEM_ROOT . "/class/db/" . $dbType . "/session.php";
#[加载常用函数信息]
require_once SYSTEM_ROOT . "/include/global.func.php";
#[加载网站常规选项]
if (!file_exists(SYSTEM_ROOT . "/data/system.php")) {
    echo "Not Set System.";
    exit;
}
include_once SYSTEM_ROOT . "/data/system.php";
if (!$system["siteurl"] || substr(strtolower($msg), 0, 7) != "http://") {
    #[计算URL]