From 8163765bca59e8367bed0b236c32039ec4b985a6 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Sat, 28 Nov 2015 14:54:07 +0100 Subject: [PATCH] error 400 --- html/index.php | 2 +- src/functions.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/html/index.php b/html/index.php index 37e140c..836cc2a 100644 --- a/html/index.php +++ b/html/index.php @@ -119,4 +119,4 @@ if($currentArena == ""){ - + \ No newline at end of file diff --git a/src/functions.php b/src/functions.php index 2bae4b2..315e245 100644 --- a/src/functions.php +++ b/src/functions.php @@ -86,8 +86,12 @@ function error($code,$message){ header("HTTP/1.0 404 Not Found"); echo 'Page Not found

'.$message.'

'; die; + case 400: + header ("HTTP/1.0 400 Bad Request"); + echo 'Bad request

'.$message.'

'; + die; default: - + die; break; }