[Release] Complete server status

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    Account Upgraded | Title Enabled! hey0 is offline
    MemberRank
    Jan 2009 Join Date
    249Posts

    Re: [Release] Complete server status

    Code:
    <?php
    include("top.php");
    $worldport = 1099; //Port used by your worldserver
    $loginport = 8484; //Port used by your loginserver
    $channelport = 7575; //Starting port used by your channels
    $channels = 2; //how many channels
    $ip = "127.0.0.1";
    $servername = "ServerMS";
    
    echo "Use this page to see if the login server is online, so you can log in to ".$servername.", and see if your favorite channels are online, or wait until they are.<br />";
    
    //world
    if($worldport != "") {
    	if (!$sock = @fsockopen($ip, $worldport, $num, $error, 5)) {  
    		echo '<B>World Server:<FONT COLOR=red> Offline</b></FONT>';  
    	} else {  
    		echo '<B>World Server:<FONT COLOR=green> Online</b></FONT>';  
    		fclose($sock);  
    	}  
    } else {
    	echo "The World Server's port is incorrectly configured, so this will stay offline, however if the channels are online, this server is online too because the channel server requires this.";
    }
    echo "<br />";
    
    //login
    if (!$sock = @fsockopen($ip, $loginport, $num, $error, 5)) {
    	echo '<B>Login Server:<FONT COLOR=red> Offline</b></FONT>';
    } else {
    	echo '<B>Login Server:<FONT COLOR=green> Online</b></FONT>';
    	fclose($sock);
    }  
    echo "<br />";
    
    //channels
    for($i = 7575; $i < $channels + 7575; $i++) {
    	if (!$sock = @fsockopen($ip, $i, $num, $error, 5)) {  
    		echo '<B>Channel '.($i - 7574).':<FONT COLOR=red> Offline</b></FONT>';  
    	} else {  
    		echo '<B>Channel '.($i - 7574).':<FONT COLOR=green> Online</b></FONT>';  
    		fclose($sock);  
    	} 
    	echo "<br />";
    }
    
    echo "<br>By MyEnterprise";
    include("end.php"); 
    ?>
    Here, I fixed it up a bit.

  2. #17
    Valued Member maplr4ever is offline
    MemberRank
    Dec 2008 Join Date
    FlAMEZoNE- With my flame shield on! :PLocation
    113Posts

    Re: [Release] Complete server status

    k, tks, updated.

  3. #18
    Account Upgraded | Title Enabled! zzlawlzz is offline
    MemberRank
    Oct 2008 Join Date
    401Posts

    Re: [Release] Complete server status

    Quote Originally Posted by hey0 View Post
    PHP Code:
    $loginport 8484//Port used by your loginserver
    $channelport 7575//Starting port used by your channels
    $servername "ServerMS"
    what are the point of those?

  4. #19
    Valued Member maplr4ever is offline
    MemberRank
    Dec 2008 Join Date
    FlAMEZoNE- With my flame shield on! :PLocation
    113Posts

    Re: [Release] Complete server status

    configuration... >.>

  5. #20
    Account Upgraded | Title Enabled! zzlawlzz is offline
    MemberRank
    Oct 2008 Join Date
    401Posts

    Re: [Release] Complete server status

    oh sorry but i know for sure you don't need
    PHP Code:
    $servername "ServerMS"
    Read the script.

  6. #21
    Account Upgraded | Title Enabled! hey0 is offline
    MemberRank
    Jan 2009 Join Date
    249Posts

    Re: [Release] Complete server status

    Quote Originally Posted by zzlawlzz View Post
    oh sorry but i know for sure you don't need
    PHP Code:
    $servername "ServerMS"
    Read the script.
    Could you read the script?
    Code:
    echo "Use this page to see if the login server is online, so you can log in to ".$servername.", and see if your favorite channels are online, or wait until they are.<br />";
    In the OP's script, he made it say a server. This one allows you to easily edit it.

  7. #22
    Account Upgraded | Title Enabled! zzlawlzz is offline
    MemberRank
    Oct 2008 Join Date
    401Posts

    Re: [Release] Complete server status

    lol didn't see that coming didn't scroll the bars sideways i thought i was useless comments.

    what? op's script?
    whats that?

  8. #23
    Account Upgraded | Title Enabled! hey0 is offline
    MemberRank
    Jan 2009 Join Date
    249Posts

    Re: [Release] Complete server status

    Quote Originally Posted by zzlawlzz View Post
    lol didn't see that coming didn't scroll the bars sideways i thought i was useless comments.

    what? op's script?
    whats that?
    Original post, meaning the first post.



Page 2 of 2 FirstFirst 12

Advertisement