PHP文件展示

This commit is contained in:
2025-04-26 12:41:01 +08:00
parent cb8dc2693c
commit 0dfa2b995d
131 changed files with 65545 additions and 183 deletions

View File

@@ -4,9 +4,9 @@ header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
header('Access-Control-Allow-Headers: Content-Type, Authorization');
$ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
// 可能会获取到多个ip仅此使用最前面的IP
$ip_address = explode(',', $ip_address)[0];
// 获取ip
$ip_address = $_SERVER['X-Real-IP'];
// 将获取到的IP进行地址查询 小小API