Register for your free account! | Forgot your password?

You last visited: Today at 18:53

  • Please register to post and access all features, it's quick, easy and FREE!

 

Server Status

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2012
Posts: 155
Received Thanks: 6
Server Status

Hallo zusammen,

ich habe ein kleines Problem auf mein Hamachi Server. Wenn die 1 Channel vom Server starte wird auf der Homepage 2 Channels als "Online" angezeigt..
Wie kann ich machen das so viele Online anzeigt wird, so viele auch Online sind?

Danke in Vorraus..

ach ja, in der status.php datei:

<font color="#FFFFFF">
<center>
<?php
$serverip = "25.169.74.120";
$ip = gethostbyname($serverip);
$portlist=array(3306, 11002, 13001, 13002);
$status=array("Datenbank:", "Login:", "Channel1:", "Channel2:");
$i=0;

foreach ($portlist as $port){
echo "".$status[$i]."";
$online = @fsockopen($ip, $port, $errno, $errstr, 1);
if (!$online)
{
echo "<font color=#ff0000> Offline</font>
<div class=sb-tren></div>";

}
else
{
echo "<font color=#669e33> Online</font>
<div class=sb-tren></div>";
}
@fclose($online);
$i++;
}
?>
</center></font>



MrPlugin is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Reg Page Edited Server Status + Extra Status
This is a new realease of the reg page created by Xsense Download XAMP apache friends - xampp for windows Reg Page Files (By Tazdingo And...
22 Replies - SRO Coding Corner
[Server Status] Server Status Programs From A Couple Servers.
Hey i dont know in what section to post it so i hope that the mods will move it to the good section but i made this server status program i will make...
9 Replies - CO2 Main - Discussions / Questions



All times are GMT +1. The time now is 18:53.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.