PHP3 compatibility

This commit is contained in:
Marc Delisle
2003-07-04 13:37:06 +00:00
parent f4c749dc11
commit 68d346035a
2 changed files with 15 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2003-07-04 Marc Delisle <lem9@users.sourceforge.net>
* libraries/auth/cookie.auth.lib.php3: PHP3 compatibility
2003-07-03 Marc Delisle <lem9@users.sourceforge.net> 2003-07-03 Marc Delisle <lem9@users.sourceforge.net>
* lang/romanian update, thanks to Valics Lehel * lang/romanian update, thanks to Valics Lehel
* lang/turkish update, thanks to Bora Alioglu * lang/turkish update, thanks to Bora Alioglu

View File

@@ -13,6 +13,18 @@
if (!defined('PMA_COOKIE_AUTH_INCLUDED')) { if (!defined('PMA_COOKIE_AUTH_INCLUDED')) {
define('PMA_COOKIE_AUTH_INCLUDED', 1); 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'); include('./libraries/blowfish.php3');
// Gets the default font sizes // Gets the default font sizes