[fix] uppercase by default for known has_msgs() calls

This commit is contained in:
Benjamin Sonntag 2017-10-06 18:12:41 +02:00
parent 33f8e78885
commit d25486213e
12 changed files with 12 additions and 12 deletions

View File

@ -61,7 +61,7 @@ $d=$dom->domains_type_get($name);
<?php
echo $msg->msg_html_all();
if (! $msg->has_msgs("Error")) {
if (! $msg->has_msgs("ERROR")) {
?>
<form action="adm_domstypedoedit.php" method="post" name="main" id="main">

View File

@ -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");

View File

@ -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"));
}

View File

@ -49,7 +49,7 @@ if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) {
?>
<h3><?php printf(_("Deleting subdomain %s"),ife($r['name'],$r['name'].".").$r['domain']); ?> : </h3>
<?php
if ($msg->has_msgs('Error')) {
if ($msg->has_msgs("ERROR")) {
echo $msg->msg_html_all();
include_once("foot.php");
exit();

View File

@ -57,7 +57,7 @@ $dom->unlock();
<hr id="topbar"/>
<br />
<?php
if ($msg->has_msgs('Error')) {
if ($msg->has_msgs("ERROR")) {
echo $msg->msg_html_all();
include_once("foot.php");
exit();

View File

@ -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();
}

View File

@ -43,7 +43,7 @@ include_once("head.php");
<h3><?php __("Change the email of the account"); ?></h3>
<?php
echo $msg->msg_html_all();
if ($msg->has_msgs('Error')) {
if ($msg->has_msgs("ERROR")) {
echo "<p><span class='ina'><a href='mem_param.php'>"._("Click here to continue")."</a></span></p>";
include_once("foot.php");
exit();

View File

@ -42,7 +42,7 @@ getFields($fields);
<h3><?php __("Change the email of the account"); ?></h3>
<?php
echo $msg->msg_html_all();
if ($msg->has_msgs('Error')) {
if ($msg->has_msgs("ERROR")) {
echo "<p><span class='ina'><a href='mem_param.php'>"._("Click here to continue")."</a></span></p>";
include_once("foot.php");
exit();

View File

@ -46,7 +46,7 @@ if (!empty($help_setting)) {
?>
<div align="center"><h3><?php __("Settings of your account"); ?></h3></div>
<?php
if ($msg->has_msgs('Error')) {
if ($msg->has_msgs("ERROR")) {
include_once("mem_param.php");
exit();
}

View File

@ -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 {

View File

@ -47,7 +47,7 @@ $res=$mysql->get_defaultsparam($dbname);
<?php
echo $msg->msg_html_all();
if ($msg->has_msgs("error")) {
if ($msg->has_msgs("ERROR")) {
include_once("foot.php");
exit();
}

View File

@ -41,7 +41,7 @@ getFields($fields);
<?php
$r=$mysql->get_user_dblist($id);
if ($msg->has_msgs("Error")) {
if ($msg->has_msgs("ERROR")) {
require_once('sql_users_list.php');
exit();
}