CoreFiles by mySites.guru
compat.php41x.php31 lines, 625 bytes, from Joomla_1.0.3-Stable-Full_Package.zip
Raw History
md5
7a8848b179d3c05952793f8d30396ebd
sha1
c17efd51ada918f2b24c54780b2251e9fd139ab8
sha256
3b609151c172852ae09b484ac410ba78968b0ca67ec1d403db3dfbd522f3011e
<?php
/**
 * PHP 4.1.x Compatibility functions
 */

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

if (!function_exists( 'array_change_key_case' )) {
	if (!defined('CASE_LOWER')) {
		define('CASE_LOWER', 0);
	}
	if (!defined('CASE_UPPER')) {
		define('CASE_UPPER', 1);
	}
	function array_change_key_case( $input, $case=CASE_LOWER ) {
		if (!is_array( $input )) {
			return false;
		}
		$array = array();
		foreach ($input as $k=>$v) {
			if ($case) {
				$array[strtoupper( $k )] = $v;
			} else {
				$array[strtolower( $k )] = $v;
			}
		}
		return $array;
	}
}
?>

The same content is in 7 releases, Joomla 1.0.3 to 1.0.11. See them all, or every version of this file.