function __construct() { parent::__construct('debug', NULL, 'debug'); global $_CONF, $_APPREQ, $_FORM, $_DEBUG, $_INFO; $level = $_CONF['debug_level']; $this->BuildStrings($_INFO, 'info'); if ($level >= 1) { $this->BuildArray($_GET, 'GET', 'php'); $this->BuildArray($_POST, 'POST', 'php'); $this->BuildArray($_FILES, 'FILES', 'php'); $this->BuildArray($_SESSION, 'SESSION', 'php'); $this->BuildStrings($_DEBUG[1], 'app'); } if ($level >= 2) { // Application-specific $this->BuildArray($_APPREQ, 'APPREQ', 'app'); $this->BuildArray($_CONF, 'CONF', 'app'); $this->BuildArray($_FORM, 'FORM', 'app'); $this->BuildStrings($_DEBUG[2], 'app'); } if ($level >= 3) { $this->BuildStrings($_DEBUG[3], 'app'); } if ($level >= 4) { $this->BuildArray($_SERVER, 'SERVER', 'php'); } }
$desc = 'The resource identified by the request is only capable of ' . 'generating response entities which have content ' . 'characteristics not acceptable according to the accept ' . 'headers sent in the request.'; break; case 408: $title = 'Request Timeout'; $desc = 'The client did not produce a request within the time that ' . 'this server was prepared to wait.'; break; case 500: $title = 'Internal Server Error'; $desc = 'The server encountered an unexpected condition which ' . 'prevented it from fulfilling the request.'; break; case 501: $title = 'Not Implemented'; $desc = 'This server does not support the functionality required to ' . 'fulfill the request.'; break; case 503: $title = 'Service Unavailable'; $desc = 'This server is currently unable to handle the request due ' . 'to a temporary overload or maintenance.'; break; case 505: $title = 'HTTP Version Not Supported'; $desc = 'The server does not support the protocol version that was ' . 'used in the request message.'; break; } $error = new XMLement('error'); $error->SetAttribute('type', 'http'); $error->AddElement('code', $_APPREQ['error']); $error->AddElement('title', $title); $error->AddElement('description', $desc); $this->PageTitle = 'HTTP Error'; $this->Header = 'HTTP Error'; $this->Data['http_error'] = $error;