forked from thunix/wiki
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... -->
|
||||
#### 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)
|
||||
---
|
||||
|
|
|
@ -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>
|
||||
<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>";
|
||||
|
|
Loading…
Reference in New Issue