public static function show($dir) { MasterView::showHeader(null); MasterView::showNav(); LogView::showContent($dir); MasterView::showFooter(null); }
public static function run($dir) { if ($dir == "Out") { setcookie("user", "", time() - 3600); } LogView::show($dir); }
public function displayTracesOfSession() { $formatedTraces = ""; $logView = new LogView(); foreach ($this->formatedLogg as $ip => $sessionOfIp) { foreach ($sessionOfIp as $sessionID => $sessionObjects) { if ($sessionID == $_GET[self::$urlSession]) { foreach ($sessionObjects as $logItem) { $formatedTraces .= "<h2>Trace</h2>"; $formatedTraces .= $logView->showDebugItem($logItem); $formatedTraces .= "****************END*********************"; } } } } return $formatedTraces; }
/** * echo the log to the output buffer * * @param boolean $doDumpSuperGlobals dump $_GET, $_POST etc */ function echoLog($doDumpSuperGlobals = true) { global $logCollection; $logView = new LogView($logCollection); echo $logView->getDebugData($doDumpSuperGlobals); }
<!DOCTYPE html> <html> <head> <title>LogView Tests</title> </head> <body> <h1>LogView Tests</h1> <h3>Should call LogView::show()</h3> <hr/> <?php include_once "../includer.php"; LogView::show("In"); ?> </body> </html>