error 400

This commit is contained in:
Gnieark 2015-11-28 14:54:07 +01:00
parent 2aa1a39d92
commit 8163765bca
2 changed files with 6 additions and 2 deletions

View File

@ -119,4 +119,4 @@ if($currentArena == ""){
<footer>
</footer>
</body>
</html>
</html>

View File

@ -86,8 +86,12 @@ function error($code,$message){
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>';
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:
die;
break;
}