Jump to content

Recommended Posts

Posted

Παρατήρησα οτι πολλα άτομα ψαχνουν και αναφερουν πως δεν βρισκουν κατι για να σηκώσουν την κατασταση του server στο web site τους.

Για τον λογο αυτο έγραψα μια σελίδα php της οποίας τον κώδικα μπορείτε να τον κανετε προσθήκη σε όποια σελίδα δική σας θέλετε.

Ειναι στην ποιο απλή μορφή και παιζει σε όλες τις εκδόσεις L2, καθως επίσης μπορείτε να την χρησιμοποήσετε σαν server status για οποιοδήποτε server, ακομα και για web server αρκει να δώσετε ip διεύθυνση και port.

Kαντε τον κωδικα copy - paste σε ενα εγγραφο κειμενου και αποθηκεύστε το με ενα ονομα σαν php (παράδειγμα  status.php)

Γραψτε τα δικά σας IP, Port για Login, Game και Community server.

Ρίξτε την στον server σας και απλα τρέξτε την.

 

 

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html><head>Hello from Tr@c3R, support to email: Astald.tor@gmail.com</head>

<br><br>

<body><?php

$LServerIP = "127.0.0.1";

$LServerPort = "2106";

$GServerIP = "127.0.0.1";

$GServerPort = "7777";

$CServerIP = "127.0.0.1";

$CServerPort = "9013";

$TimeCheck = "2";

if (! $CheckSocket = @fsockopen( $LServerIP, $LServerPort, $num, $error, $TimeCheck ))

echo '<b><font color = red >Login Server OFF</b></font><br>'; else{ echo '<b><font color = green >Login Server ON</b></font><br>';

fclose($CheckSocket); }

if (! $CheckSocket = @fsockopen( $GServerIP, $GServerPort, $num, $error, $TimeCheck ))

echo '<b><font color = red >Game Server OFF</b></font><br>'; else{ echo '<b><font color = green >Game Server ON</b></font><br>';

fclose($CheckSocket); }

if (! $CheckSocket = @fsockopen( $CServerIP, $CServerPort, $num, $error, $TimeCheck ))

echo '<b><font color = red >Community Server OFF</b></font><br>'; else{ echo '<b><font color = green >Community Server ON</b></font><br>';

fclose($CheckSocket); }

?>

</body></html>

 

 

 

 

το $TimeCheck καθοριζει τον χρονο ελεγχου οταν ο server ειναι OFF, δηλαδή ποσα sec θα περιμένετε να απαντησει (οταν ειναι ΟΝ γινεται άμεσα).

τo $LServerIP = Login Server, $GServerIP = Game Server, $CServerIP = Community Server (συνήθως ειναι στον ιδιο server οπότε ειναι ιδια).

στα $xServerPort  εβαλα τα default των pack.

 

Αν θελετε να προσθέσετε εικονίδια ή φωτάκια για την κατάσταση αντικαταστήστε τα κιτρινα με τα πρασινα γραμματα:

echo '<b><font color = red >Game Server OFF</b></font><br>'; else{ echo '<b><font color = green >Game Server ON</b></font><br>';

echo '<img src="/images/ServerOFF.jpg" /><br>'; else{ echo '<img src="/images/ServerON.jpg" /><br>';

 

Δημιουργήστε αν δεν υπάρχει ενα φακελο με ονομα images και τοποθετήστε μεσα τις δυο εικόνες, μια οταν ο server ειναι down και μια οταν ο server ειναι UP, σαν παράδειγμα έβαλα ServerON.jpg και ServerOFF.jpg (μπορει να ειναι jpg, gif ή png)

 

 

Posted

Σωστό script αλλά δεν δουλεύει αν έχεις κλειστή την fsockopen από τις ρυθμίσεις της php σου. Πολλοί web-hosters όπως το papaki ας πούμε την έχουν κλειστή by default.

Posted

Ναι ετσι ειναι αλλα συνήθως αυτο συμβαίνει σε virtual servers που χρησιμοποιούν control panel και δεν εχουν apache server.

Παραυτα μπορεις να μπεις στο panel και να ρυθμισεις το php.ini και να την ανοιξεις. Ο λογος που την κλεινουν μερικοί ειναι απλα τα ping ελέγχου κατάστασης. Οι περισσοτεροι ομως καλοι servers ειναι dedicated και τρεχουν php server.

 

Αν θελει κανεις να κανει ελεγχο αν ειναι ανοικτη η fsock μπορει να χρησιμοποιήσει τον εξής κωδικα:

 

<?php

If ( function_exists ("fsockopen"))

       { echo 'isOpen';}

else { echo 'isClose';}

?>

 

και αν ειναι ανοιχτή χρησιμοποιεί το share, διαφορετικα την ανοίγει και αν δεν θελει να την ανοίξει βρήσκει αλλο τρόπο.

Στον δικό μου server χρησιμοποιώ VB.net προγραμματακι που εγγραψα για να με ενημερωνει για το site και μου στελνει μυνημα σε mail και στο κινητό μαζι με τα στατιστικα του server ( οχι μονο βεβαια για το L2 αυτό, για ολα τα sites και forums).

Posted

δουλεύει και htm/html αν προσθέσεις στο  htaccess αρχείο την σειρα εντολή:

AddHandler application/x-httpd-php52 .php .htm .html

 

αυτο για apache, για ιιs συνήθως ειναι ενεργό ή δεν θα παιζει php γενικώς οποτε εχεις αλλα προβλήματα.

  • 3 weeks later...
Posted

Well my server is up i've putted the Login Server IP, Game server ip & CB ip and on the web-site it says down... any hints?

Posted

Some packages manage different the CS. Try to remove the CS in the first phase. There is an explanation of the grill. It works just like the Post. Only checkout if fsock is open in htaccess.

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

    • Where's the proof? I can tell you're a scammer.
    • Where was I called a scammer? Is there any proof, etc.? There are a lot of reviews about our store online, etc. https://zhyk.org/forum/showthread.php?t=1108673
    • U was reported as scammer in your previos topic why u create new topic?
    • 🔍 Inventory 1.0 is a next-generation inventory system that stands out with its special minimal clothing system. Carefully designed and prepared according to the highest standards of your server, it not only enhances your gaming experience but also contributes to your server's infrastructure. ⚙️ Supported: QB-CORE Features: ✅ Instant Delivery: All products you purchase will be instantly assigned to your account as soon as your payment is completed. ✅ Clothing System: With the special animated clothing configurations in your inventory, you will be able to change outfits with ease. Experience a unique roleplaying experience with high-quality animations and customizable clothing options. ✅ Minimalist Inventory System: This inventory system, with its visuals, animations, and mechanics, offers maximum efficiency without overwhelming your screen and limiting your roleplaying experience. It’s designed to be user-friendly while enhancing your roleplaying experience. ✅ Continuous Updates: The content in the inventory is regularly updated with innovative features added. New animations, additional clothing options, and cutting-edge features ensure a fresh and dynamic experience. ✅ Easy Setup and Compatibility: Compatible with QB-CORE, this system is easy to install and optimized for quick integration into your server. It works seamlessly with a simple drag-and-drop method. ✅ Performance Optimization: The system is optimized to avoid low FPS and performance drops. All features of the inventory run smoothly without affecting your server’s performance. ✅ Multilingual Support: With support for different languages, you can cater to an international player base and build a larger community on your server. ✅ Flexible Customization Options: You can fully customize the inventory according to your needs and server rules. Choose between different outfits and animations to create a unique gaming experience. ✅ Comprehensive Help and Support: With 24/7 support, you can quickly resolve any issues you encounter. Our technical support and user guides are always here to assist you. Shop Now! Take your game to the next level with Inventory 1.0  and enjoy its unique features. Get ready to make a real difference in your roleplaying experience!   --------------------------TEBEX: https://matza.tebex.io/package/7174862 --------------------------
  • 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