All pastes #585855 Raw Edit

Stuff

public text v1 · immutable
#585855 ·published 2007-06-23 14:34 UTC
rendered paste body
<?php

$query = getenv('QUERY_STRING');


function print_error($q)
{
	if ($q == "500")
	{
	   <<<HTML
	   <html>
	   <body bgcolor=white text=black>
	   <br><br><br><br>
	   <center>ERROR 500</center></html>
	   HTML;
	}
	elseif ($q == "403")
	{
	   <<<HTML
	   <html>
	   <body bgcolor=white text=black>
	   <br><br><br><br>
	   <center>ERROR 403</center></html>
	   HTML;
	}
	else {
	   <<<HTML
	   <html>
	   <body bgcolor=white text=black>
 	   <br><br><br><br>
	   <center>ERROR 404</center></html>
	   HTML;
        }
}

print_error($query);

?>