diff --git a/bureau/admin/sql_users_password.php b/bureau/admin/sql_users_password.php index a5c84983..d31da416 100644 --- a/bureau/admin/sql_users_password.php +++ b/bureau/admin/sql_users_password.php @@ -34,38 +34,39 @@ $fields = array ( "id" => array ("request", "string", ""), ); getFields($fields); - -$r=$mysql->get_user_dblist($id); - ?>



$error

 

"; - } +$r=$mysql->get_user_dblist($id); +if (!$r) { + $error=_("This user doesn't exist"); +} + +if (! empty($error) ) { + echo "

$error

"; + require_once('foot.php'); + die(); +} ?>
- +
- + - + - - -
- " /> - " onclick="document.location='sql_users_list.php'"/> -
+
+" /> +" onclick="document.location='sql_users_list.php'"/>
diff --git a/bureau/admin/styles/style.css b/bureau/admin/styles/style.css index d9f6ace9..202a1e5e 100644 --- a/bureau/admin/styles/style.css +++ b/bureau/admin/styles/style.css @@ -93,6 +93,9 @@ fieldset { } .inb { + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; border: 1px solid #999; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; diff --git a/bureau/class/m_mysql.php b/bureau/class/m_mysql.php index 438c389c..29f4608e 100644 --- a/bureau/class/m_mysql.php +++ b/bureau/class/m_mysql.php @@ -783,6 +783,12 @@ class m_mysql { function get_user_dblist($user){ global $db,$err,$mem,$cuid; + $this->dbus->query("SELECT * FROM mysql.user WHERE User='".$user."' AND Host='".$this->dbus->Client."';"); + if (!$this->dbus->next_record() ) { + $err->raise('mysql',_("This user does not exist in the MySQL/User database")); + return false; + } + $r=array(); $db->free(); $dblist=$this->get_dblist();