Duplicate

This commit is contained in:
Sébastien Lucas 2014-02-13 18:03:38 +01:00
parent 5bc09db6fb
commit 655589d407
3 changed files with 7 additions and 14 deletions

View file

@ -46,6 +46,13 @@ function getQueryString () {
return "";
}
function notFound () {
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
header("Status: 404 Not Found");
$_SERVER['REDIRECT_STATUS'] = 404;
}
function getURLParam ($name, $default = NULL) {
if (!empty ($_GET) && isset($_GET[$name]) && $_GET[$name] != "") {
return $_GET[$name];