diff options
| author | Horus3 | 2014-04-21 23:25:40 +0200 |
|---|---|---|
| committer | Horus3 | 2014-04-21 23:25:40 +0200 |
| commit | 11ed3a4c720d9379beaf7f5770f297677da5d9a7 (patch) | |
| tree | 59a51f5d040a53d9f990e218baef08065563a59a /www/functions | |
| parent | 1301304d2ea739f550738e0fafc56d74a65905f4 (diff) | |
| download | files.iamfabulous.de-11ed3a4c720d9379beaf7f5770f297677da5d9a7.tar.gz | |
Added 2 more failure pages.
Diffstat (limited to 'www/functions')
| -rwxr-xr-x | www/functions/func_content.php | 4 | ||||
| -rwxr-xr-x | www/functions/func_select.php | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/www/functions/func_content.php b/www/functions/func_content.php index 853adc1..75ce4f7 100755 --- a/www/functions/func_content.php +++ b/www/functions/func_content.php @@ -4,7 +4,9 @@ function collect_content($db,$username, $folder_path){ $owner = user_id($db, $username); if(!$owner){ - failure("This user doesn't exist!"); + $_GET["e"]="user"; + include("httperror.php"); + exit; } $file_id = select_file_id($db, $owner, $folder_path); diff --git a/www/functions/func_select.php b/www/functions/func_select.php index a6f776d..d9db159 100755 --- a/www/functions/func_select.php +++ b/www/functions/func_select.php @@ -13,7 +13,9 @@ function select_file_id($db, $owner, $folder_path){ $root_ar = $root_db->fetchArray(SQLITE3_NUM); $root_id = $root_ar[0]; if(empty($root_ar[0])){ - failure("Seems like the user doesn't want to show his tree: " . $root_id); + $_GET["e"]="user"; + include("httperror.php"); + exit; } $tmp_length = count($folder_array_unsafe); |
