removed unnecessary md5 calls

This commit is contained in:
Loïc Chapeaux
2001-10-14 09:28:56 +00:00
parent 2b93605e65
commit 11b46733c3
2 changed files with 5 additions and 6 deletions

View File

@@ -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

View File

@@ -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; ?>&amp;table=<?php echo urlencode($table); ?>&amp;sql_query=<?php echo urlencode('SELECT * FROM ' . backquote($table)); ?>&amp;pos=0&amp;goto=tbl_properties.php3"> <a target="phpmain" href="sql.php3?<?php echo $common_url_query; ?>&amp;table=<?php echo urlencode($table); ?>&amp;sql_query=<?php echo urlencode('SELECT * FROM ' . backquote($table)); ?>&amp;pos=0&amp;goto=tbl_properties.php3">
<img src="images/browse.gif" border="0" alt="<?php echo "$strBrowse: $table"; ?>" /></a>&nbsp; <img src="images/browse.gif" border="0" alt="<?php echo "$strBrowse: $table"; ?>" /></a>&nbsp;
<a class="tblItem" title="<?php echo str_replace('"', '&quot;', $tooltip[md5($table)]); ?>" target="phpmain" href="tbl_properties.php3?<?php echo $common_url_query; ?>&amp;table=<?php echo urlencode($table); ?>"> <a class="tblItem" title="<?php echo str_replace('"', '&quot;', $tooltip[$table]); ?>" target="phpmain" href="tbl_properties.php3?<?php echo $common_url_query; ?>&amp;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; ?>&amp;table=<?php echo urlencode($table); ?>&amp;sql_query=<?php echo urlencode('SELECT * FROM ' . backquote($table)); ?>&amp;pos=0&amp;goto=tbl_properties.php3"> <nobr><a target="phpmain" href="sql.php3?<?php echo $common_url_query; ?>&amp;table=<?php echo urlencode($table); ?>&amp;sql_query=<?php echo urlencode('SELECT * FROM ' . backquote($table)); ?>&amp;pos=0&amp;goto=tbl_properties.php3">
<img src="images/browse.gif" border="0" alt="<?php echo "$strBrowse: $table"; ?>" /></a>&nbsp; <img src="images/browse.gif" border="0" alt="<?php echo "$strBrowse: $table"; ?>" /></a>&nbsp;
<a class="tblItem" title="<?php echo str_replace('"', '&quot;', $tooltip[md5($table)]); ?>" target="phpmain" href="tbl_properties.php3?<?php echo $common_url_query; ?>&amp;table=<?php echo urlencode($table); ?>"> <a class="tblItem" title="<?php echo str_replace('"', '&quot;', $tooltip[$table]); ?>" target="phpmain" href="tbl_properties.php3?<?php echo $common_url_query; ?>&amp;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)