fix 404
This commit is contained in:
parent
1ad1320779
commit
304de7a999
@ -128,11 +128,15 @@ try {
|
||||
unset($menus, $menu_registered);
|
||||
include($sys_render);
|
||||
} else {
|
||||
// header 404
|
||||
header("HTTP/1.0 404 Not Found");
|
||||
header("Content-Type: text/html; charset=utf-8");
|
||||
echo "404 Not Found";
|
||||
die();
|
||||
if( empty($_SERVER["HTTP_SEC_FETCH_DEST"]) || $_SERVER["HTTP_SEC_FETCH_DEST"] != 'document' ){
|
||||
// header 404
|
||||
header("HTTP/1.0 404 Not Found");
|
||||
header("Content-Type: text/html; charset=utf-8");
|
||||
echo "404 Not Found";
|
||||
die();
|
||||
}else{
|
||||
r2(getUrl('login'));
|
||||
}
|
||||
}
|
||||
} catch (Throwable $e) {
|
||||
Message::sendTelegram(
|
||||
|
@ -1,5 +1,6 @@
|
||||
{include file="sections/header.tpl"}
|
||||
|
||||
<img src="/asdsad/asdasd/asdasd">
|
||||
<div class="row">
|
||||
{if in_array($_admin['user_type'],['SuperAdmin','Admin', 'Report'])}
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
|
Loading…
x
Reference in New Issue
Block a user