user_details.php3: forgot to change $GLOBALS['cfgXYZ'] to $GLOBALS['cfg']['XYZ']

This commit is contained in:
Robin Johnson
2002-04-25 01:48:18 +00:00
parent dd0833bb21
commit 177c414ba6
2 changed files with 6 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ $Source$
* scripts/convertcfg.pl: Conversion between old config files and new ones. * scripts/convertcfg.pl: Conversion between old config files and new ones.
* scripts/*: Updated comments somewhat * scripts/*: Updated comments somewhat
* tbl_dump.php3:121: renamed $cfgServer_backup to $backup_cfgServer * tbl_dump.php3:121: renamed $cfgServer_backup to $backup_cfgServer
* user_details.php3: forgot to change $GLOBALS['cfgXYZ'] to $GLOBALS['cfg']['XYZ']
2002-04-23 Marc Delisle <lem9@users.sourceforge.net> 2002-04-23 Marc Delisle <lem9@users.sourceforge.net>
* tbl_printview.php3, lang/*.php3: Relation links in printview, * tbl_printview.php3, lang/*.php3: Relation links in printview,

View File

@@ -43,7 +43,7 @@ function PMA_tableGrants(&$host_db_result, $dbcheck = FALSE) {
?> ?>
<!-- Table of grants --> <!-- Table of grants -->
<table border="<?php echo $GLOBALS['cfgBorder']; ?>"> <table border="<?php echo $GLOBALS['cfg']['Border']; ?>">
<tr> <tr>
<?php <?php
// 1. Table headers // 1. Table headers
@@ -114,7 +114,7 @@ function PMA_tableGrants(&$host_db_result, $dbcheck = FALSE) {
} }
} // end if } // end if
$bgcolor = ($i % 2) ? $GLOBALS['cfgBgcolorOne'] : $GLOBALS['cfgBgcolorTwo']; $bgcolor = ($i % 2) ? $GLOBALS['cfg']['BgcolorOne'] : $GLOBALS['cfg']['BgcolorTwo'];
$revoke_url = 'sql.php3' $revoke_url = 'sql.php3'
. '?' . $url_query . '?' . $url_query
. '&amp;sql_query=' . urlencode('REVOKE ' . $priv . ' ON ' . PMA_backquote($db) . '.' . PMA_backquote($table) . ' FROM \'' . $row['User'] . '\'@\'' . $row['Host'] . '\'') . '&amp;sql_query=' . urlencode('REVOKE ' . $priv . ' ON ' . PMA_backquote($db) . '.' . PMA_backquote($table) . ' FROM \'' . $row['User'] . '\'@\'' . $row['Host'] . '\'')
@@ -249,7 +249,7 @@ function PMA_tablePrivileges($form, $row = FALSE)
{ {
global $checkpriv; global $checkpriv;
$checkpriv_url = $GLOBALS['cfgPmaAbsoluteUri'] $checkpriv_url = $GLOBALS['cfg']['PmaAbsoluteUri']
. 'user_details.php3?'; . 'user_details.php3?';
if (empty($GLOBALS['QUERY_STRING'])) { if (empty($GLOBALS['QUERY_STRING'])) {
$GLOBALS['QUERY_STRING'] = (isset($_SERVER)) $GLOBALS['QUERY_STRING'] = (isset($_SERVER))
@@ -797,7 +797,7 @@ function PMA_tableUsers($host = FALSE, $user = FALSE)
} }
echo '<i>' . $GLOBALS['strEnglishPrivileges'] . '</i><br />' . "\n"; echo '<i>' . $GLOBALS['strEnglishPrivileges'] . '</i><br />' . "\n";
echo '<table border="' . $GLOBALS['cfgBorder'] . '">' . "\n"; echo '<table border="' . $GLOBALS['cfg']['Border'] . '">' . "\n";
echo '<tr>' . "\n"; echo '<tr>' . "\n";
echo ' <th colspan="'. (($user) ? '2' : '3') . '">' . $GLOBALS['strAction'] . '</th>' . "\n"; echo ' <th colspan="'. (($user) ? '2' : '3') . '">' . $GLOBALS['strAction'] . '</th>' . "\n";
echo ' <th>' . $GLOBALS['strHost'] . '</th>' . "\n"; echo ' <th>' . $GLOBALS['strHost'] . '</th>' . "\n";
@@ -809,7 +809,7 @@ function PMA_tableUsers($host = FALSE, $user = FALSE)
$i = 0; $i = 0;
while ($row = mysql_fetch_array($result)) { while ($row = mysql_fetch_array($result)) {
$bgcolor = ($i % 2) ? $GLOBALS['cfgBgcolorOne'] : $GLOBALS['cfgBgcolorTwo']; $bgcolor = ($i % 2) ? $GLOBALS['cfg']['BgcolorOne'] : $GLOBALS['cfg']['BgcolorTwo'];
$strPriv = ''; $strPriv = '';
if ($row['Select_priv'] == 'Y') { if ($row['Select_priv'] == 'Y') {