Index: branches/unlabeled/unlabeled-1.96.2/globals.php =================================================================== diff -u -r3962 -r4178 --- branches/unlabeled/unlabeled-1.96.2/globals.php (.../globals.php) (revision 3962) +++ branches/unlabeled/unlabeled-1.96.2/globals.php (.../globals.php) (revision 4178) @@ -1351,14 +1351,6 @@ return $x; } -if (!function_exists('print_pre')) { - function print_pre($str) - { - // no comments here :) - echo '
'.print_r($str, true).'
'; - } -} - function GetOptions($field) // by Alex { // get dropdown values from custom field @@ -1552,20 +1544,6 @@ if($SFValue == 1 || $SFValue == 2) $list->Clear(); } -if( !function_exists('getArrayValue') ) -{ - /** - * Returns array value if key exists - * - * @param Array $aArray - * @param int $aIndex - * @return string - */ - function getArrayValue(&$aArray, $aIndex) - { - return isset($aArray[$aIndex]) ? $aArray[$aIndex] : false; - } -} function MakeHTMLTag($element, $attrib_prefix) { $result = Array(); @@ -1947,21 +1925,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 @@ -2013,20 +1976,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]))