0"; if (isset($_GET['format'])) { $this_format = $_GET['format']; if ( $this_format === "mp3" ) { $format = "mp3"; $mimetype = "audio/mpeg"; } if ( $this_format === "ogg" ) { $format = "ogg"; $mimetype = "audio/ogg"; } if ( $this_format === "spx" ) { $format = "spx"; $mimetype = "audio/ogg"; } } $query = "${query}\nAND assets.filename REGEXP \"^hpr[0-9]+.$format\""; $query = "${query}\nAND assets.extension = '$format'"; $explicit = 1; if (isset($_GET['explicit'])) { $explicit = $_GET['explicit']; if ( $explicit === "0" ) { $query = "${query}\nAND eps.explicit=0 "; } } $html = 1; if (isset($_GET['html'])) { $html = $_GET['html']; if ( $html === "0" ) { $html = 0; } } $full = "0"; if (isset($_GET['full'])) { $full = $_GET['full']; if ( $full === "1" ) { $feed = "total"; } if ( $full === "0" ) { $feed = "tenday"; } } $gomax = "0"; if (isset($_GET['gomax'])) { $gomax = $_GET['gomax']; if ( $gomax === "1" ) { $gomax = "1"; } } if ( $gomax === "0" ) { $query = "${query}\nAND eps.date <= UTC_DATE() "; } if (isset($_GET['hostid'])) { $hostid = $_GET['hostid']; $hostid = intval($hostid); if (is_int(intval($hostid))) { $query = "${query}\nAND hosts.hostid = '$hostid'"; } } if (isset($_GET['series'])) { $series = $_GET['series']; $series = intval($series); if (is_int(intval($series))) { $query = "${query}\nAND eps.series = '$series'"; } } $query = "$query\nORDER 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; } } if ( $feed !== "total" ) { $query = "$query\nLIMIT $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 https://hackerpublicradio.org/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. en-us 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 https://hackerpublicradio.org/images/hpr_feed_small.png Hacker Public Radio https://hackerpublicradio.org/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 \n"; print " ".date(DATE_RFC1123, strtotime(date('Y-m-d')))."\n"; if ($result = mysqli_query($connection, $query)) { $ep_count = 0; 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="http://hackerpublicradio.org/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)))); if ( $html == 1 ) { # $show_notes = "

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

\n" . $row["notes"]; $show_notes = $row["notes"]; $warning = "

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

\n"; } else { # $show_notes = "This show has been flagged as $episode_explicit by the host.\n" . htmlspecialchars(stripslashes(strip_tags($row["notes"]))) ; $show_notes = htmlspecialchars(stripslashes(strip_tags($row["notes"]))) ; $warning = "This show has been flagged as $episode_explicit by the host.\n"; } # $show_notes = utf8_encode ( $show_notes ); $warning = 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 " https://hackerpublicradio.org/eps/hpr".$id."/index.html\n"; if ( $feed === "total" && $ep_count >= 10) { echo " \n"; } else { 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"; $ep_count ++; } } //Display non-connection errors //Close sql connection mysqli_close($connection); echo "
"; ?>