Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
PODPANEL ERROR?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Zephyrus" data-source="post: 292929" data-attributes="member: 7495"><p><strong>So basically, I keep getting this error...</strong></p><p><strong></strong></p><p><strong></strong></p><p><strong>Fatal error</strong>: Call-time pass-by-reference has been removed in <strong>/home/paraworl/public_html/spacehabbo.co.uk/radio/radio_stats.php</strong> on line <strong>3</strong></p><p><strong></strong></p><p><strong></strong></p><p><strong>The configuration page is:</strong></p><p><strong></strong></p><p><strong><?php</strong></p><p><strong>include("config.php");</strong></p><p><strong>$connect = mysql_query("SELECT * FROM info");</strong></p><p><strong>$config = mysql_fetch_array($connect);</strong></p><p><strong>//////////////////////////////////////////////////////////////////////////////////////////////</strong></p><p><strong>// Stats Information</strong></p><p><strong>// Grabs the xml from your radio server and displays it in a iframe that refreshes every 30 seconds.</strong></p><p><strong>//////////////////////////////////////////////////////////////////////////////////////////////</strong></p><p><strong>//Configuration</strong></p><p><strong>$scdef = "SpaceHabbo"; // Default station name to display when server or stream is down</strong></p><p><strong>$scip = $config['free.freeshoutcast.com']; // ip or url of shoutcast server</strong></p><p><strong>$scport = $config['#####']; // port of shoutcast server</strong></p><p><strong>$scpass = $config['#####']; // password to shoutcast server</strong></p><p><strong>//End configuration</strong></p><p><strong></strong></p><p><strong>?></strong></p><p>I cant fix it.......</p><p></p><p></p><p></p><p>THE RADIO_STATS PAGE IS { THIS IS THE PAGE I WANT TO WORK!!}</p><p></p><p></p><p><?php</p><p>include('/radio/config_radio.php'); //you may edit this path to fit your server environment otherwise leave it alone</p><p>$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 10);</p><p> if(!$scfp) {</p><p> $scsuccs=1;</p><p>echo''.$scdef.' VirtualHabbo Is Currently Offline';</p><p> }</p><p>if($scsuccs!=1){</p><p> fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");</p><p> while(!feof($scfp)) {</p><p> $page .= fgets($scfp, 1000);</p><p> }</p><p>######################################################################################################################</p><p>/////////////////////////part 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p><p>//define xml elements</p><p> $loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS");</p><p> $y=0;</p><p> while($loop[$y]!=''){</p><p> $pageed = ereg_replace(".*<$loop[$y]>", "", $page);</p><p> $scphp = strtolower($loop[$y]);</p><p> $$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);</p><p> if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE)</p><p> $$scphp = urldecode($$scphp);</p><p></p><p>// uncomment the next line to see all variables</p><p>//echo'$'.$scphp.' = '.$$scphp.'<br>';</p><p> $y++;</p><p> }</p><p>//end intro xml elements</p><p>######################################################################################################################</p><p>######################################################################################################################</p><p>/////////////////////////part 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p><p>//get song info and history</p><p> $pageed = ereg_replace(".*<SONGHISTORY>", "", $page);</p><p> $pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);</p><p> $songatime = explode("<SONG>", $pageed);</p><p> $r=1;</p><p> while($songatime[$r]!=""){</p><p> $t=$r-1;</p><p> $playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);</p><p> $playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);</p><p> $song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);</p><p> $song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);</p><p> $song[$t] = urldecode($song[$t]);</p><p> $dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page);</p><p> $dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed);</p><p>$r++;</p><p> }</p><p>//end song info</p><p></p><p>fclose($scfp);</p><p>}</p><p></p><p>//display stats</p><p>if($streamstatus == "1"){</p><p></p><p></p><p>/* Blingers fix to get the current DJ */</p><p></p><p>$abc = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x");</p><p></p><p>// get the day</p><p>$day = strtolower(date("l"));</p><p>// get the current time into an int</p><p>$timeNow = date("H", time()) -1;</p><p></p><p>if($timeNow < 0){</p><p> $timeNow = 0;</p><p>}</p><p>// select the letter from the alphabet from the int above</p><p>$timeQuery = $abc[$timeNow];</p><p></p><p>// select the DJ from the DB</p><p>$getOnlineDJ = mysql_query("SELECT $timeQuery FROM `$day`");</p><p>$rows = mysql_fetch_array($getOnlineDJ);</p><p></p><p>// current DJ</p><p>$currentDJ = $rows[$timeQuery];</p><p></p><p>/* End Blingers DJ fix */</p><p></p><p>// Get the habbo name from the DJ name</p><p>$habbo = mysql_query("SELECT * FROM users WHERE djname='{$currentDJ}'");</p><p>$row = mysql_fetch_array($habbo);</p><p>$habboname = $row['habboname'];</p><p>if(is_null($habboname)){</p><p> $habboname = "SirTezza";</p><p>}</p><p>//you may edit the html below, make sure to keep variable intact</p><p>echo'</p><p><head></p><p><META HTTP-EQUIV="REFRESH" CONTENT="10;URL=radio_stats.php"></p><p></p><p></head></p><p></p><p><img src="<a href="http://www.habbo.com/habbo-imaging/avatarimage?user='.$habboname.'&action=wlk&direction=4&head_direction=4%20%20amp;gesture=sml&size=s" target="_blank">http://www.habbo.com/habbo-imaging/avatarimage?user='.$habboname.'&action=wlk&direction=4&head_direction=4 amp;gesture=sml&size=s</a>" align="right"></p><p><b>Current DJ:</b><br>'.$servertitle.'<br></p><p><b>Listeners:</b><br>&nbsp;'.$currentlisteners.'<br></p><p><b>Current Song:</b><br><marquee> '.$song[0].'</marquee><br></p><p></p><p><b><u>Recently Played Songs:</b></u><br></p><p><b>1.</b> '.$song[1].'<br></p><p><b>2.</b> '.$song[2].'<br></p><p><b>3.</b> '.$song[3].'<br></p><p><b>4.</b> '.$song[4].'<br></p><p>';</p><p>}</p><p>if($streamstatus == "0")</p><p>{</p><p>//you may edit the html below, make sure to keep variable intact</p><p>echo'</p><p><html></p><p><META HTTP-EQUIV="REFRESH" CONTENT="10;URL=radio_stats.php"></p><p></head></p><p></p><p><div class="offline"><b>VirtualHabbo Radio appears to be offline.</b><br></p><p>Please check back later.</div></p><p></body></p><p></p><p></html>';</p><p>}</p><p>?></font></p><p></body></p></blockquote><p></p>
[QUOTE="Zephyrus, post: 292929, member: 7495"] [B]So basically, I keep getting this error... Fatal error[/B]: Call-time pass-by-reference has been removed in [B]/home/paraworl/public_html/spacehabbo.co.uk/radio/radio_stats.php[/B] on line [B]3[/B] [B] The configuration page is: <?php include("config.php"); $connect = mysql_query("SELECT * FROM info"); $config = mysql_fetch_array($connect); ////////////////////////////////////////////////////////////////////////////////////////////// // Stats Information // Grabs the xml from your radio server and displays it in a iframe that refreshes every 30 seconds. ////////////////////////////////////////////////////////////////////////////////////////////// //Configuration $scdef = "SpaceHabbo"; // Default station name to display when server or stream is down $scip = $config['free.freeshoutcast.com']; // ip or url of shoutcast server $scport = $config['#####']; // port of shoutcast server $scpass = $config['#####']; // password to shoutcast server //End configuration ?>[/B] I cant fix it....... THE RADIO_STATS PAGE IS { THIS IS THE PAGE I WANT TO WORK!!} <?php include('/radio/config_radio.php'); //you may edit this path to fit your server environment otherwise leave it alone $scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 10); if(!$scfp) { $scsuccs=1; echo''.$scdef.' VirtualHabbo Is Currently 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($scfp, 1000); } ###################################################################################################################### /////////////////////////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"){ /* Blingers fix to get the current DJ */ $abc = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x"); // get the day $day = strtolower(date("l")); // get the current time into an int $timeNow = date("H", time()) -1; if($timeNow < 0){ $timeNow = 0; } // select the letter from the alphabet from the int above $timeQuery = $abc[$timeNow]; // select the DJ from the DB $getOnlineDJ = mysql_query("SELECT $timeQuery FROM `$day`"); $rows = mysql_fetch_array($getOnlineDJ); // current DJ $currentDJ = $rows[$timeQuery]; /* End Blingers DJ fix */ // Get the habbo name from the DJ name $habbo = mysql_query("SELECT * FROM users WHERE djname='{$currentDJ}'"); $row = mysql_fetch_array($habbo); $habboname = $row['habboname']; if(is_null($habboname)){ $habboname = "SirTezza"; } //you may edit the html below, make sure to keep variable intact echo' <head> <META HTTP-EQUIV="REFRESH" CONTENT="10;URL=radio_stats.php"> </head> <img src="[url]http://www.habbo.com/habbo-imaging/avatarimage?user='.$habboname.'&action=wlk&direction=4&head_direction=4%20%20amp;gesture=sml&size=s[/url]" align="right"> <b>Current DJ:</b><br>'.$servertitle.'<br> <b>Listeners:</b><br> '.$currentlisteners.'<br> <b>Current Song:</b><br><marquee> '.$song[0].'</marquee><br> <b><u>Recently Played Songs:</b></u><br> <b>1.</b> '.$song[1].'<br> <b>2.</b> '.$song[2].'<br> <b>3.</b> '.$song[3].'<br> <b>4.</b> '.$song[4].'<br> '; } if($streamstatus == "0") { //you may edit the html below, make sure to keep variable intact echo' <html> <META HTTP-EQUIV="REFRESH" CONTENT="10;URL=radio_stats.php"> </head> <div class="offline"><b>VirtualHabbo Radio appears to be offline.</b><br> Please check back later.</div> </body> </html>'; } ?></font> </body> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
PODPANEL ERROR?
Top