Jump to content

Recommended Posts

Posted

Hello all here is a simple Online/Offline script in PHP you can use it to add a Online/Offline to your website.

 

<? 
$Your server is = "maxcheaters.com";
$port = "21";
$fp = @fsockopen($adres, $port, $errno, $errstr, 3); 
if (!$fp) { 
echo "<center><font size=7><b><font color=red>$adres - Offline</font></b>";
}
else { 
echo "<center><font size=7><b><font color=green>$adres - Online</font></b>";
} 
?>

You can change " $Your server is " to any text you want like The server is and when you enable it if the server is online it will show as "The server is Online".

 

Simple but usefull.Credits to me.

  • 1 month later...
Posted

Simple yes, only problem is when I use it the whole page disappears. I am currently using the following problem is it doesn't work either.  ???

 

I tried replacing every thing from <?php  to ?> with your code and as I stated the page will not show.  I am using frames on my web site.

 

<?php 
function lookup_ports($hport,$hdomain) {
         $fp = fsockopen($hdomain, $hport,$errno,$errstr, 4);
         if (!$fp){
             //$data = "<font color=red size=4>*</font>";
             $data = "<img src=image/icons/off.gif>"; // Urgency!
         } else {
             //$data = "<font color=green size=4>*</font>";
             $data = "<img src=image/icons/on.gif>"; // Everything is fine
             fclose($fp);
         }
         return $data;
}
echo "Checking services";
echo "<table border=0 cellpadding=0 cellspacing=0>";
echo "<tr><td width=35 valign=center align=left>";
echo "<ul><li><b>Login Server</b>";
echo "</td><td width=124 align=center>  <b>".lookup_ports("2106","66.138.53.33")."</b></i></li>";
echo "</td></tr>";
?>

Posted

Simple yes, only problem is when I use it the whole page disappears. I am currently using the following problem is it doesn't work either.  ???

 

I tried replacing every thing from <?php  to ?> with your code and as I stated the page will not show.  I am using frames on my web site.

 

<?php 
function lookup_ports($hport,$hdomain) {
         $fp = fsockopen($hdomain, $hport,$errno,$errstr, 4);
         if (!$fp){
             //$data = "<font color=red size=4>*</font>";
             $data = "<img src=image/icons/off.gif>"; // Urgency!
         } else {
             //$data = "<font color=green size=4>*</font>";
             $data = "<img src=image/icons/on.gif>"; // Everything is fine
             fclose($fp);
         }
         return $data;
}
echo "Checking services";
echo "<table border=0 cellpadding=0 cellspacing=0>";
echo "<tr><td width=35 valign=center align=left>";
echo "<ul><li><b>Login Server</b>";
echo "</td><td width=124 align=center>  <b>".lookup_ports("2106","66.138.53.33")."</b></i></li>";
echo "</td></tr>";
?>

prolly the php server is not working

Posted

Do I need to make any change to my L2 server?  As of now all I have changed is what is needed to be changed so people can log in.  It created accounts automatically because I have not started to try and set it up to create accounts from my web site yet.  :) I will try that after I get this working.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • We've added 5% discounts for bulk purchases of Google accounts for orders of 300 or more, and 10% for orders of 500 or more. The discount is applied automatically when you place your order! The discount is indicated in the product title and description for each category.  
    • 🎄 CHRISTMAS EVENT 🎄   ‼️ Information and details: https://forum.l2harbor.com/threads/rozhdestvenskie-xlopoty-christmas-chores.9430/post-171464
    • METATG.ORG Direct Telegram Service Provider A bonus of +7% on every order! *We add 7% more followers than your ordered amount to proactively cover potential drops and guarantee you an honest result." Telegram Followers - Price per 1000 SUBSCRIBERS Subscribers 3 days - $0.10 ~ 8 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 7 days - $0.17 ~ 13.6 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 14 days - $0.20 ~ 16 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 30 days - $0.30 ~ 24 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 60 days - $0.40 ~ 32 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers 90 days (Super Fast) - $0.50 ~ 40 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers 120 days (Super Fast) - $0.60 ~ 48 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers Lifetime (Super Fast) - $0.70 ~ 56 RUB Lifetime Subscribers. 14-day guarantee. Daily Completion: 200,000,000 Telegram Services - Price per 1000 Post Views - $0.06 ~ 5 RUB Reactions - $0.08 ~ 6.5 RUB Bot Starts - $0.10 ~ 8 RUB Bot Starts with referrals - $0.15 ~ 12 RUB DISCOUNTS and CASHBACK for large volumes Direct Supplier. We work from our own accounts with our own software! High execution speed. Multiple payment methods. We work 24/7! Additional discounts are discussed for volumes starting from $1000 per day. SUPPORT 24/7 - TELEGRAM WEBSITE 24/7 - METATG.ORG
    • Added: a brand-new default dashboard template. You can now add multiple game/login server builds. Full support for running both PTS & L2J servers simultaneously, with switching between them. Payment systems: added OmegaPay and Pally (new PayPal-style API). Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account. Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.     Look demo site: demo
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock