mirror of
https://github.com/ThunixdotNet/wiki.git
synced 2026-01-24 04:10:18 +00:00
Made wiki.php portable, and added footer and header files
This commit is contained in:
@@ -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")
|
|
||||||
|
|||||||
9
articles/sandbox.md
Normal file
9
articles/sandbox.md
Normal file
@@ -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")
|
||||||
2
includes/footer.md
Normal file
2
includes/footer.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
All content in this wiki is under the CC-By-SA 4.0 or later license.
|
||||||
1
includes/header.md
Normal file
1
includes/header.md
Normal file
@@ -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>";
|
||||||
|
|||||||
Reference in New Issue
Block a user