/** * Print out a custom error page for an exception with the HTTP status code * specified * * @param object Exception $e * @param int $code * @return void * @access private * @since 2/21/08 */ function printMessage($message, $code) { $codeString = SegueErrorPrinter::getCodeString($code); $errorString = _('Error'); $logMessage = ''; print <<<END <html>\t <head> \t<title>{$code} {$codeString}</title> \t<style> \t\tbody { \t\t\tbackground-color: #FFF8C6; \t\t\tfont-family: Verdana, sans-serif; \t\t} \t\t \t\t.header { \t\t\theight: 65px; \t\t\tborder-bottom: 1px dotted #333; \t\t} \t\t.segue_name { \t\t\tfont-family: Tahoma, sans-serif; \t\t\tfont-variant: small-caps; \t\t\tfont-weight: bold; \t\t\tfont-size: 60px; \t\t\tcolor: #333333; \t\t\t \t\t\tfloat: left; \t\t} \t\t \t\t.error { \t\t\tfont-size: 20px; \t\t\tfont-weight: bold; \t\t\tfloat: left; \t\t\tmargin-top: 40px; \t\t\tmargin-left: 20px; \t\t} \t\t \t\tblockquote { \t\t\tmargin-bottom: 50px; \t\t\tclear: both; \t\t} \t</style> </head> <body> \t<div class='header'> \t\t<div class='segue_name'>Segue</div> \t\t<div class='error'>{$errorString}</div> \t</div> \t<blockquote> \t\t<h1>{$codeString}</h1> \t\t<p>{$message}</p> \t</blockquote> \t<p>{$logMessage}</p> </body> </html> END; }