Mordaneus Posted March 12, 2014 Posted March 12, 2014 anyone know any page to export html code for status login and gameserver? or know html code to make that pls answer. Quote
snifi Posted March 13, 2014 Posted March 13, 2014 Browse this forum for lineage 2 web page shares....and well i think you might have luck. ;) Quote
Devlin Posted March 13, 2014 Posted March 13, 2014 How to do this? Do you want server's status in game? Quote
yaotzi9n Posted April 16, 2014 Posted April 16, 2014 (edited) Put this in your site <?php include "config/config.php" ?> <?php //if ($server && $port && $timeout) { $game = @fsockopen("$server", $portg, $errno, $errstr, $timeout); $login = @fsockopen("$server", $portl, $errno, $errstr, $timeout); //} if($login) { echo "<p style='margin-top: 15px;'>Login: <font color=#00DF00>Online</font><br /></p>"; } else { echo "<p>Login: <font color=#FF0000>Offline</font><br /></p>"; } if($game) { echo "<p>Game: <font color=#00DF00>Online</font><br /></p>"; } else { echo "<p>Game: <font color=#FF0000>Offline</font><br /></p>"; } echo ""; ?> and config.php file looks like this <?php $server = "yourserver.eu"; //you can put ip adress or domain name $portg = "7777"; $portl = "2106"; $timeout = "1"; ?> Edit.... Remember that the first part of code need to be placed in php file. ;) Edited April 16, 2014 by yaotzi9n Quote
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.