22 include_once (
'WHAT/Lib.Main.php');
23 include_once (
'WHAT/Class.AuthenticatorManager.php');
24 include_once (
'WHAT/wdebug.php');
26 register_shutdown_function(
'handleFatalShutdown');
33 $xa = doubleval(
$a[
"t"]);
34 $xb = doubleval($b[
"t"]);
35 if ($xa > $xb)
return -1;
36 else if ($xa < $xb)
return 1;
40 $status = AuthenticatorManager::checkAccess();
64 throw new \Dcp\Exception(_(
"User must be authenticate"));
68 include_once (
'TOOLBOX/stop.php');
75 $deb = gettimeofday();
81 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/tracetime.js");
86 $deb = gettimeofday();
89 $trace[
"memory"] = sprintf(
"%dkb", round(memory_get_usage() / 1024));
93 $strace =
'var TTRACE=new Object();' .
"\n";
95 foreach (
$trace as $k => $v)
$strace.= sprintf(
" TTRACE['%s']='%s';\n", $k, str_replace(
"'",
" ", $v));
97 $logcode = $action->lay->GenJsCode(
true,
true);
99 $out = str_replace(
"<head>", sprintf(
'<head><script>%s</script>',
$strace) ,
$out);
100 $out = str_replace(
'</head>', sprintf(
'<script type="text/javascript">%s</script></head>',
$logcode) ,
$out);
102 $action->unregister(
"trace");
print< H1 > Check Database< i > $dbaccess</i ></H1 > $a
if($account===false) if(ActionRouter::inMaintenance()) $actionRouter
switch($status) $_SERVER['PHP_AUTH_USER']