Dropped some MySQL 3.21 / php 3 compatibility code.

This commit is contained in:
Alexander M. Turek
2003-11-20 00:27:37 +00:00
parent e37bf199ae
commit f7c93f5bb1
3 changed files with 184 additions and 227 deletions

View File

@@ -60,7 +60,8 @@ reset($mysql_collations);
$i = 0;
$table_row_count = count($mysql_charsets) + $mysql_collations_count;
while (list(, $current_charset) = each($mysql_charsets)) {
//while (list(, $current_charset) = each($mysql_charsets)) {
foreach ($mysql_charsets as $current_charset) {
if ($i > $table_row_count / 2) {
$i = 0;
echo ' </table>' . "\n"
@@ -84,8 +85,9 @@ while (list(, $current_charset) = each($mysql_charsets)) {
. ' </td>' . "\n"
. ' </tr>' . "\n";
$useBgcolorOne = TRUE;
reset($mysql_collations[$current_charset]);
while (list(, $current_collation) = each($mysql_collations[$current_charset])) {
// reset($mysql_collations[$current_charset]);
// while (list(, $current_collation) = each($mysql_collations[$current_charset])) {
foreach ($mysql_collations[$current_charset] as $current_collation) {
$i++;
echo ' <tr>' . "\n"
. ' <td bgcolor="' . ($mysql_default_collations[$current_charset] == $current_collation ? $cfg['BrowseMarkerColor'] : ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo'])) . '">' . "\n"