46 $numargs = func_num_args();
53 $arg_list = func_get_args();
56 include_once
'Services/Authentication/classes/class.ilAuthFactory.php';
61 foreach ($arg_list as $arg)
65 $printbefore =
"<pre style=\"text-align:left;\">";
66 $printbefore .=
"$file - $func - variable $num:<br/>";
67 $printafter =
"</pre><br/>";
71 $printbefore =
"\n\n_________________________________________________".
72 "_________________________________________________\n";
73 $printbefore .=
"$file - $func - variable $num:\n\n";
74 $printafter =
"_________________________________________________".
75 "_________________________________________________\n\n";
97 function pr($var,$name =
'')
99 if($name !=
'') $name .=
' = ';
100 $print = $name.print_r($var,
true);
104 $hr =
"\n---------------------------------------------------------------\n";
109 echo
'<pre>'.$print.
'</pre>';
126 function cf($backjumps = 1)
131 echo
"<pre style=\"text-align:left;\">$fileC - $funcC\nIS CALLED FROM: $fileF - $funcF</pre>";
151 $e =
new Exception();
152 $trace = $e->getTrace();
154 $file = basename($trace[$i][
'file']).
':'.$trace[$i][
'line'];
158 if( isset($trace[$j][
'class']) && strlen($trace[$j][
'class']) )
160 $func = $trace[$j][
'class'];
162 if( isset($trace[$j][
'class']) && strlen($trace[$j][
'class']) )
163 $func .= $trace[$j][
'type'];
167 $func .= $trace[$j][
'function'].
'()';
169 return array(
$file, $func);