removed unnecessary md5 calls
This commit is contained in:
@@ -8,6 +8,7 @@ $Source$
|
|||||||
2001-10-14 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2001-10-14 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* libraries/build_dump.lib.php3, lines 202-203: improved the fix against
|
* libraries/build_dump.lib.php3, lines 202-203: improved the fix against
|
||||||
the bug #469416 (Dumps with binary data dont work mysql).
|
the bug #469416 (Dumps with binary data dont work mysql).
|
||||||
|
* left.php3: removed unnecessary md5 calls.
|
||||||
|
|
||||||
2001-10-13 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2001-10-13 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* Documentation.html, lines 504-506: added some words about requirement for
|
* Documentation.html, lines 504-506: added some words about requirement for
|
||||||
|
10
left.php3
10
left.php3
@@ -191,8 +191,7 @@ if ($num_dbs > 1) {
|
|||||||
$tooltip = array();
|
$tooltip = array();
|
||||||
$result = mysql_query('SHOW TABLE STATUS FROM ' . backquote($db));
|
$result = mysql_query('SHOW TABLE STATUS FROM ' . backquote($db));
|
||||||
while ($tmp = mysql_fetch_array($result)) {
|
while ($tmp = mysql_fetch_array($result)) {
|
||||||
// loic1: use md5 to ensure the key use valid characters only
|
$tooltip[$tmp['Name']] = rtrim($tmp['Comment'] . ' (' . $tmp['Rows'] . ' ' . $strRows . ')');
|
||||||
$tooltip[md5($tmp['Name'])] = rtrim($tmp['Comment'] . ' (' . $tmp['Rows'] . ' ' . $strRows . ')');
|
|
||||||
} // end while
|
} // end while
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
@@ -229,7 +228,7 @@ if ($num_dbs > 1) {
|
|||||||
<nobr><img src="images/spacer.gif" border="0" width="9" height="9" alt="" />
|
<nobr><img src="images/spacer.gif" border="0" width="9" height="9" alt="" />
|
||||||
<a target="phpmain" href="sql.php3?<?php echo $common_url_query; ?>&table=<?php echo urlencode($table); ?>&sql_query=<?php echo urlencode('SELECT * FROM ' . backquote($table)); ?>&pos=0&goto=tbl_properties.php3">
|
<a target="phpmain" href="sql.php3?<?php echo $common_url_query; ?>&table=<?php echo urlencode($table); ?>&sql_query=<?php echo urlencode('SELECT * FROM ' . backquote($table)); ?>&pos=0&goto=tbl_properties.php3">
|
||||||
<img src="images/browse.gif" border="0" alt="<?php echo "$strBrowse: $table"; ?>" /></a>
|
<img src="images/browse.gif" border="0" alt="<?php echo "$strBrowse: $table"; ?>" /></a>
|
||||||
<a class="tblItem" title="<?php echo str_replace('"', '"', $tooltip[md5($table)]); ?>" target="phpmain" href="tbl_properties.php3?<?php echo $common_url_query; ?>&table=<?php echo urlencode($table); ?>">
|
<a class="tblItem" title="<?php echo str_replace('"', '"', $tooltip[$table]); ?>" target="phpmain" href="tbl_properties.php3?<?php echo $common_url_query; ?>&table=<?php echo urlencode($table); ?>">
|
||||||
<?php echo $table; ?></a></nobr><br />
|
<?php echo $table; ?></a></nobr><br />
|
||||||
<?php
|
<?php
|
||||||
} // end for $j (tables list)
|
} // end for $j (tables list)
|
||||||
@@ -277,8 +276,7 @@ else if ($num_dbs == 1) {
|
|||||||
$tooltip = array();
|
$tooltip = array();
|
||||||
$result = mysql_query('SHOW TABLE STATUS FROM ' . backquote($db));
|
$result = mysql_query('SHOW TABLE STATUS FROM ' . backquote($db));
|
||||||
while ($tmp = mysql_fetch_array($result)) {
|
while ($tmp = mysql_fetch_array($result)) {
|
||||||
// loic1: use md5 to ensure the key use valid characters only
|
$tooltip[$tmp['Name']] = rtrim($tmp['Comment'] . ' (' . $tmp['Rows'] . ' ' . $strRows . ')');
|
||||||
$tooltip[md5($tmp['Name'])] = rtrim($tmp['Comment'] . ' (' . $tmp['Rows'] . ' ' . $strRows . ')');
|
|
||||||
} // end while
|
} // end while
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
@@ -298,7 +296,7 @@ else if ($num_dbs == 1) {
|
|||||||
?>
|
?>
|
||||||
<nobr><a target="phpmain" href="sql.php3?<?php echo $common_url_query; ?>&table=<?php echo urlencode($table); ?>&sql_query=<?php echo urlencode('SELECT * FROM ' . backquote($table)); ?>&pos=0&goto=tbl_properties.php3">
|
<nobr><a target="phpmain" href="sql.php3?<?php echo $common_url_query; ?>&table=<?php echo urlencode($table); ?>&sql_query=<?php echo urlencode('SELECT * FROM ' . backquote($table)); ?>&pos=0&goto=tbl_properties.php3">
|
||||||
<img src="images/browse.gif" border="0" alt="<?php echo "$strBrowse: $table"; ?>" /></a>
|
<img src="images/browse.gif" border="0" alt="<?php echo "$strBrowse: $table"; ?>" /></a>
|
||||||
<a class="tblItem" title="<?php echo str_replace('"', '"', $tooltip[md5($table)]); ?>" target="phpmain" href="tbl_properties.php3?<?php echo $common_url_query; ?>&table=<?php echo urlencode($table); ?>">
|
<a class="tblItem" title="<?php echo str_replace('"', '"', $tooltip[$table]); ?>" target="phpmain" href="tbl_properties.php3?<?php echo $common_url_query; ?>&table=<?php echo urlencode($table); ?>">
|
||||||
<?php echo $table; ?></a></nobr><br />
|
<?php echo $table; ?></a></nobr><br />
|
||||||
<?php
|
<?php
|
||||||
} // end for $j (tables list)
|
} // end for $j (tables list)
|
||||||
|
Reference in New Issue
Block a user