diff --git a/bureau/admin/adm_add.php b/bureau/admin/adm_add.php index f12b8e9f..64db13b9 100755 --- a/bureau/admin/adm_add.php +++ b/bureau/admin/adm_add.php @@ -28,7 +28,8 @@ require_once("../class/config.php"); include_once("head.php"); if (!$admin->enabled) { - __("This page is restricted to authorized staff"); + $msg->raise('Error', "admin", _("This page is restricted to authorized staff")); + echo $msg->msg_html_all(); exit(); } @@ -45,14 +46,15 @@ $fields = array ( ); getFields($fields); +$c=$admin->listPasswordPolicies(); +$passwd_classcount = $c['adm']['classcount']; + ?>



$error

"; -} +echo $msg->msg_html_all(); ?>
@@ -63,7 +65,7 @@ if (isset($error) && $error) { * - + * diff --git a/bureau/admin/adm_authip_whitelist.php b/bureau/admin/adm_authip_whitelist.php index 8e36b8fe..700085bc 100755 --- a/bureau/admin/adm_authip_whitelist.php +++ b/bureau/admin/adm_authip_whitelist.php @@ -15,13 +15,13 @@ getFields($fields); if (!empty($delete_id)) { if (! $authip->ip_delete($delete_id)) { - $error="Error during deletion"; + $msg->raise('Error', "admin", _("Error during deletion")); // à traduire } } if (!empty($ipsub)) { if (! $authip->ip_save_whitelist($id, $ipsub, $infos)) { - $error="Error during recording"; + $msg->raise('Error', "admin", _("Error during recording")); } } @@ -32,9 +32,8 @@ $list_ip = $authip->list_ip_whitelist();

- -

- +msg_html_all(); ?> +

"; __("The IP and subnet you have here are allowed for ALL users and ALL usages"); ?>

diff --git a/bureau/admin/adm_db_servers.php b/bureau/admin/adm_db_servers.php index b9285767..1f25c70b 100644 --- a/bureau/admin/adm_db_servers.php +++ b/bureau/admin/adm_db_servers.php @@ -27,7 +27,8 @@ require_once("../class/config.php"); include("head.php"); if (!$admin->enabled) { - __("This page is restricted to authorized staff"); + $msg->raise('Error', "admin", _("This page is restricted to authorized staff")); + echo $msg->msg_html_all(); exit(); } diff --git a/bureau/admin/adm_deactivate.php b/bureau/admin/adm_deactivate.php index e678d522..0b8d0cfc 100755 --- a/bureau/admin/adm_deactivate.php +++ b/bureau/admin/adm_deactivate.php @@ -32,7 +32,8 @@ require_once("../class/config.php"); include_once("head.php"); if (!$admin->enabled) { - __("This page is restricted to authorized staff"); + $msg->raise('Error', "admin", _("This page is restricted to authorized staff")); + echo $msg->msg_html_all(); exit; } $fields = array ( @@ -43,19 +44,22 @@ $fields = array ( getFields($fields); if (!$uid) { - __("Account not found"); + $msg->raise('Error', "admin", _("Account not found")); + echo $msg->msg_html_all(); include_once("foot.php"); exit(); } if (!$admin->checkcreator($uid)) { - __("This page is restricted to authorized staff"); + $msg->raise('Error', "admin", _("This page is restricted to authorized staff")); + echo $msg->msg_html_all(); include_once("foot.php"); exit(); } if (!$r=$admin->get($uid)) { - __("User does not exist"); + $msg->raise('Error', "admin", _("User does not exist")); + echo $msg->msg_html_all(); include_once("foot.php"); exit(); } @@ -79,7 +83,8 @@ if (! ($confirmed ) ) { print "

" . _("Domains of user: ") . $r["login"] . "

"; } else { if (empty($redirect)) { - __("Missing redirect url."); + $msg->raise('Error', "admin", _("Missing redirect url.")); + echo $msg->msg_html_all(); include_once("foot.php"); exit(); } @@ -105,9 +110,7 @@ reset($domains); foreach ($domains as $key => $domain) { if (!$confirmed) print '

' . $domain . '