Thread: Server Status "Final Release" Done right

Page 6 of 6 FirstFirst ... 456
Results 51 to 57 of 57
  1. #51  
    Registered Member LesterKnome's Avatar
    Join Date
    Oct 2008
    Age
    24
    Posts
    306
    Thanks given
    3
    Thanks received
    3
    Rep Power
    107
    kk i have a sight with hosting and ect (Hostgator) But i dont know how to fill the form out, anyone help?
    I fighting for the crust of the little brown loaf
     

  2. #52  
    jordanmcke
    Guest
    very good job rep
     

  3. #53  
    Registered Member

    Join Date
    Jan 2007
    Age
    31
    Posts
    2,949
    Thanks given
    15
    Thanks received
    33
    Discord
    View profile
    Rep Power
    1360
    [PHP]
    <?php
    Header('Content-type: image/png');

    $image = ('status.png');
    $world = $_REQUEST['w'];

    $im = imagecreatefrompng($image);$green = imagecolorallocate($im, 0, 139, 0);
    $black = imagecolorallocate($im, 0, 0, 0);
    $red = imagecolorallocate($im, 255, 0, 0);
    $width = imagesx($im);
    $height = imagesy($im);
    $font = 2;

    $middle = (($width / 2) - 20);
    $middle2 = (($heigth / 2) + 5);

    switch ($world) {
    case 2:
    $ip = ('');
    $port = ('43594');
    if (! $sock = @fsockopen($ip, $port, $num, $error, 1)) {
    $stat = ('Offline');
    $world = ('World 1: ');
    imagestring($im, $font, 10, $middle2, $world, $black);
    imagestring($im, $font, 75, $middle2, $stat, $red);
    }
    else {
    $stat = ('Online');
    $world = ('World 1: ');
    imagestring($im, $font, 10, $middle2, $world, $black);
    imagestring($im, $font, 77, $middle2, $stat, $green);
    fclose($sock);
    }
    break;
    default:
    $ip = ('rune-flame.no-ip.org');
    $port = ('43594');
    if (! $sock = @fsockopen($ip, $port, $num, $error, 1)) {
    $stat = ('Offline');
    $world = ('World 1: ');
    imagestring($im, $font, 10, $middle2, $world, $black);
    imagestring($im, $font, 75, $middle2, $stat, $red);
    }
    else {
    $stat = ('Online');
    $world = ('World 1: ');
    imagestring($im, $font, 10, $middle2, $world, $black);
    imagestring($im, $font, 77, $middle2, $stat, $green);
    fclose($sock);
    }
    break;
    }
    imagepng($im);
    imagedestroy($im);
    ?>
    [/PHP]
     

  4. #54  
    Registered Member
    king free's Avatar
    Join Date
    Sep 2007
    Posts
    226
    Thanks given
    0
    Thanks received
    1
    Rep Power
    89
    Has anyoen got a link for this? So I can SQL inject it, thanks!
    DON'T GET v&

     

  5. #55  
    Registered Member
    Join Date
    Oct 2008
    Posts
    84
    Thanks given
    0
    Thanks received
    0
    Rep Power
    8
    Gives me bunch of mysql database errors lolz
     

  6. #56  
    legend 1234
    Guest
    is this for one server or can ppl ad there server to this aswell ?

    because iom looking for 1 that ppl cna add there server to
     

  7. #57  
    Registered Member
    Join Date
    Oct 2008
    Posts
    84
    Thanks given
    0
    Thanks received
    0
    Rep Power
    8
    People can add their own to it lolz
     

Page 6 of 6 FirstFirst ... 456

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •