Файловый менеджер - Редактировать - /www/wwwroot/gamenworld.store/gamepop.php
�азад
<?php require_once 'app/init.php'; // 允许所有域名进行跨域请求 header("Access-Control-Allow-Origin: *"); // 允许指定的 HTTP 方法 header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS"); // 允许的请求头 header("Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With"); $query = "select * from zon_ads where id=15"; $adsrow = mysqli_fetch_assoc(mysqli_query($socket, $query)); $query = "select * from zon_config where id=1"; $row = mysqli_fetch_assoc(mysqli_query($socket, $query)); // https://test.cosmicgamers.store/static/img/logo/261244998WechatIMG505.png // 检查请求协议(http 或 https) $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; // 获取当前的主机名(域名) $host = $_SERVER['HTTP_HOST']; // 获取请求的 URI(路径和查询字符串) $request_uri = $_SERVER['REQUEST_URI']; // 合成完整的 URL $current_url = $protocol . '://' . $host; $arr = [ "code"=>$adsrow['code'], "head_code" => $row["head_code"], "logo_img" => $current_url."/static/img/logo/".$row['site_logo_light'] ]; echo json_encode($arr); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.0.26 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка