diff --git a/ChangeLog b/ChangeLog index b12edd8ab..587551a1a 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-07-04 Marc Delisle + * libraries/auth/cookie.auth.lib.php3: PHP3 compatibility + 2003-07-03 Marc Delisle * lang/romanian update, thanks to Valics Lehel * lang/turkish update, thanks to Bora Alioglu diff --git a/libraries/auth/cookie.auth.lib.php3 b/libraries/auth/cookie.auth.lib.php3 index 0593a431d..f12d06f5f 100644 --- a/libraries/auth/cookie.auth.lib.php3 +++ b/libraries/auth/cookie.auth.lib.php3 @@ -13,6 +13,18 @@ if (!defined('PMA_COOKIE_AUTH_INCLUDED')) { define('PMA_COOKIE_AUTH_INCLUDED', 1); + // emulate array_values() for PHP 3 + if (PMA_PHP_INT_VERSION < 40000) { + + function array_values ($arr) { + $t = array(); + while (list($k, $v) = each ($arr)) { + $t[] = $v; + } + return $t; + } // end function + } // end if + include('./libraries/blowfish.php3'); // Gets the default font sizes