mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 09:45:03 +02:00
New Feature: Maintenance Mode
Maintenance Mode when enabled user/customer will not be able to login, a maintenance page will be displayed instead. but all admin users can login
This commit is contained in:
parent
0bad687f7a
commit
533d46bbf5
6 changed files with 543 additions and 181 deletions
|
@ -5,6 +5,11 @@
|
|||
* by https://t.me/ibnux
|
||||
**/
|
||||
|
||||
$maintenance_mode = $config['maintenance_mode'];
|
||||
if ($maintenance_mode == true){
|
||||
displayMaintenanceMessage();
|
||||
}
|
||||
|
||||
if (User::getID()) {
|
||||
r2(U . 'home');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue