Once upon a time, Loïc wrote:
Please try to replace line 35 by: table_grants($row['host'], $row['user'], $dbcheck);
And Armel replied:
Ok. Yes, it works. But now : Parse error: parse error in /usr/local/apache/htdocs/armel/phpMyAdmin-devel/user_details.php3 on line
521
Same problem. I do not have access to CVS from here, if someone can do it...
Here is the list of the changes. Replace line 521 by: $checked = ($row[$priv_priv] == "Y") ? "checked" : "";
and line 610 by: <?php if ($row['Password'] != "") { ?>
and lines 686-699 by: 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 ";
and line 708 by $edit_url .= "&edit=1&host=" . urlencode($row['Host']) . "&user=" . urlencode($row['User']);
and line 712 by: $delete_url .= "&delete=1&confirm=1&delete_host=" . urlencode($row['Host']) . "&delete_user=" . urlencode($row['User']);
and line 717 by $check_url .= "&grants=1&host=" . urlencode($row['Host']) . "&user=" . urlencode($row['User']);
and line 719 by # $check_result = mysql_query("SHOW GRANTS FOR '" . $row['User'] . "'@'" . $row['Host'] ."'");
and line 728-730 by <td><?php echo $row['Host']; ?></td> <td><?php echo $row['User'] ? "<b>" . $row['User']. "</b>" : "<font color=\"#FF0000\">$strAny</font>"; ?></td> <td><?php echo $row['Password'] ? $strYes : "<font color=\"#FF0000\">$strNo</font>"; ?></td>
Cheers, Loïc
______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif