Register for your free account! | Forgot your password?

You last visited: Today at 13:55

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



HP/status.php

Discussion on HP/status.php within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2011
Posts: 31
Received Thanks: 0
HP/status.php

Hey Leute ich habe mal da eine homepage auf mein webspace gemacht und dann bei status.php meine root ip eingegeben und aber bei Login Server > World Server> Char Server steht offline ich wäre sehr dankbar wenn mir jemand sagen kann wie es sein soll DANKE!
muratlolxd is offline  
Old 11/08/2011, 14:57   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 188
Received Thanks: 56
du musst nur die config.inc.php anpassen.
In der Status.php stehen nur die Ports auf die er connected um zu sehen ob er eine Rückmeldung bekommt.

PHP Code:
<center>
<?PHP
require("./inc/config.inc.php");
        
$ip gethostbyname(SQL_HOST);
        
$portlist=array(13001);
        
$i=0;

    foreach  (
$portlist as $port){
        
$online = @fsockopen($ip$port$errno$errstr1);
    if (!
$online)
    {
        echo 
"<div class='off'> Channel1</div>";

    }
    else
    {
        echo 
"<div class='on'> Channel1</div>";
    }
        @
fclose($online);
        
$i++;
    }
    
    echo 
'<img src="images/sub.png">';

        
$ip gethostbyname(SQL_HOST);
        
$portlist=array(13002);
        
$i=0;

    foreach  (
$portlist as $port){
        
$online = @fsockopen($ip$port$errno$errstr1);
    if (!
$online)
    {
        echo 
"<div class='off'> Channel2</div>";

    }
    else
    {
        echo 
"<div class='on'> Channel2</div>";
    }
        @
fclose($online);
        
$i++;
    }
    echo 
'<img src="images/sub.png">';

        
$ip gethostbyname(SQL_HOST);
        
$portlist=array(11002);
        
$i=0;

    foreach  (
$portlist as $port){
        
$online = @fsockopen($ip$port$errno$errstr1);
    if (!
$online)
    {
        echo 
"<div class='off'> World</div>";

    }
    else
    {
        echo 
"<div class='on'> World</div>";
    }
        @
fclose($online);
        
$i++;
    }
    echo 
'<img src="images/sub.png">';

        
$ip gethostbyname(SQL_HOST);
        
$portlist=array(80);
        
$i=0;

    foreach  (
$portlist as $port){
        
$online = @fsockopen($ip$port$errno$errstr1);
    if (!
$online)
    {
        echo 
"<div class='off'> Patchserver</div>";

    }
    else
    {
        echo 
"<div class='on'> Patchserver</div>";
    }
        @
fclose($online);
        
$i++;
    }
    echo 
'<br><input type="submit" id="status_reload" class="btn" value="Neuladen">
            </center>'
;
?>
So sollte die status.php aussehen.
.Black is offline  
Old 11/08/2011, 16:37   #3





 
Marcoly's Avatar
 
elite*gold: 440
The Black Market: 1196/3/0
Join Date: May 2011
Posts: 10,932
Received Thanks: 11,778
Poste bitte mal den Inhalt deiner status.php, vielleicht
hast Du etwas falsch gemacht, sodass er es nicht richtig anzeigt.

MfG Marco_A
Marcoly is offline  
Reply


Similar Threads Similar Threads
[Suche/Search] Rollback der Status / Roll of status back
05/07/2011 - Metin2 Private Server - 0 Replies
EN: Hallo all e*pvp community. I have got 2010 serverfiles and I want to know quest function that rolls status points back. As you see on this movie YouTube - Redystrybucje statystyk DE (Google Translate): Hallo alle e * PvP Community. Ich habe 2010 Serverfiles bekam, und ich möchte Quest-Funktion, Status Punkte Rollback wissen. Wie Sie sehen auf diesem Film YouTube - Redystrybucje statystyk



All times are GMT +2. The time now is 13:55.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.