From 3c0a380ce3ec9804091aec7a8b3181af3a497577 Mon Sep 17 00:00:00 2001 From: southerntofu Date: Sat, 20 Mar 2021 17:36:39 +0100 Subject: [PATCH] Remove hardcoded paths to local files --- config.php | 3 --- wiki.php | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/config.php b/config.php index c21a003..c34f393 100644 --- a/config.php +++ b/config.php @@ -5,7 +5,4 @@ $site_name="Thunix Wiki"; //Root for the site, in a browser $site_root="https://wiki.thunix.net"; -//Local base root for app files -$doc_root="/var/www/wiki.thunix.net/"; - ?> diff --git a/wiki.php b/wiki.php index 788aab0..fa37516 100644 --- a/wiki.php +++ b/wiki.php @@ -20,10 +20,10 @@ if(isset($_GET['style'])) else $site_style="site"; -$header = file_get_contents("$doc_root/includes/header.md"); -$sidebar = file_get_contents("$doc_root/includes/sidebar.md"); -$content = file_get_contents("$doc_root/articles/$page.md"); -$footer = file_get_contents("$doc_root/includes/footer.md"); +$header = file_get_contents("includes/header.md"); +$sidebar = file_get_contents("includes/sidebar.md"); +$content = file_get_contents("articles/$page.md"); +$footer = file_get_contents("includes/footer.md"); print "