mirror of
https://github.com/ThunixdotNet/wiki.git
synced 2026-01-24 12:20:19 +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... -->
|
||||
#### Welcome to the Offical Thunix Wiki!
|
||||
---
|
||||
# Main Page
|
||||
|
||||
test
|
||||
* [SSH and keys](ssh)
|
||||
* [Email](email)
|
||||
|
||||
test
|
||||
<a href="tableofcontents">test link</a>
|
||||
[tableofcontents](tableofcontents "TOC")
|
||||
* [Sandbox Page](sandbox)
|
||||
---
|
||||
|
||||
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>
|
||||
<head>
|
||||
<title>Thunix Wiki - $page</title>
|
||||
<link rel='stylesheet' type='text/css' href='includes/theme.css'>
|
||||
</head>
|
||||
<body>";
|
||||
|
||||
echo ( shell_exec("/usr/bin/pandoc /var/www/wiki.thunix.net/articles/$page.md") );
|
||||
echo ( shell_exec("/usr/bin/pandoc includes/header.md") );
|
||||
echo ( shell_exec("/usr/bin/pandoc articles/$page.md") );
|
||||
echo ( shell_exec("/usr/bin/pandoc includes/footer.md") );
|
||||
|
||||
print " </body>
|
||||
</html>";
|
||||
|
||||
Reference in New Issue
Block a user