@@ 22-27 (lines=6) @@ | ||
19 | } |
|
20 | $qid = getURLParam('id'); |
|
21 | ||
22 | if ($config ['cops_fetch_protect'] == '1') { |
|
23 | session_start(); |
|
24 | if (!isset($_SESSION['connected'])) { |
|
25 | $_SESSION['connected'] = 0; |
|
26 | } |
|
27 | } |
|
28 | ||
29 | $OPDSRender = new OPDSRenderer(); |
|
30 |
@@ 30-35 (lines=6) @@ | ||
27 | // It has to be done before any header is sent. |
|
28 | Base::checkDatabaseAvailability(); |
|
29 | ||
30 | if ($config ['cops_fetch_protect'] == '1') { |
|
31 | session_start(); |
|
32 | if (!isset($_SESSION['connected'])) { |
|
33 | $_SESSION['connected'] = 0; |
|
34 | } |
|
35 | } |
|
36 | ||
37 | header('Content-Type:text/html;charset=utf-8'); |
|
38 |