Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jamie. View Post
    stop being immature and getting ure post count up ;l
    I meant where in the radio stats u noob
    wth. How am i trying to get my post count up?

    I didn't mean to offend you. I thought you might've been someone who didn't understand php.

    You would put the code next to where all the radio info gets displayed..

    Obviously not in the echo..

  2. #12
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jackboy View Post
    wth. How am i trying to get my post count up?

    I didn't mean to offend you. I thought you might've been someone who didn't understand php.

    You would put the code next to where all the radio info gets displayed..

    Obviously not in the echo..
    K sorry if i offended you also i thought u was trying to be all big headed.
    +rep for sorryness

  3. #13
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jamie. View Post
    K sorry if i offended you also i thought u was trying to be all big headed.
    +rep for sorryness
    Lol +rep back


  4. #14
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jackboy View Post
    Lol +rep back

    so will this work

    PHP Code:
    <?php 
    // Shoutcast Server Stats 
    // Parses shoutcasts xml to make an effective stats thing for any website 
    // ©2004-2005 Daniel Brown http://www.gmtt.co.uk 
    // Please refer to the readme file for use. 
    include('Config.php');  //you may edit this path to fit your server environment otherwise leave it alone 
    if(file_exists(''.$servertitle.'.gif'))
    {
    $img "http://www.hab-tunes.com/Layout_images/Djavatars/$servertitle.gif";
    }
    else
    {
    $img "http://www.hab-tunes.com/Layout_images/Djavatars/default.gif";
    }
    $scfp fsockopen("$scip"$scport, &$errno, &$errstr30); 
     if(!
    $scfp) { 
      
    $scsuccs=1
    echo
    ''.$scdef.' is Offline'
     } 
    if(
    $scsuccs!=1){ 
     
    fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n"); 
     while(!
    feof($scfp)) { 
      
    $page .= fgets($scfp1000); 
     } 
    ###################################################################################################################### 
    /////////////////////////part 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 
    //define  xml elements 
     
    $loop = array("STREAMSTATUS""BITRATE""SERVERTITLE""CURRENTLISTENERS"); 
     
    $y=0
     while(
    $loop[$y]!=''){ 
      
    $pageed ereg_replace(".*<$loop[$y]>"""$page); 
      
    $scphp strtolower($loop[$y]); 
      $
    $scphp ereg_replace("</$loop[$y]>.*"""$pageed); 
      if(
    $loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE
       $
    $scphp urldecode($$scphp); 

    // uncomment the next line to see all variables 
    //echo'$'.$scphp.' = '.$$scphp.'<br>'; 
      
    $y++; 
     } 
    //end intro xml elements 
    ###################################################################################################################### 
    ###################################################################################################################### 
    /////////////////////////part 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 
    //get song info and history 
     
    $pageed ereg_replace(".*<SONGHISTORY>"""$page); 
     
    $pageed ereg_replace("<SONGHISTORY>.*"""$pageed); 
     
    $songatime explode("<SONG>"$pageed); 
     
    $r=1
     while(
    $songatime[$r]!=""){ 
      
    $t=$r-1
      
    $playedat[$t] = ereg_replace(".*<PLAYEDAT>"""$songatime[$r]); 
      
    $playedat[$t] = ereg_replace("</PLAYEDAT>.*"""$playedat[$t]); 
      
    $song[$t] = ereg_replace(".*<TITLE>"""$songatime[$r]); 
      
    $song[$t] = ereg_replace("</TITLE>.*"""$song[$t]); 
      
    $song[$t] = urldecode($song[$t]); 
      
    $dj[$t] = ereg_replace(".*<SERVERTITLE>"""$page); 
      
    $dj[$t] = ereg_replace("</SERVERTITLE>.*"""$pageed); 
    $r++; 
     } 
    //end song info 

    fclose($scfp); 


    //display stats 
    if($streamstatus == "1"){ 
    //you may edit the html below, make sure to keep variable intact 
    echo
    <html> 

    <head> 
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> 
    <meta name="ProgId" content="FrontPage.Editor.Document"> 
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 
    <META HTTP-EQUIV="REFRESH" CONTENT="30;URL=Djavatar.php"> 
    <link rel=stylesheet href="" type="text/css"> 
    <title>'
    .$scdef.'</title> 
    </head> 
    $img
    </body> 
    </html>'


    if(
    $streamstatus == "0"

    //you may edit the html below, make sure to keep variable intact 
    echo
    <html> 

    <head> 
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> 
    <meta name="ProgId" content="FrontPage.Editor.document"> 
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 
    <META HTTP-EQUIV="REFRESH" CONTENT="30;URL=Djavatar.php"> 
    <link rel=stylesheet href="" type="text/css"> 
    <title>Radio Server Is Offline</title> 
    </head> 

    <body text="" bgcolor=""> 
    $img
    </body> 

    </html>'

    ?>

  5. #15
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    nope because it hasn't connected to the database yet.

    PHP Code:
     <?php  
    // Shoutcast Server Stats  
    // Parses shoutcasts xml to make an effective stats thing for any website  
    // ©2004-2005 Daniel Brown http://www.gmtt.co.uk  
    // Please refer to the readme file for use.  
    include('Config.php');  //you may edit this path to fit your server environment otherwise leave it alone  
    $scfp fsockopen("$scip"$scport, &$errno, &$errstr30);  
     if(!
    $scfp) {  
      
    $scsuccs=1;  
    echo
    ''.$scdef.' is Offline';  
     }  
    if(
    $scsuccs!=1){  
     
    fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");  
     while(!
    feof($scfp)) {  
      
    $page .= fgets($scfp1000);  
     }  
    ######################################################################################################################  
    /////////////////////////part 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\  
    //define  xml elements  
     
    $loop = array("STREAMSTATUS""BITRATE""SERVERTITLE""CURRENTLISTENERS");  
     
    $y=0;  
     while(
    $loop[$y]!=''){  
      
    $pageed ereg_replace(".*<$loop[$y]>"""$page);  
      
    $scphp strtolower($loop[$y]);  
      $
    $scphp ereg_replace("</$loop[$y]>.*"""$pageed);  
      if(
    $loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE)  
       $
    $scphp urldecode($$scphp);  

    // uncomment the next line to see all variables  
    //echo'$'.$scphp.' = '.$$scphp.'<br>';  
      
    $y++;  
     }  
    //end intro xml elements  
    ######################################################################################################################  
    ######################################################################################################################  
    /////////////////////////part 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\  
    //get song info and history  
     
    $pageed ereg_replace(".*<SONGHISTORY>"""$page);  
     
    $pageed ereg_replace("<SONGHISTORY>.*"""$pageed);  
     
    $songatime explode("<SONG>"$pageed);  
     
    $r=1;  
     while(
    $songatime[$r]!=""){  
      
    $t=$r-1;  
      
    $playedat[$t] = ereg_replace(".*<PLAYEDAT>"""$songatime[$r]);  
      
    $playedat[$t] = ereg_replace("</PLAYEDAT>.*"""$playedat[$t]);  
      
    $song[$t] = ereg_replace(".*<TITLE>"""$songatime[$r]);  
      
    $song[$t] = ereg_replace("</TITLE>.*"""$song[$t]);  
      
    $song[$t] = urldecode($song[$t]);  
      
    $dj[$t] = ereg_replace(".*<SERVERTITLE>"""$page);  
      
    $dj[$t] = ereg_replace("</SERVERTITLE>.*"""$pageed);  
    $r++;  
     }  
    //end song info  

    fclose($scfp);  
    }  

    //display stats
    if(file_exists(''.$servertitle.'.gif')) 

    $img "http://www.hab-tunes.com/Layout_images/Djavatars/$servertitle.gif"

    else 

    $img "http://www.hab-tunes.com/Layout_images/Djavatars/default.gif"
    }   
    if(
    $streamstatus == "1"){  
    //you may edit the html below, make sure to keep variable intact  
    echo'  
    <html>  

    <head>  
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">  
    <meta name="ProgId" content="FrontPage.Editor.Document">  
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">  
    <META HTTP-EQUIV="REFRESH" CONTENT="30;URL=Djavatar.php">  
    <link rel=stylesheet href="" type="text/css">  
    <title>'
    .$scdef.'</title>  
    </head>  
    $img 
    </body>  
    </html>'
    ;  
    }  
    if(
    $streamstatus == "0")  
    {  
    //you may edit the html below, make sure to keep variable intact  
    echo'  
    <html>  

    <head>  
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">  
    <meta name="ProgId" content="FrontPage.Editor.document">  
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">  
    <META HTTP-EQUIV="REFRESH" CONTENT="30;URL=Djavatar.php">  
    <link rel=stylesheet href="" type="text/css">  
    <title>Radio Server Is Offline</title>  
    </head>  

    <body text="" bgcolor="">  
    $img 
    </body>  

    </html>'
    ;  
    ?>
    Lol i suck at php radio stats. But try that

  6. #16
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jackboy View Post
    nope because it hasn't connected to the database yet.

    PHP Code:
     <?php  
    // Shoutcast Server Stats  
    // Parses shoutcasts xml to make an effective stats thing for any website  
    // ©2004-2005 Daniel Brown http://www.gmtt.co.uk  
    // Please refer to the readme file for use.  
    include('Config.php');  //you may edit this path to fit your server environment otherwise leave it alone  
    $scfp fsockopen("$scip"$scport, &$errno, &$errstr30);  
     if(!
    $scfp) {  
      
    $scsuccs=1;  
    echo
    ''.$scdef.' is Offline';  
     }  
    if(
    $scsuccs!=1){  
     
    fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");  
     while(!
    feof($scfp)) {  
      
    $page .= fgets($scfp1000);  
     }  
    ######################################################################################################################  
    /////////////////////////part 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\  
    //define  xml elements  
     
    $loop = array("STREAMSTATUS""BITRATE""SERVERTITLE""CURRENTLISTENERS");  
     
    $y=0;  
     while(
    $loop[$y]!=''){  
      
    $pageed ereg_replace(".*<$loop[$y]>"""$page);  
      
    $scphp strtolower($loop[$y]);  
      $
    $scphp ereg_replace("</$loop[$y]>.*"""$pageed);  
      if(
    $loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE)  
       $
    $scphp urldecode($$scphp);  

    // uncomment the next line to see all variables  
    //echo'$'.$scphp.' = '.$$scphp.'<br>';  
      
    $y++;  
     }  
    //end intro xml elements  
    ######################################################################################################################  
    ######################################################################################################################  
    /////////////////////////part 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\  
    //get song info and history  
     
    $pageed ereg_replace(".*<SONGHISTORY>"""$page);  
     
    $pageed ereg_replace("<SONGHISTORY>.*"""$pageed);  
     
    $songatime explode("<SONG>"$pageed);  
     
    $r=1;  
     while(
    $songatime[$r]!=""){  
      
    $t=$r-1;  
      
    $playedat[$t] = ereg_replace(".*<PLAYEDAT>"""$songatime[$r]);  
      
    $playedat[$t] = ereg_replace("</PLAYEDAT>.*"""$playedat[$t]);  
      
    $song[$t] = ereg_replace(".*<TITLE>"""$songatime[$r]);  
      
    $song[$t] = ereg_replace("</TITLE>.*"""$song[$t]);  
      
    $song[$t] = urldecode($song[$t]);  
      
    $dj[$t] = ereg_replace(".*<SERVERTITLE>"""$page);  
      
    $dj[$t] = ereg_replace("</SERVERTITLE>.*"""$pageed);  
    $r++;  
     }  
    //end song info  

    fclose($scfp);  
    }  

    //display stats
    if(file_exists(''.$servertitle.'.gif')) 

    $img "http://www.hab-tunes.com/Layout_images/Djavatars/$servertitle.gif"

    else 

    $img "http://www.hab-tunes.com/Layout_images/Djavatars/default.gif"
    }   
    if(
    $streamstatus == "1"){  
    //you may edit the html below, make sure to keep variable intact  
    echo'  
    <html>  

    <head>  
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">  
    <meta name="ProgId" content="FrontPage.Editor.Document">  
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">  
    <META HTTP-EQUIV="REFRESH" CONTENT="30;URL=Djavatar.php">  
    <link rel=stylesheet href="" type="text/css">  
    <title>'
    .$scdef.'</title>  
    </head>  
    $img 
    </body>  
    </html>'
    ;  
    }  
    if(
    $streamstatus == "0")  
    {  
    //you may edit the html below, make sure to keep variable intact  
    echo'  
    <html>  

    <head>  
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">  
    <meta name="ProgId" content="FrontPage.Editor.document">  
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">  
    <META HTTP-EQUIV="REFRESH" CONTENT="30;URL=Djavatar.php">  
    <link rel=stylesheet href="" type="text/css">  
    <title>Radio Server Is Offline</title>  
    </head>  

    <body text="" bgcolor="">  
    $img 
    </body>  

    </html>'
    ;  
    ?>
    Lol i suck at php radio stats. But try that
    Ok Thanks

  7. #17
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    Doesnt seem to work ;'(

Page 2 of 2 FirstFirst 12

Posting Permissions

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