From cce1044e2eb186d627e0bcaa8368943834527938 Mon Sep 17 00:00:00 2001 From: Gerald Simane Date: Thu, 16 Jul 2009 11:59:42 +0000 Subject: [PATCH] --- vilesci/moodle/account_verwaltung.php | 44 --------------------------- 1 file changed, 44 deletions(-) diff --git a/vilesci/moodle/account_verwaltung.php b/vilesci/moodle/account_verwaltung.php index 00a10ec7e..cc6a2ed1e 100644 --- a/vilesci/moodle/account_verwaltung.php +++ b/vilesci/moodle/account_verwaltung.php @@ -195,48 +195,4 @@ '; exit($content); -#------------------------------------------------------------------------------------------- -# Testfunktion zur Anzeige einer übergebenen Variable oder Array, Default ist GLOBALS -function Test($arr=constLeer,$lfd=0,$displayShow=true,$onlyRoot=false ) -{ - - $tmpArrayString=''; - if (!is_array($arr) && !is_object($arr)) return $arr; - if (is_array($arr) && count($arr)<1 && $displayShow) return ''; - if (is_array($arr) && count($arr)<1 && $displayShow) return "
function Test (???)
"; - - $lfdnr=$lfd + 1; - $tmpAnzeigeStufe=''; - for ($i=1;$i<$lfdnr;$i++) $tmpAnzeigeStufe.="="; - $tmpAnzeigeStufe.="=>"; - while (list( $tmp_key, $tmp_value ) = each($arr) ) - { - if (!$onlyRoot && (is_array($tmp_value) || is_object($tmp_value)) && count($tmp_value) >0) - { - $tmpArrayString.="
$tmpAnzeigeStufe $tmp_key".Test($tmp_value,$lfdnr); - } else if ( (is_array($tmp_value) || is_object($tmp_value)) ) - { - $tmpArrayString.="
$tmpAnzeigeStufe $tmp_key -- 0 Records"; - } else if ($tmp_value!='') - { - $tmpArrayString.="
$tmpAnzeigeStufe $tmp_key :== ".$tmp_value; - } else { - $tmpArrayString.="
$tmpAnzeigeStufe $tmp_key :-- (is Empty :: $tmp_value)"; - } - } - if ($lfd!='') { return $tmpArrayString; } - if (!$displayShow) { return $tmpArrayString; } - - $tmpArrayString.="
"; - $tmpArrayString="


******* START *******
".$tmpArrayString."
******* ENDE *******


"; - if (defined('Sprache_ISO')) - { - $tmpArrayString.="
Language:: ".Sprache_ISO; - } - $tmpArrayString.="
Server:: ".$_SERVER['PHP_SELF']."
"; - return "$tmpArrayString"; - - -} - ?>