Index: trunk/globals.php =================================================================== diff -u -N -r4199 -r4243 --- trunk/globals.php (.../globals.php) (revision 4199) +++ trunk/globals.php (.../globals.php) (revision 4243) @@ -1551,30 +1551,6 @@ if($SFValue == 1 || $SFValue == 2) $list->Clear(); } -if( !function_exists('getArrayValue') ) -{ - /** - * Returns array value if key exists - * - * @param Array $array searchable array - * @param int $key array key - * @return string - * @access public - */ - // - function getArrayValue(&$array,$key) - { - $ret = isset($array[$key]) ? $array[$key] : false; - if ($ret && func_num_args() > 2) { - for ($i = 2; $i < func_num_args(); $i++) { - $cur_key = func_get_arg($i); - $ret = getArrayValue( $ret, $cur_key ); - if ($ret === false) break; - } - } - return $ret; - } -} function MakeHTMLTag($element, $attrib_prefix) { $result = Array(); @@ -1956,21 +1932,6 @@ header('Location: '.$adminURL.'/index.php?'.$redirect_params); exit; } - - if( !function_exists('safeDefine') ) - { - /** - * Define constant if it was not already defined before - * - * @param string $const_name - * @param string $const_value - * @access public - */ - function safeDefine($const_name, $const_value) - { - if(!defined($const_name)) define($const_name,$const_value); - } - } /** * Builds up K4 url from data supplied by in-portal @@ -2022,20 +1983,6 @@ return $ret; } - if( !function_exists('constOn') ) - { - /** - * Checks if constant is defined and has positive value - * - * @param string $const_name - * @return bool - */ - function constOn($const_name) - { - return defined($const_name) && constant($const_name); - } - } - function &recallObject($var_name, $class_name) { if (!isset($GLOBALS[$var_name]) || !is_object($GLOBALS[$var_name]))