function showSessionReport() { if (!isset($_SESSION['user']['email'])) { header('Location: http://www.RocketViews.com/'); } else { if ($_SESSION['user']['email'] != "*****@*****.**") { header('Location: http://www.RocketViews.com/'); } } $session_content = arr2strOpt($_SESSION); echo <<<PHTML <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> \t<head> \t</head> \t<body> \t{$session_content} \t<div id="os_message_box" style="visibility:hidden"> </div> \t</body> </html> <!-- <div class="instructions" title="Copy content in the text area and paste it in your weblog/website">?</div> --> PHTML; }
echo "Add ok\n"; } else { echo "not Added\n"; } } echo 'ok'; /* * MODE: log */ } elseif (isset($_GET['log'])) { showLogPage(); /* * MODE: session_report */ } elseif (isset($_GET['session_report'])) { $session_content = arr2strOpt($_SESSION); echo <<<PHTML <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> \t<head> \t</head> \t<body> \t{$session_content} \t<div id="os_message_box" style="visibility:hidden"> </div> \t</body> </html> <!-- <div class="instructions" title="Copy content in the text area and paste it in your weblog/website">?</div> --> PHTML; /* * MODE: normal */