Server Status Text scrips menu

User Tag List

Results 1 to 4 of 4
  1. #1
    project anthrax's Avatar Contributor
    Reputation
    180
    Join Date
    Nov 2007
    Posts
    993
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Server Status Text scrips

    (Php script dont include this im just telling you)



    <?
    php
    /* Configurations */
    $host = 'server ip;
    $host2 = '
    mysql ip';
    $ftp_port = '
    21';
    $web_port = '
    80';
    $cpan_port = '
    2082';
    $sql_port = '
    3306';
    $interval = time()+5;
    $online = '
    <strong><font size="2" color="indigo">Online ^_^</font></strong>';
    $offline = '
    <strong><font size="2" color="darkred">Offline ;_;</font></strong>';
    #####################################
    #
    # DO NOT EDIT BELOW HERE READ NOOBS
    #
    ####################
    #################
    /* Disable Error Reporting */
    error_reporting(0);
    /* Check Server Status, If Server Status Was Not Checked In Last $interval seconds */
    if($_COOKIE["checked"] != "true")
    {
    /* Check Server Status */
    $ftp = fsockopen($host, $ftp_port, $errno, $errstr, 1);
    $web = fsockopen($host, $web_port, $errno, $errstr, 1);
    $cpan = fsockopen($host, $cpan_port, $errno, $errstr, 1);
    $sql = fsockopen($host2, $sql_port, $errno, $errstr, 1);
    /* Workout Server Status & Set Cookie */
    if(!$ftp){ $ftp_status = $offline; setcookie("ftp_status", "offline", $interval); } else { $ftp_status = $online; }
    if(!$web){ $web_status = $offline; setcookie("web_status", "offline", $interval); } else { $web_status = $online; }
    if(!$cpan){ $cpan_status = $offline; setcookie("cpan_status", "offline", $interval); } else { $cpan_status = $online; }
    if(!$sql){ $sql_status = $offline; setcookie("sql_status", "offline", $interval); } else { $sql_status = $online; }
    /* Set Cookie To Let The Script Know, Server Status is Checked */
    setcookie("checked", "true", $interval);
    }
    else
    if($_COOKIE["checked"] == "true")
    {
    /* Read Cookie Values */
    if($_COOKIE["ftp_status"] == "offline"){ $ftp_status = $offline; } else { $ftp_status = $online; }
    if($_COOKIE["web_status"] == "offline"){ $web_status = $offline; } else { $web_status = $online; }
    if($_COOKIE["cpan_status"] == "offline"){ $cpan_status = $offline; } else { $cpan_status = $online; }
    if($_COOKIE["sql_status"] == "offline"){ $sql_status = $offline; } else { $sql_status = $online; }
    }
    ?>


    removed by Unholy

    Server Status Text scrips
  2. #2
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    isnt this just copied of arcs website, correct me if im wrong but looks the same lol anyway if its your work thanks


  3. #3
    project anthrax's Avatar Contributor
    Reputation
    180
    Join Date
    Nov 2007
    Posts
    993
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not that I know of and thanks
    removed by Unholy

  4. #4
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    np fella ^^


Similar Threads

  1. [Website] ArcEmu, Armory, Live Server Status, Online Players, Registration
    By Sebastian011 in forum WoW EMU General Releases
    Replies: 24
    Last Post: 11-05-2010, 03:30 AM
  2. [Showoff] server banner text
    By volitle in forum Art & Graphic Design
    Replies: 0
    Last Post: 08-28-2008, 07:05 PM
  3. How would I make a server status page? (Online player list, online/offline, etc.)
    By pioneer1337 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 07-29-2008, 08:35 AM
  4. [request] Server status part of website
    By project anthrax in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 04-27-2008, 08:11 PM
  5. Server Status script?
    By chronic7 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 03-22-2008, 07:42 AM
All times are GMT -5. The time now is 11:47 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search