Files
ops-Gazelle/public/feeds.php

19 lines
562 B
PHP

<?php
// Prevent people from clearing feeds
if (isset($_GET['clearcache'])) {
unset($_GET['clearcache']);
}
require_once(__DIR__ . '/../lib/bootstrap.php');
header('Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0');
header('Pragma:');
header('Expires: ' . date('D, d M Y H:i:s', time() + (2 * 60 * 60)) . ' GMT');
header('Last-Modified: ' . date('D, d M Y H:i:s') . ' GMT');
$Feed = new Feed;
$Feed->UseSSL = (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443);
require_once(__DIR__ . '/../sections/feeds/index.php');