summaryrefslogtreecommitdiff
path: root/linkshorter/error.php
blob: 92ba7137ae8b44235223f85dcc63f108ec29ded1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

require 'functions.php';
ob_start("sanitize_output");

switch($_GET["e"]){
	case("404"):
		do_output("<p><strong>The requested url ( ".htmlentities($_SERVER['REQUEST_URI'])." ) wasn't found on this server.</strong></p>", "404 Not Found", false, "<h1>400 - Not Found</h1>");
		break;

	default:
		do_output("<p>There was a failure and your request can't be proceeded.</p>", "500 Error", false, "<h1>Error!</h1>");
}