Merge branch 'Development' of https://github.com/hotspotbilling/phpnuxbill into Development
This commit is contained in:
commit
8fc7afb173
@ -128,11 +128,15 @@ try {
|
|||||||
unset($menus, $menu_registered);
|
unset($menus, $menu_registered);
|
||||||
include($sys_render);
|
include($sys_render);
|
||||||
} else {
|
} else {
|
||||||
// header 404
|
if( empty($_SERVER["HTTP_SEC_FETCH_DEST"]) || $_SERVER["HTTP_SEC_FETCH_DEST"] != 'document' ){
|
||||||
header("HTTP/1.0 404 Not Found");
|
// header 404
|
||||||
header("Content-Type: text/html; charset=utf-8");
|
header("HTTP/1.0 404 Not Found");
|
||||||
echo "404 Not Found";
|
header("Content-Type: text/html; charset=utf-8");
|
||||||
die();
|
echo "404 Not Found";
|
||||||
|
die();
|
||||||
|
}else{
|
||||||
|
r2(getUrl('login'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
Message::sendTelegram(
|
Message::sendTelegram(
|
||||||
|
@ -216,6 +216,16 @@ switch ($action) {
|
|||||||
$_POST['man_fields_custom'] = isset($_POST['man_fields_custom']) ? 'yes' : 'no';
|
$_POST['man_fields_custom'] = isset($_POST['man_fields_custom']) ? 'yes' : 'no';
|
||||||
$enable_session_timeout = isset($_POST['enable_session_timeout']) ? 1 : 0;
|
$enable_session_timeout = isset($_POST['enable_session_timeout']) ? 1 : 0;
|
||||||
$_POST['enable_session_timeout'] = $enable_session_timeout;
|
$_POST['enable_session_timeout'] = $enable_session_timeout;
|
||||||
|
|
||||||
|
// hide dashboard
|
||||||
|
$_POST['hide_mrc'] = _post('hide_mrc', 'no');
|
||||||
|
$_POST['hide_tms'] = _post('hide_tms', 'no');
|
||||||
|
$_POST['hide_al'] = _post('hide_al', 'no');
|
||||||
|
$_POST['hide_uet'] = _post('hide_uet', 'no');
|
||||||
|
$_POST['hide_vs'] = _post('hide_vs', 'no');
|
||||||
|
$_POST['hide_pg'] = _post('hide_pg', 'no');
|
||||||
|
$_POST['hide_aui'] = _post('hide_aui', 'no');
|
||||||
|
|
||||||
foreach ($_POST as $key => $value) {
|
foreach ($_POST as $key => $value) {
|
||||||
$d = ORM::for_table('tbl_appconfig')->where('setting', $key)->find_one();
|
$d = ORM::for_table('tbl_appconfig')->where('setting', $key)->find_one();
|
||||||
if ($d) {
|
if ($d) {
|
||||||
|
@ -137,11 +137,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="HideDashboardContent">
|
<div class="panel-heading" role="tab" id="HideDashboardContent">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -177,11 +173,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/login-page-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel" id="accordion" role="tablist" aria-multiselectable="true">
|
<div class="panel" id="accordion" role="tablist" aria-multiselectable="true">
|
||||||
<div class="panel-heading" role="tab" id="LoginPage">
|
<div class="panel-heading" role="tab" id="LoginPage">
|
||||||
<h3 class="panel-title">
|
<h3 class="panel-title">
|
||||||
@ -285,11 +277,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="Registration">
|
<div class="panel-heading" role="tab" id="Registration">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -426,12 +414,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="Security">
|
<div class="panel-heading" role="tab" id="Security">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -504,11 +488,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="Voucher">
|
<div class="panel-heading" role="tab" id="Voucher">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -572,11 +552,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="FreeRadius">
|
<div class="panel-heading" role="tab" id="FreeRadius">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -607,11 +583,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="ExtendPostpaidExpiration">
|
<div class="panel-heading" role="tab" id="ExtendPostpaidExpiration">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -655,11 +627,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="CustomerBalanceSystem">
|
<div class="panel-heading" role="tab" id="CustomerBalanceSystem">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -711,11 +679,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="TelegramNotification">
|
<div class="panel-heading" role="tab" id="TelegramNotification">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -755,11 +719,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="SMSNotification">
|
<div class="panel-heading" role="tab" id="SMSNotification">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -818,11 +778,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="WhatsappNotification">
|
<div class="panel-heading" role="tab" id="WhatsappNotification">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -856,11 +812,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="EmailNotification">
|
<div class="panel-heading" role="tab" id="EmailNotification">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -942,11 +894,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="UserNotification">
|
<div class="panel-heading" role="tab" id="UserNotification">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -1009,11 +957,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="TawkToChatWidget">
|
<div class="panel-heading" role="tab" id="TawkToChatWidget">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -1050,11 +994,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="APIKey">
|
<div class="panel-heading" role="tab" id="APIKey">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -1081,11 +1021,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="Proxy">
|
<div class="panel-heading" role="tab" id="Proxy">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -1118,11 +1054,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="TaxSystem">
|
<div class="panel-heading" role="tab" id="TaxSystem">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -1193,11 +1125,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" role="form" action="{Text::url('')}settings/app-post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-heading" role="tab" id="GithubAuthentication">
|
<div class="panel-heading" role="tab" id="GithubAuthentication">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@ -1243,7 +1171,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-navbar-role">
|
<div class="bs-callout bs-callout-info" id="callout-navbar-role">
|
||||||
<h4><b>{Lang::T('Settings For Mikrotik')}</b></h4>
|
<h4><b>{Lang::T('Settings For Mikrotik')}</b></h4>
|
||||||
<p>/ip hotspot walled-garden <br>
|
<p>/ip hotspot walled-garden <br>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "2025.2.11"
|
"version": "2025.2.12.1"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user