mirror of https://github.com/ThunixdotNet/wiki.git
Made wiki.php portable, and added footer and header files
This commit is contained in:
parent
0c842d5d97
commit
7d6c4cad11
|
@ -1,9 +1,8 @@
|
||||||
<center><h1>Official Thunix Wiki.</h1></center> <!-- Make Image?-->
|
---
|
||||||
<!-- Buttons Here... -->
|
# Main Page
|
||||||
#### Welcome to the Offical Thunix Wiki!
|
|
||||||
|
|
||||||
test
|
* [SSH and keys](ssh)
|
||||||
|
* [Email](email)
|
||||||
|
|
||||||
test
|
* [Sandbox Page](sandbox)
|
||||||
<a href="tableofcontents">test link</a>
|
---
|
||||||
[tableofcontents](tableofcontents "TOC")
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
<center><h1>Official Thunix Wiki.</h1></center> <!-- Make Image?-->
|
||||||
|
<!-- Buttons Here... -->
|
||||||
|
#### Welcome to the Offical Thunix Wiki!
|
||||||
|
|
||||||
|
test
|
||||||
|
|
||||||
|
test
|
||||||
|
<a href="tableofcontents">test link</a>
|
||||||
|
[tableofcontents](tableofcontents "TOC")
|
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
All content in this wiki is under the CC-By-SA 4.0 or later license.
|
|
@ -0,0 +1 @@
|
||||||
|
# Thunix Wiki
|
6
wiki.php
6
wiki.php
|
@ -9,10 +9,12 @@ if ( $page == "") {
|
||||||
print "<html>
|
print "<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Thunix Wiki - $page</title>
|
<title>Thunix Wiki - $page</title>
|
||||||
|
<link rel='stylesheet' type='text/css' href='includes/theme.css'>
|
||||||
</head>
|
</head>
|
||||||
<body>";
|
<body>";
|
||||||
|
echo ( shell_exec("/usr/bin/pandoc includes/header.md") );
|
||||||
echo ( shell_exec("/usr/bin/pandoc /var/www/wiki.thunix.net/articles/$page.md") );
|
echo ( shell_exec("/usr/bin/pandoc articles/$page.md") );
|
||||||
|
echo ( shell_exec("/usr/bin/pandoc includes/footer.md") );
|
||||||
|
|
||||||
print " </body>
|
print " </body>
|
||||||
</html>";
|
</html>";
|
||||||
|
|
Loading…
Reference in New Issue