initSession(); engine::$e->checkAuth(); if (isset($_SESSION) && is_array(config::$main['trace']) && in_array($_SESSION['userid'], config::$main['trace'])) { $path = input::$path; $page = input::$page; ob_start(); print "REQUEST AT $path/$page." . input::$eType . "\n"; print "==========================================\n"; print "Time: " . gmstrftime("%Y-%m-%d %H:%M:%S", time()) . "\n\n"; print "SESSION DATA\n"; print_r($_SESSION); print "\n\nINPUT:"; print_r(input::$input); print "\n\n"; $log = ob_get_contents(); $logFile = fopen("/tmp/trace-{$_SESSION['userid']}" . gmstrftime("-%Y-%m-%d", time()) . ".log", "a"); fwrite($logFile, $log); fclose($logFile); ob_end_clean(); } engine::$e->handleInput(); engine::$e->initRPC(); engine::$e->outputData(); endRequest(); } ?>