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
f47dfe8eee
commit
f629a3d974
@ -98,11 +98,13 @@ $listofsessions=listOfSessions();
|
|||||||
|
|
||||||
print_barre_liste($langs->trans("Sessions"), $page, $_SERVER["PHP_SELF"],"",$sortfield,$sortorder,'',$num,0,'setup');
|
print_barre_liste($langs->trans("Sessions"), $page, $_SERVER["PHP_SELF"],"",$sortfield,$sortorder,'',$num,0,'setup');
|
||||||
|
|
||||||
$savehandler=get_cfg_var("session.save_handler");
|
$savehandler=ini_get("session.save_handler");
|
||||||
$savepath=get_cfg_var("session.save_path");
|
$savepath=ini_get("session.save_path");
|
||||||
|
$openbasedir=ini_get("open_basedir");
|
||||||
|
|
||||||
print '<b>'.$langs->trans("SessionSaveHandler").'</b>: '.$savehandler.'<br>';
|
print '<b>'.$langs->trans("SessionSaveHandler").'</b>: '.$savehandler.'<br>';
|
||||||
print '<b>'.$langs->trans("SessionSavePath").'</b>: '.$savepath.'<br>';
|
print '<b>'.$langs->trans("SessionSavePath").'</b>: '.$savepath.'<br>';
|
||||||
|
if ($openbasedir) print '<b>'.$langs->trans("OpenBaseDir").'</b>: '.$openbasedir.'<br>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
if ($_GET["action"] == 'purge')
|
if ($_GET["action"] == 'purge')
|
||||||
@ -197,8 +199,7 @@ if ($savehandler == 'files')
|
|||||||
|
|
||||||
if (sizeof($listofsessions) == 0)
|
if (sizeof($listofsessions) == 0)
|
||||||
{
|
{
|
||||||
if ($usefilter) print '<tr><td colspan="6">'.$langs->trans("NoSessionsFound").'</td></tr>';
|
print '<tr><td colspan="6">'.$langs->trans("NoSessionFound",$savepath,$openbasedir).'</td></tr>';
|
||||||
else print '<tr><td colspan="6">'.$langs->trans("NoSessionFound").'</td></tr>';
|
|
||||||
}
|
}
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,7 @@ ConfirmLockNewSessions=Are you sure you want to restrict any new Dolibarr connec
|
|||||||
UnlockNewSessions=Remove connection lock
|
UnlockNewSessions=Remove connection lock
|
||||||
YourSession=Your session
|
YourSession=Your session
|
||||||
Sessions=Users session
|
Sessions=Users session
|
||||||
|
NoSessionFound=Your PHP seems to not allow to list active sessions. Directory used to save sessions (<b>%s</b>) might be protected (For example, by OS permissions or by PHP directive open_basedir).
|
||||||
HTMLCharset=Charset for generated HTML pages
|
HTMLCharset=Charset for generated HTML pages
|
||||||
DBStoringCharset=Database charset to store data
|
DBStoringCharset=Database charset to store data
|
||||||
DBSortingCharset=Database charset to sort data
|
DBSortingCharset=Database charset to sort data
|
||||||
|
|||||||
@ -19,6 +19,7 @@ ConfirmLockNewSessions=Etes-vous sur de vouloir restreindre l'accès Dolibarr à
|
|||||||
UnlockNewSessions=Lever blocage des connexions
|
UnlockNewSessions=Lever blocage des connexions
|
||||||
YourSession=Votre session
|
YourSession=Votre session
|
||||||
Sessions=Sessions utilisateurs
|
Sessions=Sessions utilisateurs
|
||||||
|
NoSessionFound=Votre PHP se semble pas pouvoir lister les sessions actives. Le répertoire de sauvegarde des sessions (<b>%s</b>) est peut etre protégé (Par exemple, par les permissions de l'OS ou par la directive open_basedir de votre PHP).
|
||||||
HTMLCharset = Charset des pages HTML générées
|
HTMLCharset = Charset des pages HTML générées
|
||||||
DBStoringCharset = Charset base pour stockage données
|
DBStoringCharset = Charset base pour stockage données
|
||||||
DBSortingCharset = Charset base pour tri données
|
DBSortingCharset = Charset base pour tri données
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user