<?php
function spherestatus()
{
$timeout = "3"; ##Timeout for connection in seconds.
$sphere_ip = "Sunucunun ip no'su"; ##SphereServer address
$sphere_port = "2593"; ##SphereServer port
//$online is the "quoted" html content shown if the shard is online
$online = "<body bgcolor='#000000'><center><font color='#FFFFFF' size='2' face='verdana'>Online</font></center></body>";
//$offline is the "quoted" html content shown if the shard is offline
$offline = "<body bgcolor='#000000'><center><font color='#CC0000' size='2' face='verdana'>Offline</font></center></body>";
//starting code
$return = $offline;
$ip = gethostbynamel($sphere_ip);
$remote_ip = $ip[0];
$remote_port = $sphere_port;
$socket = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_set_nonblock($socket);
while (!( $sphere = @socket_connect($socket, strval($remote_ip), intval($remote_port, 10))) && ($i <= $timeout))
{
$i ++;
sleep(1);
}
if ($sphere == true)
{
$string = b&chr(32);
@socket_write($socket, $string, strlen($string));
$return = $online;
@socket_shutdown($socket, 2);
}
@socket_close($socket);
echo $return;
}
spherestatus(); //echos the status $online/$offline for your sphere shard.
flush();
ob_flush();
?>
Bulunamadı.
Ultima Online 6 days önce
Ultima Online 1 months önce
Sunucular 1 months önce
Ultima Online 1 months önce
Sunucular 2 months önce
Sunucular 3 months önce
Sunucular 3 months önce
Ultima Online 3 months önce
June 30, 2017
June 24, 2017
June 22, 2017
June 18, 2017
June 03, 2017
May 28, 2017
May 09, 2017
March 31, 2017
Yorumlar (4)
Ayarları yapıyorum fakat offline gösteriyor ne yapabilirim ?
aslında zaten açıklamış şöyleki; [quote] $sphere_ip = "Sunucunun ip no'su"; ##SphereServer address $sphere_port = "2593"; ##SphereServer port[/quote]
Açıklayacağını sanmıyorum çünkü sphereserver.net'ten alıntı. Yazmış zaten alıntı diye.
[red]Kardeş iyi yapmışsında acıkla iyice [/red] [quote]##SphereServer address ##SphereServer port[/quote] [red] ornek koy biraz anlamayan olur ?[/red]