if a function is missing. Currently only array_change_key_case() is included
have different mappings for each administrator.
* Use require_once instead of require when including xlat.php3
* Add debug statements in sql connect functions
+* Add a missing.php3 file with functions that may be missing from the PHP version used. Include it
+ if a function is missing. Currently only array_change_key_case() is included
Ver 1.70:
* Add the /bin postgresql compatibility patch from Guy Fraser
* Add ldap_userdn as a configuration directive. If set we use that for
if ($config[general_use_session] == 'yes')
session_register('mappings');
}
+
+//Include missing.php3 if needed
+if (!function_exists('array_change_key_case'))
+ include_once('../lib/missing.php3');
?>
--- /dev/null
+function array_change_key_case($input,$case)
+{
+ $NEW_ARR = array();
+ foreach ($input as $val => $key){
+ if ($case == CASE_UPPER)
+ $K = strtoupper($key);
+ else if ($case == CASE_LOWER)
+ $K = strtolower($key);
+ $NEW_ARR[$K] = $val;
+ }
+
+ return $NEW_ARR;
+}