28 lines
650 B
PHP
Executable File
28 lines
650 B
PHP
Executable File
<?php
|
|
/**
|
|
* @Author: 嗨噜客(三亚)<fm453>
|
|
* @Date: 2025-04-10 23:19:12
|
|
* @FilePath: index.php
|
|
* @Description:
|
|
* @Email: 393213759@qq.com
|
|
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
|
|
*/
|
|
|
|
//逻辑:通过当前域名关联对应的入口文件。
|
|
//判断来路域名
|
|
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;
|