Remove hardcoded paths to local files
This commit is contained in:
parent
abf209326c
commit
3c0a380ce3
|
@ -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/";
|
||||
|
||||
?>
|
||||
|
|
8
wiki.php
8
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 "<!DOCTYPE html>
|
||||
<html lang='en'>
|
||||
|
|
Loading…
Reference in New Issue