15 lines
399 B
PHP
15 lines
399 B
PHP
<?php
|
|
if (!defined('IN_SYS')) {
|
|
// exit('禁止访问');
|
|
header("Location: index.php");
|
|
exit;
|
|
}
|
|
$ROOT = __DIR__;
|
|
include_once "{$ROOT}/data/config.php";
|
|
include_once "{$ROOT}/library/language.php";
|
|
include_once "{$ROOT}/library/functions.php";
|
|
include_once "{$ROOT}/library/dbpdo.php";
|
|
|
|
$rooturl = $_SERVER['HTTP_HOST'];
|
|
$domain = preg_replace('/^www\./', '', $rooturl);
|
|
|