uiisc/core.php

17 lines
454 B
PHP
Raw Normal View History

2016-12-22 05:14:34 +00:00
<?php
2018-11-16 07:39:39 +00:00
if (!defined('IN_SYS')) {
// exit('禁止访问');
header("Location: index.php");
exit;
2017-09-08 07:01:08 +00:00
}
2019-06-05 10:05:31 +00:00
$ROOT = __DIR__;
include_once "{$ROOT}/data/config.php";
2019-07-11 12:44:54 +00:00
include_once "{$ROOT}/library/lang.class.php";
2019-06-24 10:14:22 +00:00
include_once "{$ROOT}/library/functions.php";
2019-06-26 12:54:54 +00:00
include_once "{$ROOT}/library/pdo.class.php";
2019-06-05 10:05:31 +00:00
2017-09-08 07:01:08 +00:00
$rooturl = $_SERVER['HTTP_HOST'];
$domain = preg_replace('/^www\./', '', $rooturl);
2019-07-11 12:44:54 +00:00
2019-07-15 15:33:33 +00:00
$lang = new Language("{$ROOT}/data/language/");