Remove hardcoded paths to local files

This commit is contained in:
southerntofu 2021-03-20 17:36:39 +01:00
parent abf209326c
commit 3c0a380ce3
2 changed files with 4 additions and 7 deletions

View File

@ -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/";
?>

View File

@ -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 "<!DOCTYPE html>
<html lang='en'>