diff --git a/ChangeLog b/ChangeLog index 8152b903e..5fdfbdecc 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ $Source$ 2001-08-04 Steve Alberty * lib.inc.php3: fixed #444017 (thanks anonymous) + * db_details.php3, tbl_replace.php3, sql.php3, user_details.php3 + fixed #444542 - replace preg_xxx with ereg (thanks Marc) 2001-08-04 Loïc Chapeaux * config.inc.php3, db_details.php3, Documentation.html, diff --git a/db_details.php3 b/db_details.php3 index 92b6e7a40..6872b7dd3 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -31,7 +31,7 @@ if ($num_tables > 0 && MYSQL_MAJOR_VERSION >= 3.23 && intval(MYSQL_MINOR_VERSION if ($result != FALSE && mysql_num_rows($result) > 0) { while ($tmp = mysql_fetch_array($result)) { // if in use memorize tablename - if (preg_match('/in_use=[1-9]+/', $tmp['Comment'])) { + if (eregi('in_use=[1-9]+', $tmp)) { $sot_cache[$tmp[0]] = TRUE; } } @@ -443,8 +443,8 @@ if ($num_tables > 0) { = 40004) { - $is_gzip = ($cfgGZipDump && @function_exists('gzencode')); - $is_bzip = ($cfgBZipDump && @function_exists('bzcompress')); + $is_gzip = @function_exists('gzencode'); + $is_bzip = @function_exists('bzcompress'); if ($is_gzip || $is_bzip) { echo "\n" . ' ('; if ($is_gzip) { diff --git a/sql.php3 b/sql.php3 index 60b1570ef..fbd416b98 100755 --- a/sql.php3 +++ b/sql.php3 @@ -42,7 +42,7 @@ if (isset($goto) && $goto == 'sql.php3') { } if (isset($btnDrop) && $btnDrop == $strNo) { if (file_exists('./' . $goto)) { - include('./' . preg_replace('/\.\.*/', '.', $goto)); + include('./' . ereg_replace('\.\.*', '.', $goto)); } else { header('Location: ' . $goto); } @@ -161,7 +161,7 @@ else { } else { $message = $strEmptyResultSet; } - $goto = preg_replace('/\.\.*/', '.', $goto); + $goto = ereg_replace('\.\.*', '.', $goto); if ($goto != 'main.php3') { include('./header.inc.php3'); } diff --git a/tbl_replace.php3 b/tbl_replace.php3 index 7992b037b..405272207 100755 --- a/tbl_replace.php3 +++ b/tbl_replace.php3 @@ -175,7 +175,7 @@ if (!$result) { if (file_exists('./' . $goto)) { include('./header.inc.php3'); $message = $strModifications; - include('./' . preg_replace('/\.\.*/', '.', $goto)); + include('./' . ereg_replace('\.\.*', '.', $goto)); //preg_replace('/\.\.*/', '.', $goto)); } else { header('Location: ' . $goto); } diff --git a/user_details.php3 b/user_details.php3 index 82d2a8555..a706558f4 100644 --- a/user_details.php3 +++ b/user_details.php3 @@ -388,7 +388,7 @@ function table_grants($host, $user, $dbcheck = FALSE) $i = 0; while ($row = mysql_fetch_row($result)) { - if (preg_match("/GRANT (.*) ON ([^\.]+).([^\.]+) TO .*$/i", $row[0], $parts)) { + if (eregi("GRANT (.*) ON ([^\.]+).([^\.]+) TO .*$", $row[0], $parts)) { $priv = $parts[1]; $db = $parts[2]; $table = trim($parts[3]);