"Mute", "stop"=>"Stop", "play"=>"Play", "volume"=>"Volume", "no_choice_made_yet"=>"You have not selected a station.", "you_are_listening_to"=>"You are currently listening to", "controls"=> "Controls", "on" => "On", "off" => "Off", "now_playing" => "Now Playing", "play_url" => "Play an URL", "custom_url" => "Custom URL", "listen_broadband"=>"Listen Broadband", "broadband"=>"Broadband", ); //Settings //If Type is set to 1 the controls are shown as a default on the windows media player $settings = array ( "width" => "225", "height" => "150", "type" => "0" ); ## Disable Error Reporting ##error_reporting(0); ################ ## XML PARSER ## ################ $insideitem = false; $oidar = ""; $tag = ""; $r_name = ""; $url = ""; $broadband = ""; $type = ""; $num = ""; function startElement($parser, $name, $attrs) { global $insideitem, $tag, $r_name, $url, $broadband, $type, $num, $oidar; if ($insideitem) { $tag = $name; } elseif ($name == "STATION") { $insideitem = true; } } function endElement($parser, $name) { global $insideitem, $tag, $r_name, $url, $broadband, $type, $num, $oidar; if ($name == "STATION") { $oidar[trim($num)] = array ( "name" => trim($r_name), "url" => trim($url), "broadband" => trim($broadband), "type" => trim($type) ); $r_name = ""; $url = ""; $broadband = ""; $type = ""; $num = ""; $insideitem = false; return $oidar; } } function characterData($parser, $data) { global $insideitem, $tag, $r_name, $url, $broadband, $type, $num, $oidar; if ($insideitem) { switch ($tag) { case "NAME": $r_name .= $data; break; case "URL": $url .= $data; break; case "BROADBAND": $broadband .= $data; break; case "TYPE": $type .= $data; break; case "NUM": $num .= $data; break; } } } $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); $fp = fopen("radio.xml","r") or die("Error reading RSS data."); while ($data = fread($fp, 4096)) xml_parse($xml_parser, $data, feof($fp)) or die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); fclose($fp); xml_parser_free($xml_parser); #################### ## end XML Parser ## #################### //undefined variables: $oidar[0] = array ( "name" => "", "url" => "", "broadband" => "", "type" => "" ); $final = ""; if (isset($_GET['radio'])) { $radio = $_GET['radio']; }else{ $radio = "0"; } if (isset($_GET['bb'])) { $bb = $_GET['bb']; }else{ $bb = ""; } // Volume array $vol = array( "0"=>"0", "1"=>"10", "2"=>"20", "3"=>"30", "4"=>"40", "5"=>"50", "6"=>"60", "7"=>"70", "8"=>"80", "9"=>"90", "10"=>"100" ); // Go through every radio station and list it $count = 1; for (;;){ if(!isset($oidar[$count]['name'])){ break; } if($oidar[$count]['broadband'] == ""){ $broadband = ""; } else { $broadband = " [BB]"; } if($oidar[$count]['type'] == "rm"){ $ctypen = " [rm]"; } else { $ctypen = ""; } $final = $final . "$ctypen ".$oidar[$count]['name']."".$broadband."
\n"; $count++; } // Set current url if ($bb == "1"){ $curl = $oidar[$radio]['broadband']; } else { $curl = $oidar[$radio]['url']; } // Set current name if ($radio > 0){ if ($bb == "1"){$cname = $oidar[$radio]['name']." " . $radio_lang['broadband'];} else {$cname = $oidar[$radio]['name'];} } else { $cname = $radio_lang['no_choice_made_yet']; } ?> <? echo ($radio_lang['title']." - ".$radio_lang['now_playing'].": ".$cname); ?>
".$cname.""); ?>


Notice: Undefined variable: oidar in C:\xampp\htdocs\dFb\radio\radio.php on line 261

Notice: Undefined variable: radio in C:\xampp\htdocs\dFb\radio\radio.php on line 261

Notice: Trying to access array offset on value of type null in C:\xampp\htdocs\dFb\radio\radio.php on line 261

Notice: Trying to access array offset on value of type null in C:\xampp\htdocs\dFb\radio\radio.php on line 261

Notice: Undefined variable: settings in C:\xampp\htdocs\dFb\radio\radio.php on line 279

Notice: Trying to access array offset on value of type null in C:\xampp\htdocs\dFb\radio\radio.php on line 279

Notice: Undefined variable: settings in C:\xampp\htdocs\dFb\radio\radio.php on line 279

Notice: Trying to access array offset on value of type null in C:\xampp\htdocs\dFb\radio\radio.php on line 279

Notice: Undefined variable: curl in C:\xampp\htdocs\dFb\radio\radio.php on line 280

Notice: Undefined variable: ShowControls in C:\xampp\htdocs\dFb\radio\radio.php on line 283

Notice: Undefined variable: ShowStatusBar in C:\xampp\htdocs\dFb\radio\radio.php on line 284

Notice: Undefined variable: ShowDisplay in C:\xampp\htdocs\dFb\radio\radio.php on line 285

Notice: Undefined variable: curl in C:\xampp\htdocs\dFb\radio\radio.php on line 288

Notice: Undefined variable: settings in C:\xampp\htdocs\dFb\radio\radio.php on line 290

Notice: Trying to access array offset on value of type null in C:\xampp\htdocs\dFb\radio\radio.php on line 290

Notice: Undefined variable: settings in C:\xampp\htdocs\dFb\radio\radio.php on line 291

Notice: Trying to access array offset on value of type null in C:\xampp\htdocs\dFb\radio\radio.php on line 291

Notice: Undefined variable: ShowControls in C:\xampp\htdocs\dFb\radio\radio.php on line 293

Notice: Undefined variable: ShowStatusBar in C:\xampp\htdocs\dFb\radio\radio.php on line 293

Notice: Undefined variable: ShowDisplay in C:\xampp\htdocs\dFb\radio\radio.php on line 293
: /       [        ]
: 
Warning: Variable passed to each() is not an array or object in C:\xampp\htdocs\dFb\radio\radio.php on line 308