diff options
| -rw-r--r-- | www/functions/func_failure.php | 2 | ||||
| -rw-r--r-- | www/functions/func_rewrite.php | 2 | ||||
| -rw-r--r-- | www/httperror.php | 2 | ||||
| -rw-r--r-- | www/include.php (renamed from www/functions.php) | 0 | ||||
| -rw-r--r-- | www/index.php | 2 | ||||
| -rw-r--r-- | www/static/header.html | 2 |
6 files changed, 5 insertions, 5 deletions
diff --git a/www/functions/func_failure.php b/www/functions/func_failure.php index cff18a0..f7eb43f 100644 --- a/www/functions/func_failure.php +++ b/www/functions/func_failure.php @@ -2,7 +2,7 @@ /* --PAGE NOT FOUND - 404 -- */ function get_404($working_path, $wrong_folder){ - include("404.php"); + include("httperror.php"); exit; } diff --git a/www/functions/func_rewrite.php b/www/functions/func_rewrite.php index 5ca2171..ecc6db8 100644 --- a/www/functions/func_rewrite.php +++ b/www/functions/func_rewrite.php @@ -14,7 +14,7 @@ function rewrite($db){ if($_SESSION["login"]){ header("Refresh: 0; /" . $_SESSION[username] . "/" . $_GET["name"] . "/" . $_GET["folder"] . ""); - exit; + return false; } else { $wrong_folder = $_GET["name"]; diff --git a/www/httperror.php b/www/httperror.php index 1b06226..5deff9f 100644 --- a/www/httperror.php +++ b/www/httperror.php @@ -17,7 +17,7 @@ <?php include("static/header.html");?> - <link rel="stylesheet" type="text/css" href="static/httperror.css"> + <link rel="stylesheet" type="text/css" href="/static/httperror.css"> <div id="Error-Page-content"> <h1 id="Error-Page-head" >404</h1> <h2 id="Error-Page-description" >Wow! I didn't see that coming...Well, I'm sorry...</h2> diff --git a/www/functions.php b/www/include.php index 76b4ba1..76b4ba1 100644 --- a/www/functions.php +++ b/www/include.php diff --git a/www/index.php b/www/index.php index 1f6a38a..2e28073 100644 --- a/www/index.php +++ b/www/index.php @@ -2,7 +2,7 @@ session_start(); -require_once("functions.php"); +require_once("include.php"); // handles all the stuff that needs to be included $db = new SQLite3("../database/sqlite.db"); diff --git a/www/static/header.html b/www/static/header.html index de1ff79..25eba61 100644 --- a/www/static/header.html +++ b/www/static/header.html @@ -2,7 +2,7 @@ <html> <head> <title>VFS</title> - <link rel="stylesheet" href="static/style.css"> + <link rel="stylesheet" href="/static/style.css"> </head> <body> |
