This commit is contained in:
Igor Barkov (iwork) 2020-08-26 12:21:56 +03:00
parent 8d9d1bda8d
commit ea6e0d7bbf

View File

@ -7,10 +7,10 @@
*/ */
session_start(); session_start();
require_once '../functions.php'; //require_once '../functions.php';
db::c()->prepare();
if (empty($user['admin'])) { if (empty($user['admin'])) {
echo "<!DOCTYPE HTML><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL {$_SERVER['SCRIPT_NAME']} was not found on this server.</p><hr><address>Apache/2.2.22 (@RELEASE@) Server at Hetzner Datacenter 426</address></body></html>"; //echo "<!DOCTYPE HTML><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL {$_SERVER['SCRIPT_NAME']} was not found on this server.</p><hr><address>Apache/2.2.22 (@RELEASE@) Server at Hetzner Datacenter 426</address></body></html>";
header("HTTP/1.0 404 Not Found");
exit; exit;
} }
?> ?>