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

@ -23,6 +23,13 @@
$page = Base::PAGE_OPENSEARCH_QUERY;
$qid = getURLParam ("id");
if ($config ['cops_fetch_protect'] == "1") {
session_start();
if (!isset($_SESSION['connected'])) {
$_SESSION['connected'] = 0;
}
}
$OPDSRender = new OPDSRenderer ();
switch ($page) {