ctms/index.php
2025-04-10 23:19:13 +08:00

27 lines
652 B
PHP
Executable File

<?php
# @Author: 嗨噜客(三亚) <fm453>
# @Date: 2022-05-09T18:18:19+08:00
# @Email: fm453@lukegzs.com
# @Last modified by: fm453
# @Last modified time: 2022-07-18T22:02:44+08:00
# @Copyright: www.hiluker.cn
//逻辑:通过当前域名关联对应的入口文件。
//判断来路域名
function _server_via_domain()
{
if (isset($_SERVER["HTTP_HOST"])) {
$domain = $_SERVER["HTTP_HOST"];
} else {
$domain = 'hiluker.cn';
}
return $domain;
}
$_d = _server_via_domain();
$_ds = require './domain.php';
$_rf = isset($_ds[$_d]) ? $_ds[$_d] : '453';
$_ftype = '.php';
$_ftype = '_test.php';
require $_rf.$_ftype;