"; -__("You currently have no database defined"); - echo "
"; - } +} else { + echo ""; + __("You currently have no database defined"); + echo "
"; +} ?> diff --git a/bureau/admin/sql_del.php b/bureau/admin/sql_del.php index 721f423d..8c200714 100755 --- a/bureau/admin/sql_del.php +++ b/bureau/admin/sql_del.php @@ -1,13 +1,5 @@ $val) { if (substr($key,0,4)=="del_") { diff --git a/bureau/admin/sql_doadd.php b/bureau/admin/sql_doadd.php index a9cc85ed..d1b4dda5 100644 --- a/bureau/admin/sql_doadd.php +++ b/bureau/admin/sql_doadd.php @@ -1,13 +1,5 @@ array ("post", "string", ""), ); + getFields($fields); + if (!$quota->cancreate("mysql")) { $msg->raise("ALERT", "mysql", _("Can't create a database: your quota is over")); include("sql_list.php"); exit; } + $q=$quota->getquota("mysql"); if($q['u'] > 0){ diff --git a/bureau/admin/sql_dobck.php b/bureau/admin/sql_dobck.php index 4e21cebb..6135f152 100644 --- a/bureau/admin/sql_dobck.php +++ b/bureau/admin/sql_dobck.php @@ -1,13 +1,5 @@ restore($restfile,true,$id)) { - $msg->raise("INFO", "mysql", _("Your database has been restored, check out the previous text for error messages.")); -} // if mysql->restore + $msg->raise("INFO", "mysql", _("Your database have been restored, check out the previous text for error messages.")); +} echo $msg->msg_html_all(); ?> diff --git a/bureau/admin/sql_getparam.php b/bureau/admin/sql_getparam.php index 5b76846f..04776bce 100644 --- a/bureau/admin/sql_getparam.php +++ b/bureau/admin/sql_getparam.php @@ -1,13 +1,5 @@