" class="inb" />
diff --git a/bureau/admin/adm_panel.php b/bureau/admin/adm_panel.php
index 980e93df..8dd2098e 100644
--- a/bureau/admin/adm_panel.php
+++ b/bureau/admin/adm_panel.php
@@ -30,7 +30,8 @@
require_once("../class/config.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();
}
@@ -41,11 +42,7 @@ include_once("head.php");
$error";
- include_once("foot.php");
- exit;
-}
+echo $msg->msg_html_all();
?>
diff --git a/bureau/admin/adm_passpolicy.php b/bureau/admin/adm_passpolicy.php
index 91af1b07..5224d099 100755
--- a/bureau/admin/adm_passpolicy.php
+++ b/bureau/admin/adm_passpolicy.php
@@ -27,7 +27,8 @@
require_once("../class/config.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();
}
@@ -50,38 +51,34 @@ include_once("head.php");
$error";
- }
-
-
$c=$admin->listPasswordPolicies();
-//echo " "; print_r($c); echo " ";
if (isset($doedit) && $doedit) {
if (!$c[$doedit]) {
- echo ""._("Policy not found")." ";
+ $msg->raise('Error', "admin", _("Policy not found"));
} else {
// Change it ;)
if ($admin->editPolicy($doedit,$minsize,$maxsize,$classcount,$allowlogin)) {
- echo ""._("Policy changed")." ";
+ $msg->raise('Ok', "admin", _("Policy changed"));
unset($edit);
$c=$admin->listPasswordPolicies();
} else {
- echo ""._("Cannot edit the policy, an error occurred")." ";
+ $msg->raise('Error', "admin", _("Cannot edit the policy, an error occurred"));
}
}
}
+echo $msg->msg_html_all("", true, true);
if (!empty($edit)) {
if (!$c[$edit]) {
- echo ""._("Policy not found")." ";
+ $msg->raise('Error', "admin", _("Policy not found"));
+ echo $msg->msg_html_all();
} else {
?>
-
+
-
+
|