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(" echo $strUserEmpty; ?>");
+ alert("");
return;
}
sql += ", user = '" + f.user.value + "'";
@@ -74,12 +74,12 @@ function normal_operations()
if (f.nopass[0].checked) {
if (f.pw.value == "") {
- alert(" echo $strPasswordEmpty; ?>");
+ alert("");
return;
}
if (f.pw.value != f.pw2.value) {
- alert(" echo $strPasswordNotSame; ?>");
+ 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(" echo "$strAddUserMessage
$strRememberReload"; ?>");
- url += " echo "&server=$server&lang=$lang&db=mysql&table=user"; ?>";
- url += "&goto= echo $self; ?>";
+ 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(" echo $strTableEmpty; ?>");
+ alert("");
return;
}
if (f.anycolumn[1].checked) {
if (column == "") {
- alert(" echo $strColumnEmpty; ?>");
+ alert("");
return;
}
column = " (" + column + ")";
@@ -219,14 +219,14 @@ function grant_operations()
sql = "GRANT " + privGrantToString(f) + "" + column;
sql += " ON " + db + "." + table
- sql += " TO '" + " echo $user; ?>" + "'@'" + " echo $host ?>'"
+ sql += " TO '" + "" + "'@'" + "'"
if (f.Grant_priv.checked) sql += " with grant option";
url = "sql.php3";
url += "?sql_query=" + escape(sql);
- url += "&zero_rows=" + escape(" echo $strAddPrivMessage; ?>");
- url += " echo "&server=$server&lang=$lang"; ?>&db=mysql";
- url += "&goto= echo $self; ?>";
+ url += "&zero_rows=" + escape("");
+ url += "&db=mysql";
+ url += "&goto=";
location.href = url;
}
@@ -249,15 +249,15 @@ function grant_operations()
-
+ ">
- if (!$dbcheck) { ?>
- > echo $strRevokePriv; ?> |
- > echo $strRevokeGrant; ?> |
- } else { ?>
- > echo $strRevoke; ?> |
+
+ > |
+ > |
+
+ > |
|
$strAny"; ?> |
- } ?>
+
$strAll" : $db; ?> |
$strAll" : $table; ?> |
$strNoPrivileges"; ?> |
- if (!$dbcheck) { ?>
+
|
- } ?>
+
-
+
-
+ ' and host = ' echo $host; ?>'";
+ sql += " WHERE user = '' and host = ''";
url = "sql.php3";
url += "?sql_query=" + escape(sql);
- url += "&zero_rows=" + escape(" echo $strUpdatePrivMessage; ?> echo "$user@$host"; ?>
echo $strRememberReload; ?>");
- url += " echo "&server=$server&lang=$lang&db=mysql&table=user"; ?>";
- url += "&goto= echo $self; ?>";
+ url += "&zero_rows=" + escape("
");
+ url += "";
+ url += "&goto=";
location.href = url;
}
function changePassword(f) {
if (f.pw.value == "") {
- alert(" echo $strPasswordEmpty; ?>");
+ alert("");
return;
}
if (f.pw.value != f.pw2.value) {
- alert(" echo $strPasswordNotSame ?>");
+ alert("");
return;
}
url = "sql.php3";
- url += "?sql_query=" + escape("UPDATE user SET password = PASSWORD('" + f.pw.value + "') WHERE user = ' echo $user; ?>' and host = ' echo $host; ?>'");
- url += "&zero_rows=" + escape(" echo $strUpdatePassMessage; ?> echo "$user@$host"; ?>
echo $strRememberReload; ?>");
- url += " echo "&server=$server&lang=$lang&db=mysql&table=user"; ?>";
- url += "&goto= echo $self; ?>";
+ 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)
-
+
- echo $strEdit; ?> |
- echo $strDelete; ?> |
- echo $strGrants; ?> |
-
+ |
+ |
+ |
+
|
" . $row{"User"}. "" : "$strAny"; ?> |
$strNo"; ?> |
|
-
+ ";
+ location = "";
}
function clickYes() {
@@ -743,14 +743,14 @@ function confirm() {
// -->
- echo $strConfirm; ?>
+
-
+