2019-06-28 15:30:55 +00:00
|
|
|
<?php
|
|
|
|
|
2019-06-28 15:51:05 +00:00
|
|
|
$page = $_GET['page'];
|
2019-06-28 15:30:55 +00:00
|
|
|
|
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>";
|
2019-06-28 22:32:40 +00:00
|
|
|
echo ( shell_exec("/usr/bin/pandoc includes/header.md") );
|
2019-06-30 02:22:37 +00:00
|
|
|
|
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;'>";
|
2019-06-30 02:22:37 +00:00
|
|
|
echo ( shell_exec("/usr/bin/pandoc includes/sidebar.md") );
|
|
|
|
|
|
|
|
print " </div>
|
2019-06-30 22:05:02 +00:00
|
|
|
<div id='content' style='width: 78%; float:right;'>";
|
2019-06-30 02:22:37 +00:00
|
|
|
|
2019-06-28 22:32:40 +00:00
|
|
|
echo ( shell_exec("/usr/bin/pandoc articles/$page.md") );
|
2019-06-30 02:22:37 +00:00
|
|
|
|
2019-06-30 22:37:27 +00:00
|
|
|
print " </div>
|
|
|
|
</div><hr>
|
2019-06-30 17:17:30 +00:00
|
|
|
<div id='footer' style='clear:both;'>";
|
2019-06-30 02:22:37 +00:00
|
|
|
|
2019-06-28 22:32:40 +00:00
|
|
|
echo ( shell_exec("/usr/bin/pandoc includes/footer.md") );
|
2019-06-28 15:51:05 +00:00
|
|
|
|
2019-06-30 17:17:30 +00:00
|
|
|
print " </div>
|
|
|
|
</body>
|
2019-06-28 15:51:05 +00:00
|
|
|
</html>";
|
2019-06-28 15:30:55 +00:00
|
|
|
?>
|