Duplicate
This commit is contained in:
parent
5bc09db6fb
commit
655589d407
7
base.php
7
base.php
|
@ -46,6 +46,13 @@ function getQueryString () {
|
|||
return "";
|
||||
}
|
||||
|
||||
function notFound () {
|
||||
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
|
||||
header("Status: 404 Not Found");
|
||||
|
||||
$_SERVER['REDIRECT_STATUS'] = 404;
|
||||
}
|
||||
|
||||
function getURLParam ($name, $default = NULL) {
|
||||
if (!empty ($_GET) && isset($_GET[$name]) && $_GET[$name] != "") {
|
||||
return $_GET[$name];
|
||||
|
|
|
@ -5,13 +5,6 @@ require_once ("base.php");
|
|||
require_once ("book.php");
|
||||
require_once ("resources/php-epub-meta/epub.php");
|
||||
|
||||
function notFound () {
|
||||
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
|
||||
header("Status: 404 Not Found");
|
||||
|
||||
$_SERVER['REDIRECT_STATUS'] = 404;
|
||||
}
|
||||
|
||||
function getComponentContent ($book, $component, $add) {
|
||||
$data = $book->component ($component);
|
||||
|
||||
|
|
|
@ -10,13 +10,6 @@
|
|||
require_once ("book.php");
|
||||
require_once ("data.php");
|
||||
|
||||
function notFound () {
|
||||
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
|
||||
header("Status: 404 Not Found");
|
||||
|
||||
$_SERVER['REDIRECT_STATUS'] = 404;
|
||||
}
|
||||
|
||||
global $config;
|
||||
|
||||
if ($config ['cops_fetch_protect'] == "1") {
|
||||
|
|
Loading…
Reference in a new issue