$num = rand(111111,999999); header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); require_once "/home/abovetopsecret/aboveboard/config.php"; mysql_pconnect($dbhost, $dbuser, $dbpw); mysql_select_db($dbname); $feedquery = ""; if($_GET['file']){ $file = $_GET['file']; $query = mysql_query("select * from podcast where filename = '$file'"); $thefile = mysql_fetch_array($query); $file = $thefile['filename']; $min = $thefile['min']; $sec = $thefile['sec']; $title = $thefile['title']; // $description = $thefile['description']; $thread = $thefile['tid']; $podchannel = $thefile['podchannel']; $member = $thefile['member']; $feedquery = "and podchannel = '$podchannel'"; }else{ $query = mysql_query("select * from podcast where status = 'live' order by dateline DESC limit 0,1"); $thefile = mysql_fetch_array($query); $file = $thefile['filename']; $min = $thefile['min']; $sec = $thefile['sec']; $title = $thefile['title']; // $description = $thefile['description']; $thread = $thefile['tid']; // $podchannel = $thefile['podchannel']; $member = $thefile['member']; $feedtitle = "All Feeds"; } if($_GET['feed']){ $podchannel = $_GET['feed']; $feedquery = "and podchannel = '$podchannel'"; $query = mysql_query("select * from podcast where status = 'live' $feedquery order by dateline DESC limit 0,1"); $thefile = mysql_fetch_array($query); $file = $thefile['filename']; $min = $thefile['min']; $sec = $thefile['sec']; $title = $thefile['title']; // $description = $thefile['description']; $thread = $thefile['tid']; // $podchannel = $thefile['podchannel']; $member = $thefile['member']; $feedtitle = "All Feeds"; } $feedtitle = "All Podcasts In All Feeds"; if($podchannel == "music"){ $feedtitle = "Member Music Feed"; } if($podchannel == "atsx"){ $feedtitle = "Extraterrestrials & Science Feed"; } if($podchannel == "atss"){ $feedtitle = "Staff Podcast Feed"; } if($podchannel == "atsc"){ $feedtitle = "Conspiracy Theory Feed"; } if($podchannel == "atsf"){ $feedtitle = "Fragile Earth & Health Feed"; } if($podchannel == "atsg"){ $feedtitle = "Government & Military Feed"; } if($podchannel == "talk"){ $feedtitle = "General Talk Feed"; } if($podchannel == "humor"){ $feedtitle = "Humor Feed"; } if($podchannel == "atsp"){ $feedtitle = "Paranormal Feed"; } $filelist = ""; $query = mysql_query("select * from podcast where filename <> '$file' $feedquery AND status = 'live' order by dateline DESC limit 0,8"); while($play = mysql_fetch_array($query)){ $filelist = $filelist."
|
|