From cd7aeaef26bf05e42e789da6bc4a97118c40d616 Mon Sep 17 00:00:00 2001 From: moehm Date: Fri, 21 Mar 2014 18:40:44 +0100 Subject: The index.php starts the download. Also extra function to print empty folders. --- www/functions/func_rewrite.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'www/functions/func_rewrite.php') 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; } -- cgit v1.2.3