diff options
| author | Horus3 | 2014-03-11 23:58:51 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-11 23:58:51 +0100 |
| commit | 3bb704a521afdd999a7b48b8cff71adfc05c565d (patch) | |
| tree | 84bbebd3c42b03f9f8a761ac5de05f93afd56a77 /www/select_function.php | |
| parent | ca3d504428d053e3c344cafdefc7f7836f39dd1c (diff) | |
| download | files.iamfabulous.de-3bb704a521afdd999a7b48b8cff71adfc05c565d.tar.gz | |
Forward arguments for the httperror site
Diffstat (limited to 'www/select_function.php')
| -rw-r--r-- | www/select_function.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/www/select_function.php b/www/select_function.php index 0421b58..c4f563b 100644 --- a/www/select_function.php +++ b/www/select_function.php @@ -41,8 +41,15 @@ function select($db){ } $prim_id = $parentdir_db->fetchArray(SQLITE3_NUM); if($parentdir != $prim_id[1]){ + $wrong_folder = $folder_array_unsafe[$i]; - failure("This folder doesn't exist. Folder: " . $wrong_folder); + $working_path[0] = $wrong_folder; + + for($j=0; $j<$i; $j++){ + $working_path[$j] = $folder_array_unsafe[$j]; + } + + get_404($working_path, $wrong_folder); } $parentdir = $prim_id[0]; |
