mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-28 22:08:09 +02:00
fix 404
This commit is contained in:
parent
1ad1320779
commit
304de7a999
2 changed files with 10 additions and 5 deletions
|
@ -128,11 +128,15 @@ try {
|
|||
unset($menus, $menu_registered);
|
||||
include($sys_render);
|
||||
} else {
|
||||
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…
Add table
Add a link
Reference in a new issue