/** * @see \wcf\system\exception\IPrintableException::show() */ public function show() { // send status code @header('HTTP/1.1 503 Service Unavailable'); // print report $e = $this->getPrevious() ?: $this; ?> <!DOCTYPE html> <html> <head> <title>Fatal error: <?php echo htmlspecialchars($this->_getMessage(), ENT_COMPAT, 'UTF-8'); ?> </title> <meta charset="utf-8" /> <style> .systemException { font-family: 'Trebuchet MS', Arial, sans-serif !important; font-size: 80% !important; text-align: left !important; border: 1px solid #036; border-radius: 7px; background-color: #eee !important; overflow: auto !important; } .systemException h1 { font-size: 130% !important; font-weight: bold !important; line-height: 1.1 !important; text-decoration: none !important; text-shadow: 0 -1px 0 #003 !important; color: #fff !important; word-wrap: break-word !important; border-bottom: 1px solid #036; border-top-right-radius: 6px; border-top-left-radius: 6px; background-color: #369 !important; margin: 0 !important; padding: 5px 10px !important; } .systemException div { border-top: 1px solid #fff; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; padding: 0 10px !important; } .systemException h2 { font-size: 130% !important; font-weight: bold !important; color: #369 !important; text-shadow: 0 1px 0 #fff !important; margin: 5px 0 !important; } .systemException pre, .systemException p { text-shadow: none !important; color: #555 !important; margin: 0 !important; } .systemException pre { font-size: .85em !important; font-family: "Courier New" !important; text-overflow: ellipsis; padding-bottom: 1px; overflow: hidden !important; } .systemException pre:hover{ text-overflow: clip; overflow: auto !important; } </style> </head> <body> <div class="systemException"> <h1>Fatal error: <?php if (!$this->getExceptionID()) { ?> Unable to write log file, please make "<?php echo DNS_DIR; ?> /log/" writable!<?php } else { echo htmlspecialchars($this->_getMessage(), ENT_COMPAT, 'UTF-8'); } ?> </h1> <?php if (DNS::debugModeIsEnabled()) { ?> <div> <?php if ($this->getDescription()) { ?> <p><br /><?php echo $this->getDescription(); ?> </p><?php } ?> <h2>Information:</h2> <p> <b>error message:</b> <?php echo htmlspecialchars($this->_getMessage(), ENT_COMPAT, 'UTF-8'); ?> <br> <b>error code:</b> <?php echo intval($e->getCode()); ?> <br> <?php echo $this->information; ?> <b>file:</b> <?php echo htmlspecialchars($e->getFile(), ENT_COMPAT, 'UTF-8'); ?> (<?php echo $e->getLine(); ?> )<br> <b>php version:</b> <?php echo htmlspecialchars(phpversion(), ENT_COMPAT, 'UTF-8'); ?> <br> <b>dns version:</b> <?php echo DNS_VERSION; ?> <br> <b>date:</b> <?php echo gmdate('r'); ?> <br> <b>request:</b> <?php if (isset($_SERVER['REQUEST_URI'])) { echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_COMPAT, 'UTF-8'); } ?> <br> <b>referer:</b> <?php if (isset($_SERVER['HTTP_REFERER'])) { echo htmlspecialchars($_SERVER['HTTP_REFERER'], ENT_COMPAT, 'UTF-8'); } ?> <br> </p> <h2>Stacktrace:</h2> <pre><?php echo htmlspecialchars($this->__getTraceAsString(), ENT_COMPAT, 'UTF-8'); ?> </pre> </div> <?php } else { ?> <div> <h2>Information:</h2> <p> <?php if (!$this->getExceptionID()) { ?> Unable to write log file, please make "<?php echo DNS_DIR; ?> /log/" writable! <?php } else { ?> <b>ID:</b> <code><?php echo $this->getExceptionID(); ?> </code><br> Please send the ID above to the site administrator. <?php } ?> </p> </div> <?php } ?> <?php echo $this->functions; ?> </div> </body> </html> <?php }