diff --git a/user_details.php3 b/user_details.php3 index 1c270c275..ad851429e 100644 --- a/user_details.php3 +++ b/user_details.php3 @@ -12,11 +12,11 @@ function check_operations()
- "); + alert(""); return; } sql += "host = '" + f.host.value + "'"; @@ -66,7 +66,7 @@ function normal_operations() if (f.anyuser[0].checked) { if (f.user.value == "") { - alert(""); + alert(""); return; } sql += ", user = '" + f.user.value + "'"; @@ -74,12 +74,12 @@ function normal_operations() if (f.nopass[0].checked) { if (f.pw.value == "") { - alert(""); + alert(""); return; } if (f.pw.value != f.pw2.value) { - alert(""); + alert(""); return; } sql += ", password = PASSWORD('" + f.pw.value + "')"; @@ -89,9 +89,9 @@ function normal_operations() url = "sql.php3"; url += "?sql_query=" + escape(sql); - url += "&zero_rows=" + escape("$strRememberReload"; ?>"); - url += ""; - url += "&goto="; + url += "&zero_rows=" + escape("$strRememberReload"; ?>"); + url += ""; + url += "&goto="; location.href = url; } @@ -102,12 +102,12 @@ function normal_operations()
- "); + alert(""); return; } if (f.anytable[1].checked) { if (table == "") { - alert(""); + alert(""); return; } if (f.anycolumn[1].checked) { if (column == "") { - alert(""); + alert(""); return; } column = " (" + column + ")"; @@ -219,14 +219,14 @@ function grant_operations() sql = "GRANT " + privGrantToString(f) + "" + column; sql += " ON " + db + "." + table - sql += " TO '" + "" + "'@'" + "'" + sql += " TO '" + "" + "'@'" + "'" if (f.Grant_priv.checked) sql += " with grant option"; url = "sql.php3"; url += "?sql_query=" + escape(sql); - url += "&zero_rows=" + escape(""); - url += "&db=mysql"; - url += "&goto="; + url += "&zero_rows=" + escape(""); + url += "&db=mysql"; + url += "&goto="; location.href = url; } @@ -249,15 +249,15 @@ function grant_operations()
- "> - - > - > - - > + + > + > + + > $strAny"; ?> - + $strAll" : $db; ?> $strAll" : $table; ?> $strNoPrivileges"; ?> - + - + - -
- - + +
 
 
- ' and host = ''"; + sql += " WHERE user = '' and host = ''"; url = "sql.php3"; url += "?sql_query=" + escape(sql); - url += "&zero_rows=" + escape("
"); - url += ""; - url += "&goto="; + url += "&zero_rows=" + escape("
"); + url += ""; + url += "&goto="; location.href = url; } function changePassword(f) { if (f.pw.value == "") { - alert(""); + alert(""); return; } if (f.pw.value != f.pw2.value) { - alert(""); + alert(""); return; } url = "sql.php3"; - url += "?sql_query=" + escape("UPDATE user SET password = PASSWORD('" + f.pw.value + "') WHERE user = '' and host = ''"); - url += "&zero_rows=" + escape("
"); - url += ""; - url += "&goto="; + url += "?sql_query=" + escape("UPDATE user SET password = PASSWORD('" + f.pw.value + "') WHERE user = '' and host = ''"); + url += "&zero_rows=" + escape("
"); + url += ""; + url += "&goto="; location.href = url; } //--> @@ -587,30 +587,30 @@ function edit_operations($host, $user)
- - - - - + + + + " . $row{"User"}. "" : "$strAny"; ?> $strNo"; ?> - "; + location = ""; } function clickYes() { @@ -743,14 +743,14 @@ function confirm() { // --> - +
- - + +
-