From d25486213ea09f4f733e66c1fefd2b1c2212f275 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Fri, 6 Oct 2017 18:12:41 +0200 Subject: [PATCH] [fix] uppercase by default for known has_msgs() calls --- bureau/admin/adm_domstypeedit.php | 2 +- bureau/admin/adm_quotadoedit.php | 2 +- bureau/admin/adm_tld.php | 2 +- bureau/admin/dom_subdel.php | 2 +- bureau/admin/dom_subdodel.php | 2 +- bureau/admin/dom_subedit.php | 2 +- bureau/admin/mem_chgmail.php | 2 +- bureau/admin/mem_cm.php | 2 +- bureau/admin/mem_param.php | 2 +- bureau/admin/sql_dobck.php | 2 +- bureau/admin/sql_getparam.php | 2 +- bureau/admin/sql_users_rights.php | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bureau/admin/adm_domstypeedit.php b/bureau/admin/adm_domstypeedit.php index c34b2d7f..a07a724f 100755 --- a/bureau/admin/adm_domstypeedit.php +++ b/bureau/admin/adm_domstypeedit.php @@ -61,7 +61,7 @@ $d=$dom->domains_type_get($name); msg_html_all(); -if (! $msg->has_msgs("Error")) { +if (! $msg->has_msgs("ERROR")) { ?>
diff --git a/bureau/admin/adm_quotadoedit.php b/bureau/admin/adm_quotadoedit.php index 3c56e596..3c010d33 100644 --- a/bureau/admin/adm_quotadoedit.php +++ b/bureau/admin/adm_quotadoedit.php @@ -51,7 +51,7 @@ while (list($key,$val)=each($qlist)) { } $mem->unsu(); -if (!$msg->has_msgs("Error")) +if (!$msg->has_msgs("ERROR")) $msg->raise("INFO", "admin", _("The quotas has been successfully edited")); include("adm_list.php"); diff --git a/bureau/admin/adm_tld.php b/bureau/admin/adm_tld.php index cc0fa380..b81ecbc4 100755 --- a/bureau/admin/adm_tld.php +++ b/bureau/admin/adm_tld.php @@ -47,7 +47,7 @@ if (is_array($sel)) { $msg->raise("ERROR", "admin", _("Some TLD cannot be deleted...")." : ".$sel[$i]); } } - if (!$msg->has_msgs("Error")) + if (!$msg->has_msgs("ERROR")) $msg->raise("INFO", "admin", _("The requested TLD has been deleted")); } diff --git a/bureau/admin/dom_subdel.php b/bureau/admin/dom_subdel.php index 391ba648..c84cc500 100755 --- a/bureau/admin/dom_subdel.php +++ b/bureau/admin/dom_subdel.php @@ -49,7 +49,7 @@ if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) { ?>

:

has_msgs('Error')) { +if ($msg->has_msgs("ERROR")) { echo $msg->msg_html_all(); include_once("foot.php"); exit(); diff --git a/bureau/admin/dom_subdodel.php b/bureau/admin/dom_subdodel.php index ce1ed383..acc84bb7 100644 --- a/bureau/admin/dom_subdodel.php +++ b/bureau/admin/dom_subdodel.php @@ -57,7 +57,7 @@ $dom->unlock();

has_msgs('Error')) { + if ($msg->has_msgs("ERROR")) { echo $msg->msg_html_all(); include_once("foot.php"); exit(); diff --git a/bureau/admin/dom_subedit.php b/bureau/admin/dom_subedit.php index bedbbb97..5b3a1154 100644 --- a/bureau/admin/dom_subedit.php +++ b/bureau/admin/dom_subedit.php @@ -63,7 +63,7 @@ if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) { $domroot=$dom->get_domain_all($r['domain']); $dom->unlock(); -if ($msg->has_msgs("Error")) { +if ($msg->has_msgs("ERROR")) { include_once("dom_edit.php"); exit(); } diff --git a/bureau/admin/mem_chgmail.php b/bureau/admin/mem_chgmail.php index 4c46a559..a13a1d87 100644 --- a/bureau/admin/mem_chgmail.php +++ b/bureau/admin/mem_chgmail.php @@ -43,7 +43,7 @@ include_once("head.php");

msg_html_all(); -if ($msg->has_msgs('Error')) { +if ($msg->has_msgs("ERROR")) { echo "

"._("Click here to continue")."

"; include_once("foot.php"); exit(); diff --git a/bureau/admin/mem_cm.php b/bureau/admin/mem_cm.php index c0425e30..23e95a3a 100644 --- a/bureau/admin/mem_cm.php +++ b/bureau/admin/mem_cm.php @@ -42,7 +42,7 @@ getFields($fields);

msg_html_all(); -if ($msg->has_msgs('Error')) { +if ($msg->has_msgs("ERROR")) { echo "

"._("Click here to continue")."

"; include_once("foot.php"); exit(); diff --git a/bureau/admin/mem_param.php b/bureau/admin/mem_param.php index f9403a5d..c42f8c55 100755 --- a/bureau/admin/mem_param.php +++ b/bureau/admin/mem_param.php @@ -46,7 +46,7 @@ if (!empty($help_setting)) { ?>

has_msgs('Error')) { +if ($msg->has_msgs("ERROR")) { include_once("mem_param.php"); exit(); } diff --git a/bureau/admin/sql_dobck.php b/bureau/admin/sql_dobck.php index 4cbbe102..4e21cebb 100644 --- a/bureau/admin/sql_dobck.php +++ b/bureau/admin/sql_dobck.php @@ -50,7 +50,7 @@ getFields($fields); $mysql->put_mysql_backup($id,$bck_mode,$bck_history,$bck_gzip,$bck_dir); -if ($msg->has_msgs("Error")) { +if ($msg->has_msgs("ERROR")) { include("sql_bck.php"); exit(); } else { diff --git a/bureau/admin/sql_getparam.php b/bureau/admin/sql_getparam.php index 9c19c262..6e1a4186 100644 --- a/bureau/admin/sql_getparam.php +++ b/bureau/admin/sql_getparam.php @@ -47,7 +47,7 @@ $res=$mysql->get_defaultsparam($dbname); msg_html_all(); -if ($msg->has_msgs("error")) { +if ($msg->has_msgs("ERROR")) { include_once("foot.php"); exit(); } diff --git a/bureau/admin/sql_users_rights.php b/bureau/admin/sql_users_rights.php index 26ec8a97..20197179 100755 --- a/bureau/admin/sql_users_rights.php +++ b/bureau/admin/sql_users_rights.php @@ -41,7 +41,7 @@ getFields($fields); get_user_dblist($id); -if ($msg->has_msgs("Error")) { +if ($msg->has_msgs("ERROR")) { require_once('sql_users_list.php'); exit(); }