Send 404 on non-existing pages
This commit is contained in:
@ -7,7 +7,7 @@ send_headers([$style]);
|
||||
try{
|
||||
$db=new PDO('mysql:host=' . DBHOST . ';dbname=' . DBNAME . ';charset=utf8mb4', DBUSER, DBPASS, [PDO::ATTR_ERRMODE=>PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]);
|
||||
}catch(PDOException $e){
|
||||
http_send_status(500);
|
||||
http_response_code(500);
|
||||
die($I['nodb']);
|
||||
}
|
||||
asort($categories);
|
||||
|
Reference in New Issue
Block a user