mirror of
https://github.com/c0de-archive/GAMA-Site.git
synced 2025-07-30 12:50:17 +00:00
Added the files of the project to the repo
This commit is contained in:
11
testserver.php
Executable file
11
testserver.php
Executable file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
function GetServerStatus($site, $port)
|
||||
{
|
||||
$status = array("OFFLINE", "ONLINE");
|
||||
$fp = @fsockopen($site, $port, $errno, $errstr, 2);
|
||||
if (!$fp) {
|
||||
return $status[0];
|
||||
} else
|
||||
{ return $status[1];}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user