EdenEternal Posted January 28, 2010 Posted January 28, 2010 hello maxcheaters! i want to make web site and i want script like this http://status.blackout-gaming.net have someone script like this? Quote
0 Hax0r Posted January 28, 2010 Posted January 28, 2010 php script <?php print'<table width="150">'; $server = "127.0.0.1"; $portg = "7777"; $portl = "9014"; $timeout = "5"; if ($server and $port and $timeout) { $game = @fsockopen("$server", $portg, $errno, $errstr, $timeout); $login = @fsockopen("$server", $portl, $errno, $errstr, $timeout); } print'<tr><td align="center"><strong>Server Status</strong></td></tr>'; if($login) { print'<tr><td>Login:</td><td><font color="#00FF00"><strong> Online</strong></font><br><br></td></tr>'; } else { print'<tr><td>Login:</td><td><font color="#FF0000"><strong> Offline</strong></font><br><br></td></tr>'; } if($game) { print'<tr><td>Game:</td><td><font color="#00FF00"><strong> Online</strong></font></td></tr>'; } else { print'<tr><td>Game:</td><td"><font color="#FF0000"><strong> Offline</strong></td></tr>'; } print'</table>'; ?> Quote
0 EdenEternal Posted January 28, 2010 Author Posted January 28, 2010 i want not for my server,i want to guests write these ip and port of servers Quote
0 `Rοmeο Posted January 28, 2010 Posted January 28, 2010 <?php include "config/status.php" ?> <?php //if ($server && $port && $timeout) { $game = @fsockopen("$server", $portg, $errno, $errstr, $timeout); $login = @fsockopen("$server", $portl, $errno, $errstr, $timeout); //} if($login) { echo "Login Server: <font color=#00DF00>Online</font><br />"; } else { echo "Login Server: <font color=#FF0000>Offline</font><br />"; } if($game) { echo "Game Server: <font color=#00DF00>Online</font><br />"; } else { echo "Game Server: <font color=#FF0000>Offline</font><br />"; } echo ""; ?> Then create new folder "config" and new file in it "status.php" there replace that: <?php $server = "~> Server IP <~"; $portg = "7777"; $portl = "2106"; $timeout = "1"; ?> Quote
0 EdenEternal Posted January 28, 2010 Author Posted January 28, 2010 thanks but how guest must write serveri ip? Quote
0 `Rοmeο Posted January 29, 2010 Posted January 29, 2010 oo dude Im sorry I did not get your idea ... I thing that you just whant a php script for your website :D sorry .. but we cant help you in l2j develop area :D some one move the topic to the right place ... Quote
0 ~Sensei~ Posted January 29, 2010 Posted January 29, 2010 php script <?php print'<table width="150">'; $server = "127.0.0.1"; $portg = "7777"; $portl = "9014"; $timeout = "5"; if ($server and $port and $timeout) { $game = @fsockopen("$server", $portg, $errno, $errstr, $timeout); $login = @fsockopen("$server", $portl, $errno, $errstr, $timeout); } print'<tr><td align="center"><strong>Server Status</strong></td></tr>'; if($login) { print'<tr><td>Login:</td><td><font color="#00FF00"><strong> Online</strong></font><br><br></td></tr>'; } else { print'<tr><td>Login:</td><td><font color="#FF0000"><strong> Offline</strong></font><br><br></td></tr>'; } if($game) { print'<tr><td>Game:</td><td><font color="#00FF00"><strong> Online</strong></font></td></tr>'; } else { print'<tr><td>Game:</td><td"><font color="#FF0000"><strong> Offline</strong></td></tr>'; } print'</table>'; ?> rofl i wrote that 3 years ago and its still spreading xD thanks but how guest must write serveri ip? google "submiting php forms"... i promise its really easy.. Quote
Question
EdenEternal
hello maxcheaters! i want to make web site and i want script like this http://status.blackout-gaming.net
have someone script like this?
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.