diff --git a/user_details.php3 b/user_details.php3 index 1d5a3a441..69b4c8001 100644 --- a/user_details.php3 +++ b/user_details.php3 @@ -32,7 +32,7 @@ function check_db($dbcheck) table_grants_header($dbcheck); while ($row = mysql_fetch_array($result)) - table_grants($row{"host"}, $row{"user"}, $dbcheck); + table_grants($row['host'], $row['user'], $dbcheck); table_grants_tail(); } @@ -516,7 +516,7 @@ function table_privileges($form, $row = false) $item = 0; while ((list(,$priv) = each($list_priv)) && ++$item) { $priv_priv = $priv . "_priv"; - $checked = ($row{$priv_priv} == "Y") ? "checked" : ""; + $checked = ($row[$priv_priv] == "Y") ? "checked" : ""; if ($item % 2 == 1) echo ""; else echo " "; echo ""; @@ -607,7 +607,7 @@ function edit_operations($host, $user)
  • ">
  • - +
  • @@ -683,20 +683,20 @@ function table_users($host = false, $user = false) $i % 2 ? 0: $bgcolor = $cfgBgcolorTwo; $strPriv = ""; - if ($row{"Select_priv"} == "Y") $strPriv .= "Select "; - if ($row{"Insert_priv"} == "Y") $strPriv .= "Insert "; - if ($row{"Update_priv"} == "Y") $strPriv .= "Update "; - if ($row{"Delete_priv"} == "Y") $strPriv .= "Delete "; - if ($row{"Create_priv"} == "Y") $strPriv .= "Create "; - if ($row{"Drop_priv"} == "Y") $strPriv .= "Drop "; - if ($row{"Reload_priv"} == "Y") $strPriv .= "Reload "; - if ($row{"Shutdown_priv"} == "Y") $strPriv .= "Shutdown "; - if ($row{"Process_priv"} == "Y") $strPriv .= "Process "; - if ($row{"File_priv"} == "Y") $strPriv .= "File "; - if ($row{"Grant_priv"} == "Y") $strPriv .= "Grant "; - if ($row{"References_priv"} == "Y") $strPriv .= "References "; - if ($row{"Index_priv"} == "Y") $strPriv .= "Index "; - if ($row{"Alter_priv"} == "Y") $strPriv .= "Alter "; + if ($row["Select_priv"] == "Y") $strPriv .= "Select "; + if ($row["Insert_priv"] == "Y") $strPriv .= "Insert "; + if ($row["Update_priv"] == "Y") $strPriv .= "Update "; + if ($row["Delete_priv"] == "Y") $strPriv .= "Delete "; + if ($row["Create_priv"] == "Y") $strPriv .= "Create "; + if ($row["Drop_priv"] == "Y") $strPriv .= "Drop "; + if ($row["Reload_priv"] == "Y") $strPriv .= "Reload "; + if ($row["Shutdown_priv"] == "Y") $strPriv .= "Shutdown "; + if ($row["Process_priv"] == "Y") $strPriv .= "Process "; + if ($row["File_priv"] == "Y") $strPriv .= "File "; + if ($row["Grant_priv"] == "Y") $strPriv .= "Grant "; + if ($row["References_priv"] == "Y") $strPriv .= "References "; + if ($row["Index_priv"] == "Y") $strPriv .= "Index "; + if ($row["Alter_priv"] == "Y") $strPriv .= "Alter "; if ($strPriv == "") $strPriv = "$strNoPrivileges"; @@ -705,16 +705,16 @@ function table_users($host = false, $user = false) # Edit $edit_url = $self; $edit_url .= "?server=$server&lang=$lang"; - $edit_url .= "&edit=1&host=" . urlencode($row{"Host"}) . "&user=" . urlencode($row{"User"}); + $edit_url .= "&edit=1&host=" . urlencode($row["Host"]) . "&user=" . urlencode($row["User"]); # Delete $delete_url = "$self?$query"; - $delete_url .= "&delete=1&confirm=1&delete_host=" . urlencode($row{"Host"}) . "&delete_user=" . urlencode($row{"User"}); + $delete_url .= "&delete=1&confirm=1&delete_host=" . urlencode($row["Host"]) . "&delete_user=" . urlencode($row["User"]); # Grants $check_url = $self; $check_url .= "?server=$server&lang=$lang"; - $check_url .= "&grants=1&host=" . urlencode($row{"Host"}) . "&user=" . urlencode($row{"User"}); + $check_url .= "&grants=1&host=" . urlencode($row["Host"]) . "&user=" . urlencode($row["User"]); # $check_result = mysql_query("SHOW GRANTS FOR '" . $row{"User"} . "'@'" . $row{"Host"} ."'"); # if (@mysql_num_rows($check_result) == 0) $check_url = "" @@ -725,9 +725,9 @@ function table_users($host = false, $user = false) - - " . $row{"User"}. "" : "$strAny"; ?> - $strNo"; ?> + + " . $row["User"]. "" : "$strAny"; ?> + $strNo"; ?>