diff options
| author | moehm | 2014-03-21 18:40:44 +0100 |
|---|---|---|
| committer | moehm | 2014-03-21 18:40:44 +0100 |
| commit | cd7aeaef26bf05e42e789da6bc4a97118c40d616 (patch) | |
| tree | 1a253657f8ee29fb09dd9b9f03251b0ee6eae41a /www/functions/func_rewrite.php | |
| parent | 08e945b89d649759f40916877f40044657314d9a (diff) | |
| download | files.iamfabulous.de-cd7aeaef26bf05e42e789da6bc4a97118c40d616.tar.gz | |
The index.php starts the download. Also extra function to print empty folders.
Diffstat (limited to 'www/functions/func_rewrite.php')
| -rwxr-xr-x | www/functions/func_rewrite.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/www/functions/func_rewrite.php b/www/functions/func_rewrite.php index 48131f8..a58c7f9 100755 --- a/www/functions/func_rewrite.php +++ b/www/functions/func_rewrite.php @@ -17,15 +17,10 @@ function rewrite($db){ if($_SESSION["login"]){ header("Refresh: 0; /" . $_SESSION['username'] . "/" . $_GET["name"] . "/" . $folder . ""); - return false; - } else { + } - $wrong_folder = $_GET["name"]; - $working_path = $_GET["name"]; + return false; - get_404($working_path, $wrong_folder); - return false; - } } else { return true; } |
