diff options
| author | Horus3 | 2014-03-11 23:34:20 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-11 23:34:20 +0100 |
| commit | ca3d504428d053e3c344cafdefc7f7836f39dd1c (patch) | |
| tree | ee60fa2b445f1e4da347ef992cd08886c231f691 /www | |
| parent | 9ed369355660f41919e9eb0086e73c7589cd0dcf (diff) | |
| download | files.iamfabulous.de-ca3d504428d053e3c344cafdefc7f7836f39dd1c.tar.gz | |
nginx config with error handling
Diffstat (limited to 'www')
| -rw-r--r-- | www/404.php | 20 | ||||
| -rw-r--r-- | www/select_function.php | 3 |
2 files changed, 21 insertions, 2 deletions
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 @@ +<? +/* + GET Parameter, die von nginx übergeben werden: + + $_GET["e"] = 404 Fehler + 403 Fehler + 401 Fehler + 500 Fehler + 502 Fehler + 504 Fehler + + Variablen, die der Funktion übergeben werden: + + $wrong_folder: enthält den ersten Ordner, der nicht in der Datenbank gespeichert ist, also zB. "Bildr" +*/ +?> + + <?php include("static/header.html");?> <link rel="stylesheet" type="text/css" href="static/404.css"> <div id="Error-Page-content"> <h1 id="Error-Page-head" >404</h1> - <h2 id="Error-Page-description" >Wow! I didn't see that coming...Well, I'm sorry...</h2> + <h2 id="Error-Page-description" >Wow! I didn't see that coming...Well, I'm sorry...</h2> </div> <?php include("static/footer.html");?> 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]; |
