From 33f8e7888578bc928cdae73974991ef7f2ebd559 Mon Sep 17 00:00:00 2001
From: Benjamin Sonntag
Date: Fri, 6 Oct 2017 18:04:36 +0200
Subject: [PATCH] [fix] class m_messages fixed to use 'level' instead of 'type'
or 'cat' + force CAP on levels + merge OK and INFO
---
bureau/admin/adm_add.php | 2 +-
bureau/admin/adm_authip_whitelist.php | 4 +-
bureau/admin/adm_db_servers.php | 2 +-
bureau/admin/adm_deactivate.php | 13 +--
bureau/admin/adm_defquotas.php | 2 +-
bureau/admin/adm_dnsweberror.php | 2 +-
bureau/admin/adm_doadd.php | 6 +-
bureau/admin/adm_dodefquotas.php | 14 +--
bureau/admin/adm_dodel.php | 10 +-
bureau/admin/adm_doedit.php | 8 +-
bureau/admin/adm_domlock.php | 2 +-
bureau/admin/adm_doms.php | 2 +-
bureau/admin/adm_doms_def_type.php | 6 +-
bureau/admin/adm_domstype.php | 2 +-
bureau/admin/adm_domstypedoedit.php | 4 +-
bureau/admin/adm_domstypeedit.php | 2 +-
bureau/admin/adm_domstyperegenerate.php | 4 +-
bureau/admin/adm_donosu.php | 4 +-
bureau/admin/adm_dorenew.php | 6 +-
bureau/admin/adm_dosu.php | 4 +-
bureau/admin/adm_edit.php | 4 +-
bureau/admin/adm_email.php | 6 +-
bureau/admin/adm_list.php | 6 +-
bureau/admin/adm_lockpanel.php | 2 +-
bureau/admin/adm_login.php | 8 +-
bureau/admin/adm_mxaccount.php | 6 +-
bureau/admin/adm_panel.php | 2 +-
bureau/admin/adm_passpolicy.php | 12 +--
bureau/admin/adm_quotadoedit.php | 4 +-
bureau/admin/adm_quotaedit.php | 2 +-
bureau/admin/adm_slavedns.php | 10 +-
bureau/admin/adm_tld.php | 6 +-
bureau/admin/adm_tldadd.php | 2 +-
bureau/admin/adm_tlddoadd.php | 4 +-
bureau/admin/adm_tlddoedit.php | 4 +-
bureau/admin/adm_tldedit.php | 2 +-
bureau/admin/adm_update_domains.php | 4 +-
bureau/admin/adm_variables.php | 2 +-
bureau/admin/bro_editor.php | 4 +-
bureau/admin/bro_main.php | 32 +++---
bureau/admin/bro_pref.php | 2 +-
bureau/admin/cron.php | 2 +-
bureau/admin/dom_add.php | 2 +-
bureau/admin/dom_doadd.php | 2 +-
bureau/admin/dom_dodel.php | 4 +-
bureau/admin/dom_editdns.php | 6 +-
bureau/admin/dom_import.php | 2 +-
bureau/admin/dom_subdel.php | 2 +-
bureau/admin/dom_subdodel.php | 4 +-
bureau/admin/dom_subdoedit.php | 4 +-
bureau/admin/dom_subedit.php | 2 +-
bureau/admin/dom_substatus.php | 2 +-
bureau/admin/ftp_del.php | 2 +-
bureau/admin/ftp_doedit.php | 6 +-
bureau/admin/ftp_edit.php | 2 +-
bureau/admin/ftp_switch_enable.php | 4 +-
bureau/admin/hta_del.php | 2 +-
bureau/admin/hta_doadd.php | 4 +-
bureau/admin/hta_doadduser.php | 4 +-
bureau/admin/hta_dodeluser.php | 2 +-
bureau/admin/hta_doedituser.php | 4 +-
bureau/admin/hta_edit.php | 2 +-
bureau/admin/ip_main.php | 8 +-
bureau/admin/logs_list.php | 2 +-
bureau/admin/mail_del.php | 6 +-
bureau/admin/mail_doedit.php | 8 +-
bureau/admin/mail_list.php | 4 +-
bureau/admin/mail_manage_catchall.php | 8 +-
bureau/admin/mail_undelete.php | 2 +-
bureau/admin/mem_admin.php | 2 +-
bureau/admin/mem_chgmail.php | 2 +-
bureau/admin/mem_cm2.php | 2 +-
bureau/admin/mem_param.php | 2 +-
bureau/admin/mem_passwd.php | 2 +-
bureau/admin/nowebmail.php | 2 +-
bureau/admin/piwik_addaccount.php | 4 +-
bureau/admin/piwik_addsites.php | 4 +-
bureau/admin/piwik_site_dodel.php | 4 +-
bureau/admin/piwik_sitelist.php | 10 +-
bureau/admin/piwik_user_dodel.php | 6 +-
bureau/admin/piwik_useradmin.php | 12 +--
bureau/admin/piwik_userlist.php | 8 +-
bureau/admin/quota_show.php | 2 +-
bureau/admin/quotas_users.php | 2 +-
bureau/admin/sql_del.php | 4 +-
bureau/admin/sql_doadd.php | 4 +-
bureau/admin/sql_dobck.php | 2 +-
bureau/admin/sql_dorestore.php | 2 +-
bureau/admin/sql_list.php | 4 +-
bureau/admin/sql_users_del.php | 2 +-
bureau/admin/sql_users_doadd.php | 4 +-
bureau/admin/sql_users_dopassword.php | 2 +-
bureau/admin/sql_users_dorights.php | 2 +-
bureau/admin/sql_users_list.php | 4 +-
bureau/class/db_mysql.php | 2 +-
bureau/class/functions.php | 8 +-
bureau/class/m_action.php | 14 +--
bureau/class/m_admin.php | 104 ++++++++++----------
bureau/class/m_authip.php | 22 ++---
bureau/class/m_bro.php | 58 +++++------
bureau/class/m_cron.php | 8 +-
bureau/class/m_dom.php | 120 +++++++++++------------
bureau/class/m_ftp.php | 32 +++---
bureau/class/m_hta.php | 44 ++++-----
bureau/class/m_lxc.php | 4 +-
bureau/class/m_mail.php | 44 ++++-----
bureau/class/m_mem.php | 44 ++++-----
bureau/class/m_messages.php | 125 ++++++++++++------------
bureau/class/m_mysql.php | 90 ++++++++---------
bureau/class/m_piwik.php | 22 ++---
bureau/class/m_quota.php | 4 +-
111 files changed, 584 insertions(+), 580 deletions(-)
diff --git a/bureau/admin/adm_add.php b/bureau/admin/adm_add.php
index 64db13b9..d427cfa5 100755
--- a/bureau/admin/adm_add.php
+++ b/bureau/admin/adm_add.php
@@ -28,7 +28,7 @@ require_once("../class/config.php");
include_once("head.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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_authip_whitelist.php b/bureau/admin/adm_authip_whitelist.php
index 70ed44f6..9411048d 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)) {
- $msg->raise('Error', "admin", _("Error during deletion"));
+ $msg->raise("ERROR", "admin", _("Error during deletion"));
}
}
if (!empty($ipsub)) {
if (! $authip->ip_save_whitelist($id, $ipsub, $infos)) {
- $msg->raise('Error', "admin", _("Error during recording"));
+ $msg->raise("ERROR", "admin", _("Error during recording"));
}
}
diff --git a/bureau/admin/adm_db_servers.php b/bureau/admin/adm_db_servers.php
index 1f25c70b..f49d6879 100644
--- a/bureau/admin/adm_db_servers.php
+++ b/bureau/admin/adm_db_servers.php
@@ -27,7 +27,7 @@ require_once("../class/config.php");
include("head.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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 0b8d0cfc..01da441e 100755
--- a/bureau/admin/adm_deactivate.php
+++ b/bureau/admin/adm_deactivate.php
@@ -32,7 +32,7 @@ require_once("../class/config.php");
include_once("head.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit;
}
@@ -44,21 +44,21 @@ $fields = array (
getFields($fields);
if (!$uid) {
- $msg->raise('Error', "admin", _("Account not found"));
+ $msg->raise("ERROR", "admin", _("Account not found"));
echo $msg->msg_html_all();
include_once("foot.php");
exit();
}
if (!$admin->checkcreator($uid)) {
- $msg->raise('Error', "admin", _("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)) {
- $msg->raise('Error', "admin", _("User does not exist"));
+ $msg->raise("ERROR", "admin", _("User does not exist"));
echo $msg->msg_html_all();
include_once("foot.php");
exit();
@@ -83,7 +83,7 @@ if (! ($confirmed ) ) {
print "" . _("Domains of user: ") . $r["login"] . "
";
} else {
if (empty($redirect)) {
- $msg->raise('Error', "admin", _("Missing redirect url."));
+ $msg->raise("ERROR", "admin", _("Missing redirect url."));
echo $msg->msg_html_all();
include_once("foot.php");
exit();
@@ -135,7 +135,8 @@ foreach ($domains as $key => $domain) {
# 2.2 change the subdomain to redirect to http://spam.koumbit.org/
$dom->lock();
if (!$dom->set_sub_domain($domain, $sub, $dom->type_url, "edit", $redirect)) {
- print "-- error in $sub.$domain: " . $msg->msg_str("Error", "") . "\n";
+ print "-- error in $sub.$domain: ";
+ echo $msg->msg_html("ERROR");
}
$dom->unlock();
}
diff --git a/bureau/admin/adm_defquotas.php b/bureau/admin/adm_defquotas.php
index fc4f3ac9..74f2d18f 100755
--- a/bureau/admin/adm_defquotas.php
+++ b/bureau/admin/adm_defquotas.php
@@ -32,7 +32,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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_dnsweberror.php b/bureau/admin/adm_dnsweberror.php
index 7e6669e8..1e2395e4 100644
--- a/bureau/admin/adm_dnsweberror.php
+++ b/bureau/admin/adm_dnsweberror.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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_doadd.php b/bureau/admin/adm_doadd.php
index e5585a9a..35409a7a 100644
--- a/bureau/admin/adm_doadd.php
+++ b/bureau/admin/adm_doadd.php
@@ -27,7 +27,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit;
}
@@ -55,7 +55,7 @@ if ($create_dom && !empty($create_dom_list) ) {
}
if ($pass != $passconf) {
- $msg->raise("Error", "admin", _("Passwords do not match"));
+ $msg->raise("ERROR", "admin", _("Passwords do not match"));
include("adm_add.php");
exit();
}
@@ -66,7 +66,7 @@ if (!($u=$admin->add_mem($login, $pass, $nom, $prenom, $nmail, $canpass, $type,
exit;
}
-$msg->raise("Ok", "admin", _("The new member has been successfully created"));
+$msg->raise("INFO", "admin", _("The new member has been successfully created"));
include("adm_list.php");
exit;
diff --git a/bureau/admin/adm_dodefquotas.php b/bureau/admin/adm_dodefquotas.php
index aa6f6455..881c45a5 100755
--- a/bureau/admin/adm_dodefquotas.php
+++ b/bureau/admin/adm_dodefquotas.php
@@ -32,7 +32,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -46,18 +46,18 @@ getFields($fields);
if($action == "add") {
if($quota->addtype($type)) {
- $msg->raise('Ok', "admin", _("Account type"). " \"".htmlentities($type)."\" "._("added"));
+ $msg->raise("INFO", "admin", _("Account type"). " \"".htmlentities($type)."\" "._("added"));
} else {
- $msg->raise('Error', "admin", _("Account type"). " \"".htmlentities($type)."\" "._("could not be added"));
+ $msg->raise("ERROR", "admin", _("Account type"). " \"".htmlentities($type)."\" "._("could not be added"));
}
include("adm_defquotas.php");
} else if($action == "delete") {
if($del_confirm == "y"){
if(!empty($type)) {
if($quota->deltype($type)) {
- $msg->raise('Ok', "admin", _("Account type"). " \"".htmlentities($type)."\" "._("deleted"));
+ $msg->raise("INFO", "admin", _("Account type"). " \"".htmlentities($type)."\" "._("deleted"));
} else {
- $msg->raise('Error', "admin", _("Account type"). " \"".htmlentities($type)."\" "._("could not be deleted"));
+ $msg->raise("ERROR", "admin", _("Account type"). " \"".htmlentities($type)."\" "._("could not be deleted"));
}
}
include("adm_defquotas.php");
@@ -93,9 +93,9 @@ if($action == "add") {
}
if($quota->setdefaults($c)) {
- $msg->raise('Ok', "admin", _("Default quotas successfully changed"));
+ $msg->raise("INFO", "admin", _("Default quotas successfully changed"));
} else {
- $msg->raise('Error', "admin", _("Default quotas could not be set."));
+ $msg->raise("ERROR", "admin", _("Default quotas could not be set."));
}
include("adm_panel.php");
}
diff --git a/bureau/admin/adm_dodel.php b/bureau/admin/adm_dodel.php
index 8c7db7cb..bdb8fdbe 100755
--- a/bureau/admin/adm_dodel.php
+++ b/bureau/admin/adm_dodel.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -44,21 +44,21 @@ getFields($fields);
if($del_confirm == "y"){
foreach ($accountList as $key => $val) {
if (!$admin->checkcreator($val)) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
if (!($u=$admin->get($val)) || !$admin->del_mem($val)) {
- $msg->raise("Error", "admin", _("Member '%s' does not exist"),$val);
+ $msg->raise("ERROR", "admin", _("Member '%s' does not exist"),$val);
} else {
- $msg->raise("Ok", "admin", _("Member %s successfully deleted"),$u["login"]);
+ $msg->raise("INFO", "admin", _("Member %s successfully deleted"),$u["login"]);
}
}
include("adm_list.php");
exit();
} else {
if (!is_array($accountList) || count($accountList)==0) {
- $msg->raise("Error", "admin", _("Please check the accounts you want to delete"));
+ $msg->raise("ERROR", "admin", _("Please check the accounts you want to delete"));
require("adm_list.php");
exit();
}
diff --git a/bureau/admin/adm_doedit.php b/bureau/admin/adm_doedit.php
index fa1c9920..bea0b0bf 100644
--- a/bureau/admin/adm_doedit.php
+++ b/bureau/admin/adm_doedit.php
@@ -32,7 +32,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -57,13 +57,13 @@ getFields($fields);
if ($subadmin==0 && !$admin->checkcreator($uid)) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
if ($pass != $passconf) {
- $msg->raise("Error", "admin", _("Passwords do not match"));
+ $msg->raise("ERROR", "admin", _("Passwords do not match"));
include("adm_edit.php");
exit();
}
@@ -75,6 +75,6 @@ if ($uid==$mem->user["uid"]) {
if (!$admin->update_mem($uid, $nmail, $nom, $prenom, $pass, $enabled, $canpass, $type, $duration, $notes, $reset_quotas)){
include("adm_edit.php");
} else {
- $msg->raise("Ok", "admin", _("The member has been successfully edited"));
+ $msg->raise("INFO", "admin", _("The member has been successfully edited"));
include("adm_list.php");
}
diff --git a/bureau/admin/adm_domlock.php b/bureau/admin/adm_domlock.php
index 5627ce77..b3de275b 100644
--- a/bureau/admin/adm_domlock.php
+++ b/bureau/admin/adm_domlock.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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_doms.php b/bureau/admin/adm_doms.php
index 873140c2..960f14d0 100755
--- a/bureau/admin/adm_doms.php
+++ b/bureau/admin/adm_doms.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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_doms_def_type.php b/bureau/admin/adm_doms_def_type.php
index 126eb78a..541187ac 100755
--- a/bureau/admin/adm_doms_def_type.php
+++ b/bureau/admin/adm_doms_def_type.php
@@ -2,7 +2,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -30,9 +30,9 @@ getFields($fields);
if (!empty($domup)) {
if (!$dom->update_default_subdomains($domup)) {
- $msg->raise('Error', "admin", _("There was an error during the record."));
+ $msg->raise("ERROR", "admin", _("There was an error during the record."));
} else {
- $msg->raise('Ok', "admin", _("Save done."));
+ $msg->raise("INFO", "admin", _("Save done."));
}
}
echo $msg->msg_html_all();
diff --git a/bureau/admin/adm_domstype.php b/bureau/admin/adm_domstype.php
index ffc417fc..4de3aa13 100644
--- a/bureau/admin/adm_domstype.php
+++ b/bureau/admin/adm_domstype.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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_domstypedoedit.php b/bureau/admin/adm_domstypedoedit.php
index 826caca5..94a29288 100644
--- a/bureau/admin/adm_domstypedoedit.php
+++ b/bureau/admin/adm_domstypedoedit.php
@@ -1,7 +1,7 @@
enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -24,7 +24,7 @@ getFields($fields);
if (! $dom->domains_type_update($name, $description, $target, $entry, $compatibility, $enable, $only_dns, $need_dns, $advanced,$create_tmpdir,$create_targetdir) ) {
include("adm_domstypedoedit.php");
} else {
- $msg->raise('Ok', "admin", _("Domain type is updated"));
+ $msg->raise("INFO", "admin", _("Domain type is updated"));
include("adm_domstype.php");
}
?>
diff --git a/bureau/admin/adm_domstypeedit.php b/bureau/admin/adm_domstypeedit.php
index 308e53a4..c34b2d7f 100755
--- a/bureau/admin/adm_domstypeedit.php
+++ b/bureau/admin/adm_domstypeedit.php
@@ -29,7 +29,7 @@
*/
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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_domstyperegenerate.php b/bureau/admin/adm_domstyperegenerate.php
index 434b0efb..78bec7d4 100644
--- a/bureau/admin/adm_domstyperegenerate.php
+++ b/bureau/admin/adm_domstyperegenerate.php
@@ -1,7 +1,7 @@
enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -13,7 +13,7 @@ getFields($fields);
if (! empty($name) || ($dom->domains_type_regenerate($name)) ) {
- $msg->raise('Ok', "admin", _("Regenerate pending"));
+ $msg->raise("INFO", "admin", _("Regenerate pending"));
}
include("adm_domstype.php");
diff --git a/bureau/admin/adm_donosu.php b/bureau/admin/adm_donosu.php
index 71b4ce30..3a71c700 100644
--- a/bureau/admin/adm_donosu.php
+++ b/bureau/admin/adm_donosu.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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,7 +41,7 @@ $fields = array (
getFields($fields);
if ($admin->su2normal($uid)) {
- $msg->raise("Ok", "admin", _("This account is now a normal account"));
+ $msg->raise("INFO", "admin", _("This account is now a normal account"));
}
include("adm_edit.php");
diff --git a/bureau/admin/adm_dorenew.php b/bureau/admin/adm_dorenew.php
index eab71ff8..07c4fb7b 100644
--- a/bureau/admin/adm_dorenew.php
+++ b/bureau/admin/adm_dorenew.php
@@ -31,7 +31,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -43,7 +43,7 @@ $fields = array (
getFields($fields);
if (!$admin->checkcreator($uid)) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -51,7 +51,7 @@ if (!$admin->checkcreator($uid)) {
if (!$admin->renew_mem($uid, $periods)){
include("adm_edit.php");
} else {
- $msg->raise("Ok", "admin", _("The member has been successfully renewed"));
+ $msg->raise("INFO", "admin", _("The member has been successfully renewed"));
include("adm_list.php");
}
?>
diff --git a/bureau/admin/adm_dosu.php b/bureau/admin/adm_dosu.php
index 9e81c58a..80f4a049 100644
--- a/bureau/admin/adm_dosu.php
+++ b/bureau/admin/adm_dosu.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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,7 +41,7 @@ $fields = array (
getFields($fields);
if ($admin->normal2su($uid)) {
- $msg->raise("Ok", "admin", _("This account is now an administrator account"));
+ $msg->raise("INFO", "admin", _("This account is now an administrator account"));
}
include("adm_edit.php");
diff --git a/bureau/admin/adm_edit.php b/bureau/admin/adm_edit.php
index fae01896..af24901f 100755
--- a/bureau/admin/adm_edit.php
+++ b/bureau/admin/adm_edit.php
@@ -33,7 +33,7 @@ require_once("../class/config.php");
include_once("head.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -46,7 +46,7 @@ getFields($fields);
$subadmin=variable_get("subadmin_restriction");
if ($subadmin==0 && !$admin->checkcreator($uid)) {
- $msg->raise('Error', "admin", _("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_email.php b/bureau/admin/adm_email.php
index 3ac4eab9..eda7d174 100755
--- a/bureau/admin/adm_email.php
+++ b/bureau/admin/adm_email.php
@@ -27,7 +27,7 @@ require_once("../class/config.php");
include("head.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -46,9 +46,9 @@ getFields($fields);
if ( !empty($submit) ) {
if ($admin->mailallmembers($subject,$message,$from)) {
- $msg->raise("Ok", "admin", _("The email was successfully sent"));
+ $msg->raise("INFO", "admin", _("The email was successfully sent"));
} else {
- $msg->raise("Ok", "admin", _("There was an error"));
+ $msg->raise("INFO", "admin", _("There was an error"));
}
}
diff --git a/bureau/admin/adm_list.php b/bureau/admin/adm_list.php
index 22e5b832..89bcdd22 100755
--- a/bureau/admin/adm_list.php
+++ b/bureau/admin/adm_list.php
@@ -28,7 +28,7 @@ require_once("../class/config.php");
include_once("head.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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();
@@ -55,7 +55,7 @@ $subadmin = variable_get("subadmin_restriction", 0);
// If we ask for all account but we aren't "admin" and
// subadmin var is not 1
if ($show == "all" && !$subadmin == 1 && $cuid != 2000) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
include('foot.php');
exit();
@@ -143,7 +143,7 @@ echo $msg->msg_html_all();
raise('Error', "admin", _("No account defined for now"));
+ $msg->raise("ERROR", "admin", _("No account defined for now"));
echo $msg->msg_html_all();
include('foot.php');
}
diff --git a/bureau/admin/adm_lockpanel.php b/bureau/admin/adm_lockpanel.php
index bd72ca60..e3b21076 100644
--- a/bureau/admin/adm_lockpanel.php
+++ b/bureau/admin/adm_lockpanel.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled || $cuid!=2000) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
die();
}
diff --git a/bureau/admin/adm_login.php b/bureau/admin/adm_login.php
index 2854c8e6..cee4c0a8 100644
--- a/bureau/admin/adm_login.php
+++ b/bureau/admin/adm_login.php
@@ -46,14 +46,14 @@ if ( empty($id) && isset($_COOKIE["oldid"]) && !empty($_COOKIE["oldid"])) {
list($newuid,$passcheck)=explode("/",$_COOKIE["oldid"]);
$newuid=intval($newuid);
if (!$newuid) {
- $msg->raise("Error", "admin", _("Your authentication information are incorrect"));
+ $msg->raise("ERROR", "admin", _("Your authentication information are incorrect"));
include("index.php");
exit();
}
$admin->enabled=true;
$r=$admin->get($newuid);
if ($passcheck!=md5($r["pass"])) {
- $msg->raise("Ok", "admin", _("Your authentication information are incorrect"));
+ $msg->raise("INFO", "admin", _("Your authentication information are incorrect"));
include("index.php");
exit();
}
@@ -75,7 +75,7 @@ if ( empty($id) && isset($_COOKIE["oldid"]) && !empty($_COOKIE["oldid"])) {
// * with a user id to go to (we check the current account is admin and is allowed to connect to this account)
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -83,7 +83,7 @@ if (!$admin->enabled) {
// Depending on subadmin_restriction, a subadmin can (or cannot) connect to account he didn't create
$subadmin=variable_get("subadmin_restriction");
if ($subadmin==0 && !$admin->checkcreator($id)) {
- $msg->raise('Error', "admin", _("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_mxaccount.php b/bureau/admin/adm_mxaccount.php
index 66d05db1..5bf1b7a1 100755
--- a/bureau/admin/adm_mxaccount.php
+++ b/bureau/admin/adm_mxaccount.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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,13 +45,13 @@ getFields($fields);
if ($delaccount) {
// Delete an account
if ($mail->del_slave_account($delaccount)) {
- $msg->raise('Ok', "admin", _("The requested account has been deleted. It is now denied."));
+ $msg->raise("INFO", "admin", _("The requested account has been deleted. It is now denied."));
}
}
if ($newlogin) {
// Add an account
if ($mail->add_slave_account($newlogin,$newpass)) {
- $msg->raise('Ok', "admin", _("The requested account address has been created. It is now allowed."));
+ $msg->raise("INFO", "admin", _("The requested account address has been created. It is now allowed."));
$newlogin='';$newpass='';
}
}
diff --git a/bureau/admin/adm_panel.php b/bureau/admin/adm_panel.php
index 8dd2098e..ae048ec4 100644
--- a/bureau/admin/adm_panel.php
+++ b/bureau/admin/adm_panel.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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_passpolicy.php b/bureau/admin/adm_passpolicy.php
index 5224d099..20e5646e 100755
--- a/bureau/admin/adm_passpolicy.php
+++ b/bureau/admin/adm_passpolicy.php
@@ -27,7 +27,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -55,23 +55,23 @@ $c=$admin->listPasswordPolicies();
if (isset($doedit) && $doedit) {
if (!$c[$doedit]) {
- $msg->raise('Error', "admin", _("Policy not found"));
+ $msg->raise("ERROR", "admin", _("Policy not found"));
} else {
// Change it ;)
if ($admin->editPolicy($doedit,$minsize,$maxsize,$classcount,$allowlogin)) {
- $msg->raise('Ok', "admin", _("Policy changed"));
+ $msg->raise("INFO", "admin", _("Policy changed"));
unset($edit);
$c=$admin->listPasswordPolicies();
} else {
- $msg->raise('Error', "admin", _("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);
+echo $msg->msg_html_all(true, true);
if (!empty($edit)) {
if (!$c[$edit]) {
- $msg->raise('Error', "admin", _("Policy not found"));
+ $msg->raise("ERROR", "admin", _("Policy not found"));
echo $msg->msg_html_all();
} else {
?>
diff --git a/bureau/admin/adm_quotadoedit.php b/bureau/admin/adm_quotadoedit.php
index bd5c764c..3c56e596 100644
--- a/bureau/admin/adm_quotadoedit.php
+++ b/bureau/admin/adm_quotadoedit.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -52,7 +52,7 @@ while (list($key,$val)=each($qlist)) {
$mem->unsu();
if (!$msg->has_msgs("Error"))
- $msg->raise("Ok", "admin", _("The quotas has been successfully edited"));
+ $msg->raise("INFO", "admin", _("The quotas has been successfully edited"));
include("adm_list.php");
exit;
diff --git a/bureau/admin/adm_quotaedit.php b/bureau/admin/adm_quotaedit.php
index 40d2a9f3..aea60efa 100755
--- a/bureau/admin/adm_quotaedit.php
+++ b/bureau/admin/adm_quotaedit.php
@@ -31,7 +31,7 @@ require_once("../class/config.php");
include_once("head.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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();
diff --git a/bureau/admin/adm_slavedns.php b/bureau/admin/adm_slavedns.php
index 1a36866f..beea1005 100755
--- a/bureau/admin/adm_slavedns.php
+++ b/bureau/admin/adm_slavedns.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -49,13 +49,13 @@ getFields($fields);
if ($delaccount) {
// Delete an account
if ($dom->del_slave_account($delaccount)) {
- $msg->raise('Ok', "admin", _("The requested account has been deleted. It is now denied."));
+ $msg->raise("INFO", "admin", _("The requested account has been deleted. It is now denied."));
}
}
if ($newlogin) {
// Add an account
if ($dom->add_slave_account($newlogin,$newpass)) {
- $msg->raise('Ok', "admin", _("The requested account address has been created. It is now allowed."));
+ $msg->raise("INFO", "admin", _("The requested account address has been created. It is now allowed."));
unset($newlogin); unset($newpass);
}
}
@@ -63,13 +63,13 @@ if ($newlogin) {
if ($delip) {
// Delete an ip address/class
if ($dom->del_slave_ip($delip)) {
- $msg->raise('Ok', "admin", _("The requested ip address has been deleted. It will be denied in one hour."));
+ $msg->raise("INFO", "admin", _("The requested ip address has been deleted. It will be denied in one hour."));
}
}
if ($newip) {
// Add an ip address/class
if ($dom->add_slave_ip($newip,$newclass)) {
- $msg->raise('Ok', "admin", _("The requested ip address has been added to the list. It will be allowed in one hour."));
+ $msg->raise("INFO", "admin", _("The requested ip address has been added to the list. It will be allowed in one hour."));
unset($newip); unset($newclass);
}
}
diff --git a/bureau/admin/adm_tld.php b/bureau/admin/adm_tld.php
index d7be5651..cc0fa380 100755
--- a/bureau/admin/adm_tld.php
+++ b/bureau/admin/adm_tld.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -44,11 +44,11 @@ getFields($fields);
if (is_array($sel)) {
for($i=0;$ideltld($sel[$i])) {
- $msg->raise("Error", "admin", _("Some TLD cannot be deleted...")." : ".$sel[$i]);
+ $msg->raise("ERROR", "admin", _("Some TLD cannot be deleted...")." : ".$sel[$i]);
}
}
if (!$msg->has_msgs("Error"))
- $msg->raise("Ok", "admin", _("The requested TLD has been deleted"));
+ $msg->raise("INFO", "admin", _("The requested TLD has been deleted"));
}
include_once("head.php");
diff --git a/bureau/admin/adm_tldadd.php b/bureau/admin/adm_tldadd.php
index 79ca165f..10fbb40a 100755
--- a/bureau/admin/adm_tldadd.php
+++ b/bureau/admin/adm_tldadd.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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_tlddoadd.php b/bureau/admin/adm_tlddoadd.php
index c624c86b..bca99777 100644
--- a/bureau/admin/adm_tlddoadd.php
+++ b/bureau/admin/adm_tlddoadd.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -46,7 +46,7 @@ if (!$admin->addtld($tld,$mode)) {
include("adm_tldadd.php");
exit();
} else {
- $msg->raise("Ok", "admin", _("The TLD has been successfully added"));
+ $msg->raise("INFO", "admin", _("The TLD has been successfully added"));
include("adm_tld.php");
exit();
}
diff --git a/bureau/admin/adm_tlddoedit.php b/bureau/admin/adm_tlddoedit.php
index 53176a56..d699fc34 100644
--- a/bureau/admin/adm_tlddoedit.php
+++ b/bureau/admin/adm_tlddoedit.php
@@ -36,7 +36,7 @@ getFields($fields);
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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,7 +45,7 @@ if (!$admin->edittld($tld,$mode)) {
include("adm_tldedit.php");
exit();
} else {
- $msg->raise("Ok", "admin", _("The TLD has been successfully edited"));
+ $msg->raise("INFO", "admin", _("The TLD has been successfully edited"));
include("adm_tld.php");
exit();
}
diff --git a/bureau/admin/adm_tldedit.php b/bureau/admin/adm_tldedit.php
index 2644659d..981ca5f0 100755
--- a/bureau/admin/adm_tldedit.php
+++ b/bureau/admin/adm_tldedit.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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_update_domains.php b/bureau/admin/adm_update_domains.php
index b4cf4885..84871ab2 100644
--- a/bureau/admin/adm_update_domains.php
+++ b/bureau/admin/adm_update_domains.php
@@ -31,14 +31,14 @@ require_once("../class/config.php");
if (!$admin->enabled) {
if ( ! ( $isinvited && isset($oldid) && !empty($oldid) && $oldid==2000) ) { // Allow sub admins
- $msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
}
if (! isset($L_INOTIFY_UPDATE_DOMAIN)) {
- $msg->raise('Error', "admin", _("Missing INOTIFY_UPDATE_DOMAIN var in /etc/alternc/local.sh . Fix it!"));
+ $msg->raise("ERROR", "admin", _("Missing INOTIFY_UPDATE_DOMAIN var in /etc/alternc/local.sh . Fix it!"));
echo $msg->msg_html_all();
die();
}
diff --git a/bureau/admin/adm_variables.php b/bureau/admin/adm_variables.php
index eacef624..4ad8ba7e 100755
--- a/bureau/admin/adm_variables.php
+++ b/bureau/admin/adm_variables.php
@@ -30,7 +30,7 @@
require_once("../class/config.php");
if (!$admin->enabled) {
- $msg->raise('Error', "admin", _("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/bro_editor.php b/bureau/admin/bro_editor.php
index 9a7a4155..74412398 100755
--- a/bureau/admin/bro_editor.php
+++ b/bureau/admin/bro_editor.php
@@ -68,14 +68,14 @@ if (isset($saveret) && $saveret) {
}*/
if ($bro->save($editfile,$R,$texte)) {
- $msg->raise("Ok", "bro", _("Your file %s has been saved")." (".format_date(_('%3$d-%2$d-%1$d %4$d:%5$d'),date("Y-m-d H:i:s")).")", $editfile);
+ $msg->raise("INFO", "bro", _("Your file %s has been saved")." (".format_date(_('%3$d-%2$d-%1$d %4$d:%5$d'),date("Y-m-d H:i:s")).")", $editfile);
include("bro_main.php");
exit();
}
}
if (isset($save) && $save) {
if ($bro->save($editfile,$R,$texte)) {
- $msg->raise("Ok", "bro", _("Your file %s has been saved")." (".format_date(_('%3$d-%2$d-%1$d %4$d:%5$d'),date("Y-m-d H:i:s")).")", $editfile);
+ $msg->raise("INFO", "bro", _("Your file %s has been saved")." (".format_date(_('%3$d-%2$d-%1$d %4$d:%5$d'),date("Y-m-d H:i:s")).")", $editfile);
}
}
diff --git a/bureau/admin/bro_main.php b/bureau/admin/bro_main.php
index 80b61dde..beb33052 100755
--- a/bureau/admin/bro_main.php
+++ b/bureau/admin/bro_main.php
@@ -71,13 +71,13 @@ if (!empty($formu) && $formu) {
switch ($formu) {
case 1: // Create the folder $R.$nomfich
if ($bro->CreateDir($R,$nomfich)) {
- $msg->raise("Ok", "bro", _("The folder '%s' was successfully created"), $nomfich);
+ $msg->raise("INFO", "bro", _("The folder '%s' was successfully created"), $nomfich);
}
$p=$bro->GetPrefs();
break;
case 6: // Create the file $R.$nomfich
if ($bro->CreateFile($R,$nomfich)) {
- $msg->raise("Ok", "bro", _("The file '%s' was successfully created"), $nomfich);
+ $msg->raise("INFO", "bro", _("The file '%s' was successfully created"), $nomfich);
}
$p=$bro->GetPrefs();
if ($p["createfile"]==1) {
@@ -92,9 +92,9 @@ if (!empty($formu) && $formu) {
if ($bro->DeleteFile($d,$R)) {
foreach ($d as $v) {
if (is_dir($absolute . "/" . $v))
- $msg->raise("Ok", "bro", _("The folder '%s' was successfully deleted"), $v);
+ $msg->raise("INFO", "bro", _("The folder '%s' was successfully deleted"), $v);
else
- $msg->raise("Ok", "bro", _("The file '%s' was successfully deleted"), $v);
+ $msg->raise("INFO", "bro", _("The file '%s' was successfully deleted"), $v);
}
}
} elseif (empty($cancel) && is_array($d)) {
@@ -128,22 +128,22 @@ if (!empty($formu) && $formu) {
if ($bro->CopyFile($d,$R,$actmoveto)) {
if (count($d) == 1) {
if (is_dir($absolute . "/" . $d[0]))
- $msg->raise("Ok", "bro", _("The folder '%s' was successfully copied to '%s'"), array($d[0], $actmoveto));
+ $msg->raise("INFO", "bro", _("The folder '%s' was successfully copied to '%s'"), array($d[0], $actmoveto));
else
- $msg->raise("Ok", "bro", _("The file '%s' was successfully copied to '%s'"), array($d[0], $actmoveto));
+ $msg->raise("INFO", "bro", _("The file '%s' was successfully copied to '%s'"), array($d[0], $actmoveto));
} else
- $msg->raise("Ok", "bro", _("The files / folders were successfully copied"));
+ $msg->raise("INFO", "bro", _("The files / folders were successfully copied"));
}
}
if ($actmove) {
if ($bro->MoveFile($d,$R,$actmoveto)) {
if (count($d) == 1) {
if (is_dir($absolute . "/" . $d[0]))
- $msg->raise("Ok", "bro", _("The folder '%s' was successfully moved to '%s'"), array($d[0], $actmoveto));
+ $msg->raise("INFO", "bro", _("The folder '%s' was successfully moved to '%s'"), array($d[0], $actmoveto));
else
- $msg->raise("Ok", "bro", _("The file '%s' was successfully moved to '%s'"), array($d[0], $actmoveto));
+ $msg->raise("INFO", "bro", _("The file '%s' was successfully moved to '%s'"), array($d[0], $actmoveto));
} else
- $msg->raise("Ok", "bro", _("The files / folders were successfully moved"));
+ $msg->raise("INFO", "bro", _("The files / folders were successfully moved"));
}
}
break;
@@ -151,21 +151,21 @@ if (!empty($formu) && $formu) {
if ($bro->RenameFile($R,$o,$d)) { // Rename $R (directory) $o (old) $d (new) names
if (count($d) == 1) {
if (is_dir($absolute . "/" . $d[0]))
- $msg->raise("Ok", "bro", _("The folder '%s' was successfully renamed to '%s'"), array($o[0], $d[0]));
+ $msg->raise("INFO", "bro", _("The folder '%s' was successfully renamed to '%s'"), array($o[0], $d[0]));
else
- $msg->raise("Ok", "bro", _("The file '%s' was successfully renamed to '%s'"), array($o[0], $d[0]));
+ $msg->raise("INFO", "bro", _("The file '%s' was successfully renamed to '%s'"), array($o[0], $d[0]));
} else
- $msg->raise("Ok", "bro", _("The files / folders were successfully renamed"));
+ $msg->raise("INFO", "bro", _("The files / folders were successfully renamed"));
}
break;
case 3: // Upload de fichier...
if ($bro->UploadFile($R)) {
- $msg->raise("Ok", "bro", _("The file '%s' was successfully uploaded"), $_FILES['userfile']['name']);
+ $msg->raise("INFO", "bro", _("The file '%s' was successfully uploaded"), $_FILES['userfile']['name']);
}
break;
case 7: // Changement de permissions [ML]
if ($bro->ChangePermissions($R, $d)) {
- $msg->raise("Ok", "bro", _("The permissions were successfully set"));
+ $msg->raise("INFO", "bro", _("The permissions were successfully set"));
}
break;
}
@@ -173,7 +173,7 @@ if (!empty($formu) && $formu) {
if (isset($actextract) && $actextract) {
if ($bro->ExtractFile($R. '/' . $fileextract, $R)) {
- $msg->raise("Ok", "bro", _("The extraction of the file '%s' was successfull"), $fileextract);
+ $msg->raise("INFO", "bro", _("The extraction of the file '%s' was successfull"), $fileextract);
}
}
diff --git a/bureau/admin/bro_pref.php b/bureau/admin/bro_pref.php
index 6dd28c25..1d03e93b 100755
--- a/bureau/admin/bro_pref.php
+++ b/bureau/admin/bro_pref.php
@@ -46,7 +46,7 @@ getFields($fields);
if (!empty($submit)) {
$bro->SetPrefs($editsizex, $editsizey, $listmode, $showicons, $downfmt, $createfile, $showtype, $editor_font, $editor_size, $golastdir);
- $msg->raise("Ok", "bro", _("Your preferences have been updated."));
+ $msg->raise("INFO", "bro", _("Your preferences have been updated."));
include("bro_main.php");
exit;
}
diff --git a/bureau/admin/cron.php b/bureau/admin/cron.php
index e1912153..29dfdbea 100755
--- a/bureau/admin/cron.php
+++ b/bureau/admin/cron.php
@@ -9,7 +9,7 @@ getFields($fields);
if (!empty($cronupdate)) {
if ($cron->update($cronupdate)) {
- $msg->raise("ok", "mysql", _("Save done."));
+ $msg->raise("INFO", "mysql", _("Save done."));
}
}
diff --git a/bureau/admin/dom_add.php b/bureau/admin/dom_add.php
index b2da7afc..5dfa3b21 100755
--- a/bureau/admin/dom_add.php
+++ b/bureau/admin/dom_add.php
@@ -46,7 +46,7 @@ if (!isset($dns)) $dns="1";
cancreate("dom")) {
- $msg->raise('Alert', "dom", _("You cannot add any new domain, your quota is over.")." "._("Contact your administrator for more information."));
+ $msg->raise("ALERT", "dom", _("You cannot add any new domain, your quota is over.")." "._("Contact your administrator for more information."));
echo $msg->msg_html_all();
exit();
}
diff --git a/bureau/admin/dom_doadd.php b/bureau/admin/dom_doadd.php
index 0be7b429..e418985a 100644
--- a/bureau/admin/dom_doadd.php
+++ b/bureau/admin/dom_doadd.php
@@ -44,7 +44,7 @@ if (!$dom->add_domain($newdomain,$dns,0,0,$newisslave,$slavedom)) {
include("dom_add.php");
exit();
} else
- $msg->raise('Ok', "dom", _("Your new domain %s has been successfully installed"),$newdomain);
+ $msg->raise("INFO", "dom", _("Your new domain %s has been successfully installed"),$newdomain);
$dom->unlock();
diff --git a/bureau/admin/dom_dodel.php b/bureau/admin/dom_dodel.php
index 2cdff615..5c1c54e8 100755
--- a/bureau/admin/dom_dodel.php
+++ b/bureau/admin/dom_dodel.php
@@ -50,7 +50,7 @@ if (! empty($del_cancel)) {
$dom->unlock();
// The link to this function is disable : the del_domain_cancel function need some modification
- $msg->raise('Ok', "dom", _("Deletion have been successfully cancelled"));
+ $msg->raise("INFO", "dom", _("Deletion have been successfully cancelled"));
echo $msg->msg_html_all();
?>
@@ -84,7 +84,7 @@ if ($del_confirm!="y") {
raise('Ok', "dom", _("The domain %s has been successfully deleted."),$domain);
+$msg->raise("INFO", "dom", _("The domain %s has been successfully deleted."),$domain);
echo $msg->msg_html_all();
?>
diff --git a/bureau/admin/dom_editdns.php b/bureau/admin/dom_editdns.php
index 0035ba89..f6a06d5e 100644
--- a/bureau/admin/dom_editdns.php
+++ b/bureau/admin/dom_editdns.php
@@ -42,12 +42,12 @@ $dom->lock();
$r = $dom->get_domain_all($domain);
if ($r["dns"] == $dns && $r["mail"] == $email && $r["zonettl"] == $ttl) {
- $msg->raise('Ok', "dom", _("No change has been requested..."));
+ $msg->raise("INFO", "dom", _("No change has been requested..."));
} else if ($dom->edit_domain($domain,$dns,$email,0,$ttl)) {
- $msg->raise('Ok', "dom", _("The domain %s has been changed."),$domain);
+ $msg->raise("INFO", "dom", _("The domain %s has been changed."),$domain);
$t = time();
// XXX: we assume the cron job is at every 5 minutes
- $msg->raise('Ok', "dom", _("The modifications will take effect at %s. Server time is %s."), array(date('H:i:s', ($t-($t%300)+300)), date('H:i:s', $t)));
+ $msg->raise("INFO", "dom", _("The modifications will take effect at %s. Server time is %s."), array(date('H:i:s', ($t-($t%300)+300)), date('H:i:s', $t)));
}
$dom->unlock();
diff --git a/bureau/admin/dom_import.php b/bureau/admin/dom_import.php
index 01571c27..c1c79db6 100755
--- a/bureau/admin/dom_import.php
+++ b/bureau/admin/dom_import.php
@@ -46,7 +46,7 @@ $domain=trim($domain);
raise('Alert', "dom", _("The domain field seems to be empty"));
+ $msg->raise("ALERT", "dom", _("The domain field seems to be empty"));
}
echo $msg->msg_html_all();
diff --git a/bureau/admin/dom_subdel.php b/bureau/admin/dom_subdel.php
index 445ceb72..391ba648 100755
--- a/bureau/admin/dom_subdel.php
+++ b/bureau/admin/dom_subdel.php
@@ -41,7 +41,7 @@ $dom->unlock();
$dt=$dom->domains_type_lst();
if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) {
- $msg->raise('Error', "dom", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "dom", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
diff --git a/bureau/admin/dom_subdodel.php b/bureau/admin/dom_subdodel.php
index f6cdb92d..ce1ed383 100644
--- a/bureau/admin/dom_subdodel.php
+++ b/bureau/admin/dom_subdodel.php
@@ -41,7 +41,7 @@ $dt=$dom->domains_type_lst();
$dom->unlock();
if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) {
- $msg->raise('Error', "dom", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "dom", _("This page is restricted to authorized staff"));
echo $msg->msg_html_all();
exit();
}
@@ -64,7 +64,7 @@ $dom->unlock();
} else {
$t = time();
// XXX: we assume the cron job is at every 5 minutes
- $msg->raise('Ok', "dom", _("The modifications will take effect at %s. Server time is %s."), array(date('H:i:s', ($t-($t%300)+300)), date('H:i:s', $t)));
+ $msg->raise("INFO", "dom", _("The modifications will take effect at %s. Server time is %s."), array(date('H:i:s', ($t-($t%300)+300)), date('H:i:s', $t)));
echo $msg->msg_html_all();
}
?>
diff --git a/bureau/admin/dom_subdoedit.php b/bureau/admin/dom_subdoedit.php
index fb2aa4cd..cee02a39 100644
--- a/bureau/admin/dom_subdoedit.php
+++ b/bureau/admin/dom_subdoedit.php
@@ -50,7 +50,7 @@ $dom->lock();
$dt=$dom->domains_type_lst();
if ( (!isset($isinvited) || !$isinvited) && $dt[strtolower($type)]["enable"] != "ALL" ) {
- $msg->raise('Error', "dom", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "dom", _("This page is restricted to authorized staff"));
include("dom_edit.php");
exit();
}
@@ -68,7 +68,7 @@ if (!$r) {
$t = time();
// XXX: we assume the cron job is at every 5 minutes
$noread=false;
- $msg->raise('Ok', "dom", _("The modifications will take effect at %s. Server time is %s."), array(date('H:i:s', ($t-($t%300)+300)), date('H:i:s', $t)));
+ $msg->raise("INFO", "dom", _("The modifications will take effect at %s. Server time is %s."), array(date('H:i:s', ($t-($t%300)+300)), date('H:i:s', $t)));
foreach($fields as $k=>$v) unset($$k);
}
include("dom_edit.php");
diff --git a/bureau/admin/dom_subedit.php b/bureau/admin/dom_subedit.php
index c3707b13..bedbbb97 100644
--- a/bureau/admin/dom_subedit.php
+++ b/bureau/admin/dom_subedit.php
@@ -55,7 +55,7 @@ if (!$r) {
$dt=$dom->domains_type_lst();
if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) {
- $msg->raise('Error', "dom", _("This page is restricted to authorized staff"));
+ $msg->raise("ERROR", "dom", _("This page is restricted to authorized staff"));
include("dom_edit.php");
exit();
}
diff --git a/bureau/admin/dom_substatus.php b/bureau/admin/dom_substatus.php
index 860c9bee..7ef5e57c 100644
--- a/bureau/admin/dom_substatus.php
+++ b/bureau/admin/dom_substatus.php
@@ -25,7 +25,7 @@ if (!$r) {
} else {
$t = time();
// XXX: we assume the cron job is at every 5 minutes
- $msg->raise('Ok', "dom", _("The modifications will take effect at %s. Server time is %s."), array(date('H:i:s', ($t-($t%300)+300)), date('H:i:s', $t)));
+ $msg->raise("INFO", "dom", _("The modifications will take effect at %s. Server time is %s."), array(date('H:i:s', ($t-($t%300)+300)), date('H:i:s', $t)));
foreach($fields as $k=>$v) unset($k);
}
include("dom_edit.php");
diff --git a/bureau/admin/ftp_del.php b/bureau/admin/ftp_del.php
index 2e5fce43..9600e456 100755
--- a/bureau/admin/ftp_del.php
+++ b/bureau/admin/ftp_del.php
@@ -54,7 +54,7 @@ if(!empty($confirm_del)) {
foreach($lst_todel as $v) {
$r=$ftp->delete_ftp($v);
if ($r) {
- $msg->raise("Ok", "ftp", _("The ftp account %s has been successfully deleted"),$r);
+ $msg->raise("INFO", "ftp", _("The ftp account %s has been successfully deleted"),$r);
}
}
include("ftp_list.php");
diff --git a/bureau/admin/ftp_doedit.php b/bureau/admin/ftp_doedit.php
index 2c270484..44dbaadb 100755
--- a/bureau/admin/ftp_doedit.php
+++ b/bureau/admin/ftp_doedit.php
@@ -40,7 +40,7 @@ $fields = array (
getFields($fields);
if (! $id && !$create) { //not a creation and not an edit
- $msg->raise("Error", "ftp", _("Error: neither a creation nor an edition"));
+ $msg->raise("ERROR", "ftp", _("Error: neither a creation nor an edition"));
include("ftp_list.php");
exit();
}
@@ -60,9 +60,9 @@ if (!$r) {
exit();
} else {
if ($create)
- $msg->raise("Ok", "ftp", _("The ftp account has been successfully created"));
+ $msg->raise("INFO", "ftp", _("The ftp account has been successfully created"));
else
- $msg->raise("Ok", "ftp", _("The ftp account has been successfully saved"));
+ $msg->raise("INFO", "ftp", _("The ftp account has been successfully saved"));
include("ftp_list.php");
exit();
diff --git a/bureau/admin/ftp_edit.php b/bureau/admin/ftp_edit.php
index d5999827..0ba8263f 100755
--- a/bureau/admin/ftp_edit.php
+++ b/bureau/admin/ftp_edit.php
@@ -40,7 +40,7 @@ if ( !isset($is_include) ) {
}
if (!$id && !$create) {
- $msg->raise("Error", "ftp", _("Neither a creation nor a edition"));
+ $msg->raise("ERROR", "ftp", _("Neither a creation nor a edition"));
echo ""._("Create a FTP account")."
";
echo $msg->msg_html_all();
include_once("foot.php");
diff --git a/bureau/admin/ftp_switch_enable.php b/bureau/admin/ftp_switch_enable.php
index 5b77d1a0..16376928 100644
--- a/bureau/admin/ftp_switch_enable.php
+++ b/bureau/admin/ftp_switch_enable.php
@@ -33,9 +33,9 @@ getFields($fields);
if ($ftp->switch_enabled($id,$status)) {
if ($status)
- $msg->raise("Ok", "ftp", _("The ftp account is enabled"));
+ $msg->raise("INFO", "ftp", _("The ftp account is enabled"));
else
- $msg->raise("Ok", "ftp", _("The ftp account is disabled"));
+ $msg->raise("INFO", "ftp", _("The ftp account is disabled"));
}
require_once('ftp_list.php');
diff --git a/bureau/admin/hta_del.php b/bureau/admin/hta_del.php
index b5124f02..a48d932e 100644
--- a/bureau/admin/hta_del.php
+++ b/bureau/admin/hta_del.php
@@ -36,7 +36,7 @@ while (list($key,$val)=each($_POST)) {
// Effacement du dossier $val
$return = $hta->DelDir($val);
if ($return) {
- $msg->raise("Ok", "hta",_("The protected folder %s has been successfully unprotected"),$val);
+ $msg->raise("INFO", "hta",_("The protected folder %s has been successfully unprotected"),$val);
}
}
}
diff --git a/bureau/admin/hta_doadd.php b/bureau/admin/hta_doadd.php
index 7b773fb4..3b2fea23 100644
--- a/bureau/admin/hta_doadd.php
+++ b/bureau/admin/hta_doadd.php
@@ -36,13 +36,13 @@ $fields = array (
getFields($fields);
if(empty($dir)) {
- $msg->raise("Error", "hta", _("No directory specified"));
+ $msg->raise("ERROR", "hta", _("No directory specified"));
include("hta_list.php");
} else if(!$hta->CreateDir($dir)) {
$is_include=true;
include("hta_add.php");
} else {
- $msg->raise("Ok", "hta", _("Folder %s is protected"), $dir);
+ $msg->raise("INFO", "hta", _("Folder %s is protected"), $dir);
include("hta_list.php");
}
?>
diff --git a/bureau/admin/hta_doadduser.php b/bureau/admin/hta_doadduser.php
index f3d75f1d..b8d82390 100644
--- a/bureau/admin/hta_doadduser.php
+++ b/bureau/admin/hta_doadduser.php
@@ -38,7 +38,7 @@ getFields($fields);
if ($password != $passwordconf) {
- $msg->raise("Error", "hta", _("Passwords do not match"));
+ $msg->raise("ERROR", "hta", _("Passwords do not match"));
include("hta_adduser.php");
exit();
}
@@ -46,7 +46,7 @@ if ($password != $passwordconf) {
if (!$hta->add_user($user, $password, $dir)) {
include ("hta_adduser.php");
} else {
- $msg->raise("Ok", "hta", _("The user %s was added to th protected folder %s"), array($user, $dir));
+ $msg->raise("INFO", "hta", _("The user %s was added to th protected folder %s"), array($user, $dir));
include ("hta_edit.php");
}
?>
diff --git a/bureau/admin/hta_dodeluser.php b/bureau/admin/hta_dodeluser.php
index a4fcd5e6..0cc36495 100755
--- a/bureau/admin/hta_dodeluser.php
+++ b/bureau/admin/hta_dodeluser.php
@@ -40,7 +40,7 @@ if (!empty($confirm_del)) {
reset($d);
if ($hta->del_user($d,$dir)) {
foreach ($d as $v) {
- $msg->raise("Ok", "hta", _("The user '%s' was successfully deleted"), $v);
+ $msg->raise("INFO", "hta", _("The user '%s' was successfully deleted"), $v);
}
}
$is_include=true;
diff --git a/bureau/admin/hta_doedituser.php b/bureau/admin/hta_doedituser.php
index 2fd4a383..3dd7b96e 100644
--- a/bureau/admin/hta_doedituser.php
+++ b/bureau/admin/hta_doedituser.php
@@ -39,13 +39,13 @@ $fields = array (
getFields($fields);
if ($newpass != $newpassconf) {
- $msg->raise("Error", "hta", _("Passwords do not match"));
+ $msg->raise("ERROR", "hta", _("Passwords do not match"));
include("hta_edituser.php");
exit();
}
if ($hta->change_pass($user,$newpass,$dir)) {
- $msg->raise("Ok", "hta", _("The password of the user %s has been successfully changed"), $user);
+ $msg->raise("INFO", "hta", _("The password of the user %s has been successfully changed"), $user);
$is_include=true;
include_once("hta_edit.php");
} else {
diff --git a/bureau/admin/hta_edit.php b/bureau/admin/hta_edit.php
index 8e1ea12b..ed9ccecb 100755
--- a/bureau/admin/hta_edit.php
+++ b/bureau/admin/hta_edit.php
@@ -54,7 +54,7 @@ $passwd_classcount = $c['hta']['classcount'];
raise("Info", "hta", _("No authorized user in %s"),$dir);
+ $msg->raise("INFO", "hta", _("No authorized user in %s"),$dir);
echo $msg->msg_html_all();
} else {
reset($r);
diff --git a/bureau/admin/ip_main.php b/bureau/admin/ip_main.php
index d8f87f89..a445e103 100755
--- a/bureau/admin/ip_main.php
+++ b/bureau/admin/ip_main.php
@@ -20,25 +20,25 @@ if (!empty($s_protocol)) {
getFields($fields);
if (! $authip->ip_affected_save($s_ipsub, $s_protocol, $$val) ) {
- $msg->raise('Error', "ftp", _("Error during ip_affected_save"));
+ $msg->raise("ERROR", "ftp", _("Error during ip_affected_save"));
}
}
if (!empty($delete_affected_id)) {
if (! $authip->ip_affected_delete($delete_affected_id)) {
- $msg->raise('Error', "ftp", _("Error during deletion"));
+ $msg->raise("ERROR", "ftp", _("Error during deletion"));
}
}
if (!empty($delete_id)) {
if (! $authip->ip_delete($delete_id)) {
- $msg->raise('Error', "ftp", _("Error during deletion"));
+ $msg->raise("ERROR", "ftp", _("Error during deletion"));
}
}
if (!empty($ipsub)) {
if (! $authip->ip_save($id, $ipsub, $infos)) {
- $msg->raise('Error', "ftp", _("Error during recording"));
+ $msg->raise("ERROR", "ftp", _("Error during recording"));
}
}
diff --git a/bureau/admin/logs_list.php b/bureau/admin/logs_list.php
index cc260922..1f427daf 100644
--- a/bureau/admin/logs_list.php
+++ b/bureau/admin/logs_list.php
@@ -39,7 +39,7 @@ $list=$log->list_logs_directory_all($log->get_logs_directory());
echo $msg->msg_html_all();
if(!$list || empty($list['dir'])){
- $msg->raise('Info', "logs", _("You have no web logs to list at the moment."));
+ $msg->raise("INFO", "logs", _("You have no web logs to list at the moment."));
echo $msg->msg_html_all();
include_once('foot.php');
exit;
diff --git a/bureau/admin/mail_del.php b/bureau/admin/mail_del.php
index cd404262..7260b2d2 100755
--- a/bureau/admin/mail_del.php
+++ b/bureau/admin/mail_del.php
@@ -51,15 +51,15 @@ if ($confirm=="y") {
$db->query("SELECT a.id, NOT ISNULL(m.id) AS islocal FROM address a LEFT JOIN mailbox m ON m.address_id=a.id WHERE a.id= ? ;", array($val));
if (!$db->next_record()) {
- $msg->raise('Error', "mail", _("The email %s does not exist, it can't be deleted"), $email);
+ $msg->raise("ERROR", "mail", _("The email %s does not exist, it can't be deleted"), $email);
continue;
}
if ($mail->delete($val)) {
if ($db->f("islocal")) {
- $msg->raise('Ok', "mail", _("The email %s has been marked for deletion"), $email);
+ $msg->raise("INFO", "mail", _("The email %s has been marked for deletion"), $email);
} else {
- $msg->raise('Ok', "mail", _("The email %s has been successfully deleted"), $email);
+ $msg->raise("INFO", "mail", _("The email %s has been successfully deleted"), $email);
}
}
}
diff --git a/bureau/admin/mail_doedit.php b/bureau/admin/mail_doedit.php
index 46561e0a..32956009 100644
--- a/bureau/admin/mail_doedit.php
+++ b/bureau/admin/mail_doedit.php
@@ -52,7 +52,7 @@ if (!$res=$mail->get_details($mail_id)) {
* checking the password
*/
if($pass != $passconf){
- $msg->raise("Error", "mail", _("Passwords do not match"));
+ $msg->raise("ERROR", "mail", _("Passwords do not match"));
include ("mail_edit.php");
exit();
} else {
@@ -108,15 +108,15 @@ if (!$res=$mail->get_details($mail_id)) {
include ("mail_edit.php");
exit();
} else {
- foreach($rh as $h) if ($h) $msg->raise("Error", "mail", $h);
+ foreach($rh as $h) if ($h) $msg->raise("ERROR", "mail", $h);
}
}
if ($new_account)
- $msg->raise("Ok", "mail", _("Your email has been created successfully"));
+ $msg->raise("INFO", "mail", _("Your email has been created successfully"));
else
- $msg->raise("Ok", "mail", _("Your email has been edited successfully"));
+ $msg->raise("INFO", "mail", _("Your email has been edited successfully"));
$_REQUEST["domain_id"]=$dom->get_domain_byname($res["domain"]);
include("mail_list.php");
diff --git a/bureau/admin/mail_list.php b/bureau/admin/mail_list.php
index 64ae4939..225bbf56 100755
--- a/bureau/admin/mail_list.php
+++ b/bureau/admin/mail_list.php
@@ -59,7 +59,7 @@ if ($domain=$dom->get_domain_byid($domain_id)) {
echo ''._("Manage Catch-all")."
";
}
-echo $msg->msg_html_all("", true, true);
+echo $msg->msg_html_all(true, true);
?>
@@ -85,7 +85,7 @@ echo $msg->msg_html_all("", true, true);
:
raise('Error', 'mail', _("No mails for this domain."));
+ $msg->raise("ERROR", 'mail', _("No mails for this domain."));
echo $msg->msg_html_all();
} else {
diff --git a/bureau/admin/mail_manage_catchall.php b/bureau/admin/mail_manage_catchall.php
index c6d3410a..969c88ab 100644
--- a/bureau/admin/mail_manage_catchall.php
+++ b/bureau/admin/mail_manage_catchall.php
@@ -34,7 +34,7 @@ $fields = array (
getFields($fields);
if (is_null($domain_id)) {
- $msg->raise("Error", "mail", _("Problem with the domain"));
+ $msg->raise("ERROR", "mail", _("Problem with the domain"));
include_once("mail_list.php");
exit();
}
@@ -43,21 +43,21 @@ if (!is_null($target_type)) {
switch ($target_type) {
case "none":
if ($mail->catchall_del($domain_id))
- $msg->raise("Ok", "mail", _("Catchall successfully deleted"));
+ $msg->raise("INFO", "mail", _("Catchall successfully deleted"));
require_once("mail_list.php");
exit();
break;
case "domain":
if ($mail->catchall_set($domain_id, $target_domain)) {
- $msg->raise("Ok", "mail", _("Catchall successfully updated"));
+ $msg->raise("INFO", "mail", _("Catchall successfully updated"));
require_once("mail_list.php");
exit();
}
break;
case "mail":
if ($mail->catchall_set($domain_id, $target_mail)) {
- $msg->raise("Ok", "mail", _("Catchall successfully updated"));
+ $msg->raise("INFO", "mail", _("Catchall successfully updated"));
require_once("mail_list.php");
exit();
}
diff --git a/bureau/admin/mail_undelete.php b/bureau/admin/mail_undelete.php
index edd483d1..69fff209 100644
--- a/bureau/admin/mail_undelete.php
+++ b/bureau/admin/mail_undelete.php
@@ -31,7 +31,7 @@ getFields($fields);
if ($mail->undelete($mail_id)) {
$email = $mail->is_it_my_mail($mail_id)
- $msg->raise('Ok', "mail", _("The email %s has been undeleted"), $email);
+ $msg->raise("INFO", "mail", _("The email %s has been undeleted"), $email);
}
include("mail_list.php");
diff --git a/bureau/admin/mem_admin.php b/bureau/admin/mem_admin.php
index df15205b..c9ce0525 100644
--- a/bureau/admin/mem_admin.php
+++ b/bureau/admin/mem_admin.php
@@ -32,7 +32,7 @@ $fields = array (
getFields($fields);
if ($mem->adminpref($admlist)) {
- $msg->raise('Ok', "mem", _("Your administrator preferences has been successfully changed."));
+ $msg->raise("INFO", "mem", _("Your administrator preferences has been successfully changed."));
}
include_once("head.php");
diff --git a/bureau/admin/mem_chgmail.php b/bureau/admin/mem_chgmail.php
index 3fc9a909..4c46a559 100644
--- a/bureau/admin/mem_chgmail.php
+++ b/bureau/admin/mem_chgmail.php
@@ -35,7 +35,7 @@ $fields = array (
getFields($fields);
if ($cle=$mem->ChangeMail1($newmail)) {
- $msg->raise('Ok', "mem", _("The mail was successfully changed"));
+ $msg->raise("INFO", "mem", _("The mail was successfully changed"));
}
include_once("head.php");
diff --git a/bureau/admin/mem_cm2.php b/bureau/admin/mem_cm2.php
index 17e509e3..d4f44ed5 100644
--- a/bureau/admin/mem_cm2.php
+++ b/bureau/admin/mem_cm2.php
@@ -38,7 +38,7 @@ $fields = array (
getFields($fields);
if ($mem->ChangeMail2($cookie,$cle,$usr)) {
- $msg->raise('Ok', "mem", _("The mailbox has been successfully changed."));
+ $msg->raise("INFO", "mem", _("The mailbox has been successfully changed."));
}
include_once("head.php");
diff --git a/bureau/admin/mem_param.php b/bureau/admin/mem_param.php
index 80b2d61f..f9403a5d 100755
--- a/bureau/admin/mem_param.php
+++ b/bureau/admin/mem_param.php
@@ -40,7 +40,7 @@ getFields($fields);
if (!empty($help_setting)) {
$mem->set_help_param($showhelp);
- $msg->raise('Ok', "mem", _("Your help setting has been updated."));
+ $msg->raise("INFO", "mem", _("Your help setting has been updated."));
}
?>
diff --git a/bureau/admin/mem_passwd.php b/bureau/admin/mem_passwd.php
index adb171e3..0dc960b2 100644
--- a/bureau/admin/mem_passwd.php
+++ b/bureau/admin/mem_passwd.php
@@ -39,7 +39,7 @@ getFields($fields);
if ($mem->passwd($oldpass,$newpass,$newpass2)) {
- $msg->raise('Ok', "mem", _("Your password has been successfully changed."));
+ $msg->raise("INFO", "mem", _("Your password has been successfully changed."));
}
include_once("head.php");
diff --git a/bureau/admin/nowebmail.php b/bureau/admin/nowebmail.php
index e20bfe56..3d66821d 100644
--- a/bureau/admin/nowebmail.php
+++ b/bureau/admin/nowebmail.php
@@ -25,7 +25,7 @@
require_once("../class/config.php");
require_once("head.php");
-$msg->raise('Info', "mail", _("There is currently no webmail configured. If you need one, contact your server administrator");
+$msg->raise("INFO", "mail", _("There is currently no webmail configured. If you need one, contact your server administrator");
include("index.php");
diff --git a/bureau/admin/piwik_addaccount.php b/bureau/admin/piwik_addaccount.php
index ae899c33..381b1961 100644
--- a/bureau/admin/piwik_addaccount.php
+++ b/bureau/admin/piwik_addaccount.php
@@ -33,7 +33,7 @@ $userslist = $piwik->users_list();
$quotapiwik = $quota->getquota('piwik');
if (!($quotapiwik['t'] > 0 && count($userslist) < 3)) {
- $msg->raise('Error', "piwik", _("You cannot add any new Piwik account, your quota is over.")." ("._("Max. 3 accounts").")");
+ $msg->raise("ERROR", "piwik", _("You cannot add any new Piwik account, your quota is over.")." ("._("Max. 3 accounts").")");
}
$fields = array (
@@ -43,7 +43,7 @@ $fields = array (
getFields($fields);
if ($piwik->user_add($account_name, $account_mail) ) {
- $msg->raise('Ok', "piwik", _('Successfully added piwik account'));
+ $msg->raise("INFO", "piwik", _('Successfully added piwik account'));
}
include_once("piwik_userlist.php");
?>
diff --git a/bureau/admin/piwik_addsites.php b/bureau/admin/piwik_addsites.php
index e62ca431..2cd7ee6f 100644
--- a/bureau/admin/piwik_addsites.php
+++ b/bureau/admin/piwik_addsites.php
@@ -39,9 +39,9 @@ getFields($fields);
if(empty($site_name)) $site_name=$site_urls;
if (empty($site_name)) {
- $msg->raise('Error', "piwik", _("All fields are mandatory"));
+ $msg->raise("ERROR", "piwik", _("All fields are mandatory"));
} elseif ( $piwik->site_add($site_name, $site_urls) ) {
- $msg->raise('Ok', "piwik", _("Website added Successfully"));
+ $msg->raise("INFO", "piwik", _("Website added Successfully"));
}
include_once("piwik_sitelist.php");
diff --git a/bureau/admin/piwik_site_dodel.php b/bureau/admin/piwik_site_dodel.php
index 2dda7e67..22f63c93 100755
--- a/bureau/admin/piwik_site_dodel.php
+++ b/bureau/admin/piwik_site_dodel.php
@@ -36,7 +36,7 @@ $fields = array (
getFields($fields);
if ($siteid === -1) {
- $msg->raise('Error', "piwik", _("Missing site parameters"));
+ $msg->raise("ERROR", "piwik", _("Missing site parameters"));
include('piwik_sitelist.php');
exit;
}
@@ -44,7 +44,7 @@ if ($siteid === -1) {
if(!empty($confirm_del) ) {
if ($piwik->site_delete($siteid) ) {
- $msg->raise('Ok', "piwik", _("Site successfully deleted"));
+ $msg->raise("INFO", "piwik", _("Site successfully deleted"));
}
include('piwik_sitelist.php');
diff --git a/bureau/admin/piwik_sitelist.php b/bureau/admin/piwik_sitelist.php
index 20e38ee4..26c485c3 100755
--- a/bureau/admin/piwik_sitelist.php
+++ b/bureau/admin/piwik_sitelist.php
@@ -51,7 +51,7 @@ if ($quota->cancreate("piwik")) {
?>
msg_html_all("", true, true);
+echo $msg->msg_html_all(true, true);
?>