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:
Laurent Destailleur 2009-09-02 14:34:11 +00:00
parent f629a3d974
commit ac47b4cf3c
2 changed files with 2 additions and 1 deletions

View File

@ -235,6 +235,7 @@ if ($savehandler == 'files')
print '</div>';
print '<br>';
$db->close();

View File

@ -456,7 +456,7 @@ function security_prepare_head()
function listOfSessions()
{
$arrayofSessions = array();
$sessPath = get_cfg_var("session.save_path")."\\";
$sessPath = get_cfg_var("session.save_path").'/';
dol_syslog('admin.lib:listOfSessions sessPath='.$sessPath);
$dh = @opendir($sessPath);