Forum

Results 1 to 3 of 3
  1. #1
    Join Date
    December 2009
    Location
    Germany
    Posts
    26

    [Searching] simple on/off Status

    Hello,

    i search a simple online and offline status for Teamspeak 3

    Code:
    function check_ts($ip, $tcp, $udp, $timeout=1) { //Function for the Check
    $fp = @fsockopen($ip, $tcp, $errno, $errstr, $timeout);
    if (!$fp) {
    $stat = false;
    } else {
    if (fgets($fp) == "[TS]\r\n") {
    fputs($fp, "SEL $udp\r\n");
    if (fgets($fp) == "OK\r\n") {
    $stat = true;
    } else {
    $stat = false;
    }
    } else {
    $stat = false;
    }
    if (is_resource($fp))
    @fclose($fp);
    return $stat;
    }
    }
    
    if (check_ts("127.0.0.1", 51234, 8767)) { //
    $tsserveronline="Teamspeak≤ <a href='index.php?teamspeak'><FONT COLOR=#008000>Online</FONT></a>";
    } else {
    $tsserveronline="Teamspeak≤ <a href='index.php?teamspeak'><FONT COLOR=#800000>Offline</FONT></a>";
    }
    this dont works can help me pls

    Gretzz
    Siggi

  2. #2
    Join Date
    August 2009
    Location
    USA
    Posts
    30
    Try this.
    http://www.myfileuploader.com//files/71/status.zip


    Look here to see how it works.
    http://hooked.ath.cx/status/


    I did not make this.
    Last edited by xHooKedx; December 25th, 2009 at 09:45 PM. Reason: updated link

  3. #3
    Join Date
    December 2009
    Location
    Germany
    Posts
    26
    ah

    thx i test it

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. simple web status
    By adrian17_17 in forum General Questions
    Replies: 0
    Last Post: February 2nd, 2014, 11:17 AM
  2. [Searching] I search a TS≥ Instance status viewer
    By brandl in forum Tools / Web Based
    Replies: 14
    Last Post: August 9th, 2010, 07:37 PM
  3. [PHP] Simple TS On/Off Status
    By Sammy83 in forum Tools / Web Based
    Replies: 1
    Last Post: December 30th, 2009, 10:57 AM
  4. [SEARCHING] Request Server Status over PHP
    By Laire in forum Tools / Web Based
    Replies: 9
    Last Post: December 21st, 2009, 04:10 AM

Posting Permissions

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