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
7
feed.php
7
feed.php
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue