From ca3d504428d053e3c344cafdefc7f7836f39dd1c Mon Sep 17 00:00:00 2001 From: Horus3 Date: Tue, 11 Mar 2014 23:34:20 +0100 Subject: nginx config with error handling --- www/404.php | 20 +++++++++++++++++++- www/select_function.php | 3 ++- 2 files changed, 21 insertions(+), 2 deletions(-) (limited to 'www') diff --git a/www/404.php b/www/404.php index ab926bf..290f09a 100644 --- a/www/404.php +++ b/www/404.php @@ -1,7 +1,25 @@ + + +

404

-

Wow! I didn't see that coming...Well, I'm sorry...

+

Wow! I didn't see that coming...Well, I'm sorry...

diff --git a/www/select_function.php b/www/select_function.php index 6e4bc66..0421b58 100644 --- a/www/select_function.php +++ b/www/select_function.php @@ -41,7 +41,8 @@ function select($db){ } $prim_id = $parentdir_db->fetchArray(SQLITE3_NUM); if($parentdir != $prim_id[1]){ - failure("This folder doesn't exist. Folder: " . $folder_array_unsafe[$i]); + $wrong_folder = $folder_array_unsafe[$i]; + failure("This folder doesn't exist. Folder: " . $wrong_folder); } $parentdir = $prim_id[0]; -- cgit v1.2.3