| @@ 21-26 (lines=6) @@ | ||
| 18 | $page = Base::PAGE_OPENSEARCH_QUERY; |
|
| 19 | $qid = getURLParam ("id"); |
|
| 20 | ||
| 21 | if ($config ['cops_fetch_protect'] == "1") { |
|
| 22 | session_start(); |
|
| 23 | if (!isset($_SESSION['connected'])) { |
|
| 24 | $_SESSION['connected'] = 0; |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||
| 28 | $OPDSRender = new OPDSRenderer (); |
|
| 29 | ||
| @@ 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 | ||