error 400
This commit is contained in:
parent
2aa1a39d92
commit
8163765bca
|
@ -119,4 +119,4 @@ if($currentArena == ""){
|
||||||
<footer>
|
<footer>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -86,8 +86,12 @@ function error($code,$message){
|
||||||
header("HTTP/1.0 404 Not Found");
|
header("HTTP/1.0 404 Not Found");
|
||||||
echo '<!DOCTYPE html><html lang="fr"><head><meta charset="UTF-8" /><title>Page Not found</title></head><body><p>'.$message.'</p></body></html>';
|
echo '<!DOCTYPE html><html lang="fr"><head><meta charset="UTF-8" /><title>Page Not found</title></head><body><p>'.$message.'</p></body></html>';
|
||||||
die;
|
die;
|
||||||
|
case 400:
|
||||||
|
header ("HTTP/1.0 400 Bad Request");
|
||||||
|
echo '<!DOCTYPE html><html lang="fr"><head><meta charset="UTF-8" /><title>Bad request</title></head><body><p>'.$message.'</p></body></html>';
|
||||||
|
die;
|
||||||
default:
|
default:
|
||||||
|
|
||||||
die;
|
die;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user