Jump to content

Question

Posted

Guys i want to make l2server status (ONlLINE,OFFLINE) and set it on webiste of server
For Example When server is Offline to the website ... says OFFLINE 
When is Online to website say ONLINE !!!  How can i make this????

Photo Example :
 

post-139373-0-51202300-1401476424_thumb.png
 

 

post-139373-0-51202300-1401476424_thumb.png

9 answers to this question

Recommended Posts

  • 0
Posted (edited)

<?php
   $server_ip = "localhost";
   $loginserver_port = "7777";
   $gameserver_port = "2106";

   $login_status = @fsockopen( "$server_ip" , "$loginserver_port", $errno, $errstr, 0);
   $game_status = @fsockopen( "$server_ip" , "$gameserver_port", $errno, $errstr, 0);
   
              if($login_status){
      echo"Login:   Online<br />";
   }
   else{
      echo"Login::   Offline<br />";   
   }
   if($game_status){
      echo" Game:   Online<br />";
   }
   else{
      echo" Game:   Offline<br />";
   };
mysql_close($connect);
?>

Credits : Falcon

 

Login Server

<?php
    $status = @fsockopen("127.0.0.1", 2106, $errno, $errstr, 1);
if($status >= 1)
{ 
echo '<img src=images/on.png>';
}
else
{ 
echo '<img src=images/off.png>';
}

            ?>

Game Server

 

<?php
    $status = @fsockopen("127.0.0.1", 2106, $errno, $errstr, 1);
if($status >= 1)
{ 
echo '<img src=images/on.png>';
}
else
{ 
echo '<img src=images/off.png>';
}

            ?>

 

At <img src=images/on.png> replace with your image

Edited by FirefoxAurora
  • 0
Posted

man send me your skype name if you want to tell you something about this 

 

Just copy/paste the code in the html file and rename it from index.html to index.php and it will be fixed.

You won't be able to see results in your computer, you'll need to upload the website so you can see if it actually works.

Guest
This topic is now closed to further replies.


  • Posts

    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • Hi people, someone has to sharing a client for Lineage 2 Shinemaker?. I found a few but are not working very well. Thanks
    • Grab a proper launcher for Your server - update files whenever You need
    • Dear players, 19.04 at 06:00 server time, the Airin server will be updated to Chronicle 2. - The x2 updater will be disabled on April 18, 2025, at 23:59 and will become available again during the update. - Server rates will be increased to x2.25; - The siege of Innadril will take place on April 27 at 16:00 server time; - Bonus Start will begin after the restart! Characters created after April 16, 00:00 will receive rewards.   You can download the full client for Airin C2 from the following link.  Do not run the updater until tomorrow's update. 
  • Topics

×
×
  • Create New...