Add an additionnal protection for Sony PRS-T2 / Aldiko. fix #120
This commit is contained in:
parent
2a20fa688e
commit
da5ec2583a
5 changed files with 35 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue