summaryrefslogtreecommitdiff
path: root/localwebsite/handlers/FakeRequestHandler.php
blob: 09e03b88459b82b7a54dcb7d5689cae94c7ceb0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

class FakeRequestHandler extends RequestHandler {

    public function apacheNotFound() {
        http_response_code(404);
        $uri = htmlspecialchars($_SERVER['REQUEST_URI']);
        echo <<<EOF
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL {$uri} was not found on this server.</p>
</body></html>
EOF;
        exit;
    }

}