fixes #7: show alert-info instead of alert-error when successfully changins sql users rights
This commit is contained in:
parent
ad3f3b7d15
commit
911250a73f
|
@ -51,7 +51,7 @@ foreach($mysql->get_dblist() as $d){
|
||||||
$mysql->set_user_rights($id,$d['db'],$rights);
|
$mysql->set_user_rights($id,$d['db'],$rights);
|
||||||
}
|
}
|
||||||
|
|
||||||
$error=_("The rights has been successfully applied to the user");
|
$info=_("The rights has been successfully applied to the user");
|
||||||
include("sql_users_list.php");
|
include("sql_users_list.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -38,6 +38,9 @@ $rdb=$mysql->get_dblist();
|
||||||
<hr id="topbar"/>
|
<hr id="topbar"/>
|
||||||
<br />
|
<br />
|
||||||
<?php
|
<?php
|
||||||
|
if (isset($info) && $info) {
|
||||||
|
echo "<p class=\"alert alert-info\">$info</p><p> </p>";
|
||||||
|
}
|
||||||
if (isset($error) && $error) {
|
if (isset($error) && $error) {
|
||||||
echo "<p class=\"alert alert-danger\">$error</p><p> </p>";
|
echo "<p class=\"alert alert-danger\">$error</p><p> </p>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue