diff --git a/www/rss-future.php b/www/rss-future.php deleted file mode 100644 index 5a17996..0000000 --- a/www/rss-future.php +++ /dev/null @@ -1,213 +0,0 @@ - 0 -AND eps.date >= UTC_DATE()"; - -if (isset($_GET['format'])) { - $this_format = $_GET['format']; - if ( $this_format === "mp3" ) { - $format = "mp3"; - } - if ( $this_format === "ogg" ) { - $format = "ogg"; - } - if ( $this_format === "spx" ) { - $format = "spx"; - } -} - -$query = "${query}\nAND assets.filename REGEXP \"^hpr[0-9]+.$format\""; -$query = "${query}\nAND assets.extension = '$format'"; - -$html = 1; -if (isset($_GET['html'])) { - $html = $_GET['html']; - if ( $html === "0" ) { - $html = 0; - } -} - -$full = "1"; -if (isset($_GET['full'])) { - $full = $_GET['full']; - if ( $full === "1" ) { - $feed = "total"; - } - if ( $full === "0" ) { - $feed = "tenday"; - } -} - -if (isset($_GET['hostid'])) { - $hostid = $_GET['hostid']; - $hostid = intval($hostid); - if (is_int(intval($hostid))) { - $query = "$query AND hosts.hostid = '$hostid'"; - } -} -if (isset($_GET['series'])) { - $series = $_GET['series']; - $series = intval($series); - if (is_int(intval($series))) { - $query = "$query AND eps.series = '$series'"; - } -} - -$query = "$query ORDER BY id DESC "; - -if (isset($_GET['limit'])) { - $this_limit = $_GET['limit']; - $this_limit = intval($this_limit); - if (is_int(intval($this_limit))) { - $limit = $this_limit; - } -} - -header("Content-type: application/xml"); -header("Pragma: public"); -header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); - -date_default_timezone_set('UTC'); - -print '' . "\n"; - -?> - - - Hacker Public Radio - Future Feed - about.html - A daily show hosted the community on topics that are of interest to hackers and hobbyists. - Hacker Public Radio is an podcast that releases shows every weekday Monday through Friday. Our shows are produced by the community (you) and can be on any topic that are of interest to hackers and hobbyists. This is the shows that are in the future feed. - en-us - - - - - - - images/hpr_feed_itunes.png"/> - yes - Hacker Public Radio - Community Radio, Tech Interviews, Linux, Open, Hobby, Software Freedom - Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License - feedback@NOSPAM-hackerpublicradio.org (HPR Feedback) - - - HPR Volunteer - admin@hackerpublicradio.org - - admin@hackerpublicradio.org (HPR Volunteer) - kate - http://www.rssboard.org/rss-specification - 720 - - Saturday - Sunday - - - images/hpr_feed_small.png - Hacker Public Radio - about.html - The Hacker Public Radio Old Microphone Logo - 164 - 144 - - HPR Volunteer - Hacker Public Radio is an podcast that releases shows every weekday Monday through Friday. Our shows are produced by the community (you) and can be on any topic that are of interest to hackers and hobbyists. - admin@hackerpublicradio.org - images/hpr_feed_itunes.png"/> - -\n"; -print " ".date(DATE_RFC1123, strtotime(date('Y-m-d')))."\n"; - -//Set $r to SQL query for execution agains the table - -if ($result = mysqli_query($connection, $query)) { - while ($row = mysqli_fetch_array($result)) { - $id = fixid(stripslashes($row['id'])); - $version = $row['version']; - if ( $version === "0" ) { - $version = ""; - } - else { - $version = ".${version}"; - } - $episode_explicit = $row['explicit']; - if ($episode_explicit == 0) { - $episode_explicit = "Clean"; - } - else{ - $episode_explicit = "Explicit"; - } - $url="${baseurl}eps/hpr${id}${version}"; - if (isset($_GET['hostidinfilename'])) { - $hostidinfilename = $_GET['hostidinfilename']; - if ( $hostidinfilename === "1" ) { - $url = $url . "_host-" . htmlspecialchars(stripslashes(strip_tags($row["hostid"]))); - } - } - if ( isset($_GET['seriesidinfilename']) ) { - $seriesidinfilename = $_GET['seriesidinfilename']; - if ( $seriesidinfilename === "1" ) { - $url = $url . "_series-" . htmlspecialchars(stripslashes(strip_tags($row["series"]))); - } - } - $url = $url . "." . $format; - - $itunes_summary = htmlspecialchars(stripslashes(strip_tags(substr($row["notes"],0,4000)))); - $show_notes = $row["notes"]; - $warning = "

This show has been flagged as $episode_explicit by the host.

\n"; - $show_notes = $show_notes . utf8_encode ( $warning ); - echo " \n"; - if ( $episode_explicit === "Clean" ) { - echo " no\n"; - echo " No\n"; - } - else { - echo " yes\n"; - echo " Yes\n"; - } - - echo " HPR$id: " . htmlspecialchars(stripslashes(strip_tags($row["title"]))) . "\n"; - // echo " " . ($row["title"]) . "\n"; - $email_padded = formatemail($row['email']); - echo " ". $email_padded . " (" . htmlspecialchars(stripslashes(strip_tags($row["host"]))) .")\n"; - echo " ". $email_padded . " (" . htmlspecialchars(stripslashes(strip_tags($row["host"]))) .")\n"; - echo " ". $email_padded . " (" . htmlspecialchars(stripslashes(strip_tags($row["host"]))) .")\n"; - echo " \n"; - echo " ${baseurl}eps/hpr".$id."/index.html\n"; - echo " \n\n"; -// echo " \n\n"; - echo " \n\n"; - echo " " .date(DATE_RFC1123, strtotime($row['date'])) . "\n"; - $length = $row['size']; - echo " \n"; - echo " " . $url . "\n"; - echo " \n"; - } -} -//Display non-connection errors -//Close sql connection -mysqli_close($connection); -echo "
-
-"; -?>