diff --git a/www/feeds/download.php b/www/feeds/download.php index 0e394dbe..f4eb32e8 100644 --- a/www/feeds/download.php +++ b/www/feeds/download.php @@ -18,23 +18,23 @@ try{ } // Certain user agents may bypass login entirely - if(isset($_SERVER['HTTP_USER_AGENT'])){ - $isUserAgentAllowed = (bool)Db::QueryInt('select count(*) from FeedUserAgents where instr(?, UserAgent) limit 1', [$_SERVER['HTTP_USER_AGENT']]); - } + // if(isset($_SERVER['HTTP_USER_AGENT'])){ + // $isUserAgentAllowed = (bool)Db::QueryInt('select count(*) from FeedUserAgents where instr(?, UserAgent) limit 1', [$_SERVER['HTTP_USER_AGENT']]); + // } - if(!$isUserAgentAllowed){ - if($GLOBALS['User'] === null){ - throw new Exceptions\LoginRequiredException(); - } + // if(!$isUserAgentAllowed){ + // if($GLOBALS['User'] === null){ + // throw new Exceptions\LoginRequiredException(); + // } - if(!preg_match('/\.xml$/ius', $path)){ - throw new Exceptions\InvalidPermissionsException(); - } + // if(!preg_match('/\.xml$/ius', $path)){ + // throw new Exceptions\InvalidPermissionsException(); + // } - if(!$GLOBALS['User']->Benefits->CanAccessFeeds){ - throw new Exceptions\InvalidPermissionsException(); - } - } + // if(!$GLOBALS['User']->Benefits->CanAccessFeeds){ + // throw new Exceptions\InvalidPermissionsException(); + // } + // } // Everything OK, serve the file using Apache. // The xsendfile Apache module tells Apache to serve the file, including not-modified or etag headers.