Jump to content

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Heyy, 

this could help you out.

                error_reporting(0);
                $host = "89.221.212.165";
                
                if(fsockopen($host, 3306)) {
                    echo("Databáze: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>");
                } else {
                    echo("Databáze: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>");
                }
                echo("</br>");
                if(fsockopen($host, 11000)) {
                    echo("Přihlášení: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>");
                } else {
                    echo("Přihlášení: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>");
                }
                echo("</br>");
                if(fsockopen($host, 13001)) {
                    echo("Kanál 1: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>");
                } else {
                    echo("Kanál 1: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>");
                }
                echo("</br>");
                if(fsockopen($host, 13011)) {
                    echo("Kanál 2: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>");
                } else {
                    echo("Kanál 2: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>");
                }
                echo("</br>");
                if(fsockopen($host, 13021)) {
                    echo("Kanál 3: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>");
                } else {
                    echo("Kanál 3: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>");
                }
                echo("</br>");
                if(fsockopen($host, 13031)) {
                    echo("Kanál 4: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>");
                } else {
                    echo("Kanál 4: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>");
                }
                echo("</br>");


 

Link to comment
https://metin2.dev/topic/30491-status-server-mt2-website/#findComment-156053
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.