forked from kevinowino869/mitrobill
Update: Force Logout
add Force Logout in maintenance mode Function: if it enabled the system will kick out the user from the dashboard, but if not enabled the system will retain the user login section and display maintenance mode message.
This commit is contained in:
@ -161,8 +161,11 @@ class User
|
||||
{
|
||||
global $config;
|
||||
if ($config['maintenance_mode'] == true) {
|
||||
displayMaintenanceMessage();
|
||||
// r2(U . 'logout', 'd', '');
|
||||
if ($config['maintenance_mode_logout'] == true) {
|
||||
r2(U . 'logout', 'd', '');
|
||||
} else {
|
||||
displayMaintenanceMessage();
|
||||
}
|
||||
}
|
||||
if (!$id) {
|
||||
$id = User::getID();
|
||||
|
Reference in New Issue
Block a user