New: Add option MAIN_ONLY_LOGIN_ALLOWED to lock login to any user that is not value of constant.
For example MAIN_ONLY_LOGIN_ALLOWED=admin will lock login to any login except admin. This make possible to make maintenance works. A page to add/remove this constant will be added later in system-tools
This commit is contained in:
parent
f629a3d974
commit
ac47b4cf3c
@ -235,6 +235,7 @@ if ($savehandler == 'files')
|
|||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
|||||||
@ -456,7 +456,7 @@ function security_prepare_head()
|
|||||||
function listOfSessions()
|
function listOfSessions()
|
||||||
{
|
{
|
||||||
$arrayofSessions = array();
|
$arrayofSessions = array();
|
||||||
$sessPath = get_cfg_var("session.save_path")."\\";
|
$sessPath = get_cfg_var("session.save_path").'/';
|
||||||
dol_syslog('admin.lib:listOfSessions sessPath='.$sessPath);
|
dol_syslog('admin.lib:listOfSessions sessPath='.$sessPath);
|
||||||
|
|
||||||
$dh = @opendir($sessPath);
|
$dh = @opendir($sessPath);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user