Add an additionnal protection for Sony PRS-T2 / Aldiko. fix #120

This commit is contained in:
Sébastien Lucas 2013-12-10 21:34:19 +01:00
parent 2a20fa688e
commit da5ec2583a
5 changed files with 35 additions and 1 deletions

View file

@ -17,6 +17,14 @@ function notFound () {
$_SERVER['REDIRECT_STATUS'] = 404;
}
if ($config ['cops_fetch_protect'] == "1") {
session_start();
if (!isset($_SESSION['connected'])) {
notFound ();
return;
}
}
global $config;
$expires = 60*60*24*14;
header("Pragma: public");