forked from Wavyzz/dolibarr
Look and feel v11
This commit is contained in:
@@ -74,7 +74,7 @@ llxHeader('', $langs->trans("Audit"), $wikihelp);
|
||||
//$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
|
||||
print load_fiche_titre($langs->trans("SecuritySetup"), '', 'title_setup');
|
||||
|
||||
print $langs->trans("LogEventDesc", $langs->transnoentitiesnoconv("AdminTools"), $langs->transnoentitiesnoconv("Audit"))."<br>\n";
|
||||
print '<span class="opacitymedium">'.$langs->trans("LogEventDesc", $langs->transnoentitiesnoconv("AdminTools"), $langs->transnoentitiesnoconv("Audit"))."</span><br>\n";
|
||||
print "<br>\n";
|
||||
|
||||
|
||||
|
||||
@@ -66,8 +66,7 @@ llxHeader('', $langs->trans("DefaultRights"), $wikihelp);
|
||||
|
||||
print load_fiche_titre($langs->trans("SecuritySetup"), '', 'title_setup');
|
||||
|
||||
print $langs->trans("DefaultRightsDesc");
|
||||
print " ".$langs->trans("OnlyActiveElementsAreShown")."<br><br>\n";
|
||||
print '<span class="opacitymedium">'.$langs->trans("DefaultRightsDesc")." ".$langs->trans("OnlyActiveElementsAreShown")."</span><br><br>\n";
|
||||
|
||||
$db->begin();
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ llxHeader('', $langs->trans("Proxy"), $wikihelp);
|
||||
|
||||
print load_fiche_titre($langs->trans("SecuritySetup"), '', 'title_setup');
|
||||
|
||||
print $langs->trans("ProxyDesc")."<br>\n";
|
||||
print '<span class="opacitymedium">'.$langs->trans("ProxyDesc")."</span><br>\n";
|
||||
print "<br>\n";
|
||||
|
||||
|
||||
|
||||
@@ -194,6 +194,7 @@ if ($action == 'maj_pattern')
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
$form = new Form($db);
|
||||
|
||||
$wikihelp = 'EN:Setup_Security|FR:Paramétrage_Sécurité|ES:Configuración_Seguridad';
|
||||
@@ -201,7 +202,7 @@ llxHeader('', $langs->trans("Passwords"), $wikihelp);
|
||||
|
||||
print load_fiche_titre($langs->trans("SecuritySetup"), '', 'title_setup');
|
||||
|
||||
print $langs->trans("GeneratedPasswordDesc")."<br>\n";
|
||||
print '<span class="opacitymedium">'.$langs->trans("GeneratedPasswordDesc")."</span><br>\n";
|
||||
print "<br>\n";
|
||||
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ llxHeader('', $langs->trans("Files"), $wikihelp);
|
||||
|
||||
print load_fiche_titre($langs->trans("SecuritySetup"), '', 'title_setup');
|
||||
|
||||
print $langs->trans("SecurityFilesDesc")."<br>\n";
|
||||
print '<span class="opacitymedium">'.$langs->trans("SecurityFilesDesc")."</span><br>\n";
|
||||
print "<br>\n";
|
||||
|
||||
|
||||
|
||||
@@ -250,11 +250,11 @@ $dolibarr_main_prod='0';
|
||||
$dolibarr_main_restrict_os_commands='mysqldump, mysql, pg_dump, pgrestore';
|
||||
|
||||
// $dolibarr_main_restrict_ip
|
||||
// To restrict access to backoffice to some ip addresses only.
|
||||
// To restrict access to backoffice to some ip addresses only. Use a comma to separate values.
|
||||
// Note: Pages that does not need login (like public pages, web site) are not protected with this.
|
||||
// Default value: ''
|
||||
// Examples:
|
||||
// $dolibarr_main_restrict_ip='127.0.0.1, 192.168.0.1';
|
||||
// $dolibarr_main_restrict_ip='127.0.0.1, ::1, 192.168.0.1';
|
||||
//
|
||||
$dolibarr_main_restrict_ip='';
|
||||
|
||||
|
||||
@@ -309,7 +309,7 @@ if (!defined('NOLOGIN') && !defined('NOIPCHECK') && !empty($dolibarr_main_restri
|
||||
}
|
||||
if (!$found)
|
||||
{
|
||||
print 'Access refused by IP protection';
|
||||
print 'Access refused by IP protection. Your detected IP is '.$_SERVER['REMOTE_ADDR'];
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user