", true, true);
+echo $msg->msg_html_all(true, true);
// printVar($piwik->dev());
if (empty($userslist)){
- $msg->raise('Info', "piwik", _("No existing Piwik accounts"));
+ $msg->raise("INFO", "piwik", _("No existing Piwik accounts"));
echo $msg->msg_html_all();
} else {
?>
diff --git a/bureau/admin/quota_show.php b/bureau/admin/quota_show.php
index ea747ddc..d0f7a716 100644
--- a/bureau/admin/quota_show.php
+++ b/bureau/admin/quota_show.php
@@ -37,7 +37,7 @@ include_once("head.php");
getquota();
if (!is_array($q) || empty($q) ) {
- $msg->raise('Alert', "quota", _("No quotas for this account, or quotas currently unavailable!"));
+ $msg->raise("ALERT", "quota", _("No quotas for this account, or quotas currently unavailable!"));
include_once("main.php");
exit();
}
diff --git a/bureau/admin/quotas_users.php b/bureau/admin/quotas_users.php
index 1a6764e9..c0b9fccc 100644
--- a/bureau/admin/quotas_users.php
+++ b/bureau/admin/quotas_users.php
@@ -11,7 +11,7 @@ $fields = array (
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();
}
diff --git a/bureau/admin/sql_del.php b/bureau/admin/sql_del.php
index 5dce21d7..721f423d 100755
--- a/bureau/admin/sql_del.php
+++ b/bureau/admin/sql_del.php
@@ -42,7 +42,7 @@ if ($confirm=="y" ) {
// Effacement de la base $val
$r=$mysql->del_db(substr($key,4));
if ($r) {
- $msg->raise("ok", "mysql", _("The database '%s' has been successfully deleted"), $val);
+ $msg->raise("INFO", "mysql", _("The database '%s' has been successfully deleted"), $val);
}
}
}
@@ -57,7 +57,7 @@ foreach($_POST as $key=>$val) {
}
}
if (!$found) {
- $msg->raise("alert", "mysql", _("Please check which databases you want to delete"));
+ $msg->raise("ALERT", "mysql", _("Please check which databases you want to delete"));
include("sql_list.php");
exit();
}
diff --git a/bureau/admin/sql_doadd.php b/bureau/admin/sql_doadd.php
index 3d644bc1..3667dc5d 100644
--- a/bureau/admin/sql_doadd.php
+++ b/bureau/admin/sql_doadd.php
@@ -34,7 +34,7 @@ $fields = array (
);
getFields($fields);
if (!$quota->cancreate("mysql")) {
- $msg->raise("alert", "mysql", _("Can't create a database: your quota is over"));
+ $msg->raise("ALERT", "mysql", _("Can't create a database: your quota is over"));
include("sql_list.php");
exit;
}
@@ -47,7 +47,7 @@ if($q['u'] > 0){
}
if($mysql->add_db($dbname)) {
- $msg->raise("ok", "mysql", _("La base de données '%s' a bien été créé."),$dbname);
+ $msg->raise("INFO", "mysql", _("La base de données '%s' a bien été créé."),$dbname);
}
#header('Location: sql_getparam.php?dbname='.htmlentities($dbname));
diff --git a/bureau/admin/sql_dobck.php b/bureau/admin/sql_dobck.php
index fa22391c..4cbbe102 100644
--- a/bureau/admin/sql_dobck.php
+++ b/bureau/admin/sql_dobck.php
@@ -54,7 +54,7 @@ if ($msg->has_msgs("Error")) {
include("sql_bck.php");
exit();
} else {
- $msg->raise("ok", "mysql", _("Your backup parameters has been successfully changed."));
+ $msg->raise("INFO", "mysql", _("Your backup parameters has been successfully changed."));
}
include("sql_list.php");
?>
diff --git a/bureau/admin/sql_dorestore.php b/bureau/admin/sql_dorestore.php
index a2e2691b..938c6e54 100644
--- a/bureau/admin/sql_dorestore.php
+++ b/bureau/admin/sql_dorestore.php
@@ -57,7 +57,7 @@ if (! $r["enabled"]) {
restore($restfile,true,$id)) {
- $msg->raise("ok", "mysql", _("Your database has been restored, check out the previous text for error messages."));
+ $msg->raise("INFO", "mysql", _("Your database has been restored, check out the previous text for error messages."));
} // if mysql->restore
echo $msg->msg_html_all();
diff --git a/bureau/admin/sql_list.php b/bureau/admin/sql_list.php
index 7e028572..eec81a41 100755
--- a/bureau/admin/sql_list.php
+++ b/bureau/admin/sql_list.php
@@ -40,9 +40,9 @@ $r=$mysql->get_userslist();
raise("info", "mysql", _("You have no database at the moment."));
+ $msg->raise("INFO", "mysql", _("You have no database at the moment."));
} else if(!$r || empty($r)){
- $msg->raise("info", "mysql", _("You have no sql user at the moment."));
+ $msg->raise("INFO", "mysql", _("You have no sql user at the moment."));
}
echo $msg->msg_html_all();
diff --git a/bureau/admin/sql_users_del.php b/bureau/admin/sql_users_del.php
index 7318d339..e55ebf42 100755
--- a/bureau/admin/sql_users_del.php
+++ b/bureau/admin/sql_users_del.php
@@ -39,7 +39,7 @@ if (isset($confirm) && ($confirm=="y")) {
if (substr($key,0,4)=="del_") {
// Effacement de la base $val
if($mysql->del_user($val)) {
- $msg->raise("ok", "mysql", _("The user '%s' has been successfully deleted"), $val);
+ $msg->raise("INFO", "mysql", _("The user '%s' has been successfully deleted"), $val);
}
}
}
diff --git a/bureau/admin/sql_users_doadd.php b/bureau/admin/sql_users_doadd.php
index b6ed53c0..43281af3 100755
--- a/bureau/admin/sql_users_doadd.php
+++ b/bureau/admin/sql_users_doadd.php
@@ -42,7 +42,7 @@ if (!empty($usern)) {
exit;
} else {
$username=$mem->user["login"]."_".$usern;
- $msg->raise("ok", "mysql", _("L'utilisateur '%s' a bien été créé."),$username);
+ $msg->raise("INFO", "mysql", _("L'utilisateur '%s' a bien été créé."),$username);
}
} else {
$usern=$mem->user["login"];
@@ -51,7 +51,7 @@ if (!empty($usern)) {
exit;
} else {
$username=$mem->user["login"];
- $msg->raise("ok", "mysql", _("L'utilisateur '%s' a bien été créé."),$username);
+ $msg->raise("INFO", "mysql", _("L'utilisateur '%s' a bien été créé."),$username);
}
}
diff --git a/bureau/admin/sql_users_dopassword.php b/bureau/admin/sql_users_dopassword.php
index 7a9daa0f..2f15f877 100644
--- a/bureau/admin/sql_users_dopassword.php
+++ b/bureau/admin/sql_users_dopassword.php
@@ -36,7 +36,7 @@ $fields = array (
getFields($fields);
if ($mysql->change_user_password($id,$password,$passwordconf))
- $msg->raise("ok", "mysql", _("Mot de passe changé pour l'utilisateur '%s'."), $id);
+ $msg->raise("INFO", "mysql", _("Mot de passe changé pour l'utilisateur '%s'."), $id);
include("sql_users_list.php");
?>
diff --git a/bureau/admin/sql_users_dorights.php b/bureau/admin/sql_users_dorights.php
index 8069da32..4350caac 100644
--- a/bureau/admin/sql_users_dorights.php
+++ b/bureau/admin/sql_users_dorights.php
@@ -51,7 +51,7 @@ foreach($mysql->get_dblist() as $d){
$mysql->set_user_rights($id,$d['db'],$rights);
}
-$msg->raise("ok", "mysql", _("The rights has been successfully applied to the user"));
+$msg->raise("INFO", "mysql", _("The rights has been successfully applied to the user"));
include("sql_users_list.php");
diff --git a/bureau/admin/sql_users_list.php b/bureau/admin/sql_users_list.php
index 1f36d9b7..fc8542a5 100755
--- a/bureau/admin/sql_users_list.php
+++ b/bureau/admin/sql_users_list.php
@@ -38,7 +38,7 @@ $rdb=$mysql->get_dblist();
msg_html_all("