wiki/wiki.php

38 lines
765 B
PHP
Raw Normal View History

<?php
2019-06-28 15:51:05 +00:00
$page = $_GET['page'];
2019-06-28 15:51:05 +00:00
if ( $page == "") {
$page = "main";
}
2019-06-29 02:49:58 +00:00
print "<!DOCTYPE html>
2019-06-30 17:11:12 +00:00
<html lang='en'>
2019-06-28 15:51:05 +00:00
<head>
<title>Thunix Wiki - $page</title>
2019-06-30 17:24:15 +00:00
<link rel='stylesheet' type='text/css' href='/includes/site.css'>
2019-06-28 15:51:05 +00:00
</head>
<body>";
echo ( shell_exec("/usr/bin/pandoc includes/header.md") );
2019-06-30 21:56:55 +00:00
print "<hr>
2019-06-30 17:11:12 +00:00
<div id='body' style='width: 90%;'>
<div id='sidebar' style='width: 20%;float:left;'>";
echo ( shell_exec("/usr/bin/pandoc includes/sidebar.md") );
print " </div>
<div id='content' style='width: 78%; float:right;'>";
echo ( shell_exec("/usr/bin/pandoc articles/$page.md") );
print " </div>
</div><hr>
<div id='footer' style='clear:both;'>";
echo ( shell_exec("/usr/bin/pandoc includes/footer.md") );
2019-06-28 15:51:05 +00:00
print " </div>
</body>
2019-06-28 15:51:05 +00:00
</html>";
?>