src.dualinventive.com/mtinfo/dist/webroot/rc-4.05/include/debug_info.php

33 lines
828 B
PHP

<?php
/** \file include\debug_info.php
* \brief DI webinterface debug info
* \author Rob Schalken, Core|Vision
* \version 1.0
* \date 17-10-2008
*
* This file displays the debug_info when debug has been enabled
*/
/************************************/
/* XMLHTTP requirements */
/************************************/
if (isset($_POST['xml'])) {
require_once("session.php");
}
if ((isset($_SESSION[$_PAGE_INFO['id']]['dbg']['mask'])) && ($_SESSION[$_PAGE_INFO['id']]['dbg']['mask'] & 0x01)) {
echo "<h1>SERVER array</h1>\n";
echo "<pre>";
print_r($_SERVER);
echo "</pre>";
echo "<h1>COOKIES array</h1>\n";
echo "<pre>";
print_r($_COOKIE);
echo "</pre>";
echo "<h1>SESSION array</h1>\n";
echo "<pre>";
print_r($_SESSION);
echo "</pre>";
}
?>