summaryrefslogtreecommitdiff
path: root/www/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/functions.php')
-rw-r--r--www/functions.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/www/functions.php b/www/functions.php
index f301cea..34e1a53 100644
--- a/www/functions.php
+++ b/www/functions.php
@@ -258,9 +258,7 @@ function register($db){
/* --PAGE NOT FOUND - 404 -- */
-function get_404(){
-// echo "Sorry, page not found. <br>";
-// select($db);
+function get_404($working_path, $wrong_folder){
include("404.php");
exit;
}
@@ -296,7 +294,11 @@ function rewrite($db){
header("Refresh: 0; /" . $_SESSION[username] . "/" . $_GET["name"] . "/" . $_GET["folder"] . "");
exit;
} else {
- get_404();
+
+ $wrong_folder = $_GET["name"];
+ $working_path = $_GET["name"];
+
+ get_404($working_path, $wrong_folder);
}
return false;
}
@@ -320,5 +322,4 @@ function user($db){
echo "<br><br>";
echo "You have currently $invite invites. <br>";
-// exit;
}