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-29 11:01:20 +00:00
|
|
|
<html lang='e'>
|
2019-06-28 15:51:05 +00:00
|
|
|
<head>
|
|
|
|
<title>Thunix Wiki - $page</title>
|
2019-06-28 23:06:33 +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-28 22:48:19 +00:00
|
|
|
print "<hr/>";
|
2019-06-28 22:32:40 +00:00
|
|
|
echo ( shell_exec("/usr/bin/pandoc articles/$page.md") );
|
2019-06-28 22:48:19 +00:00
|
|
|
print "<hr/>";
|
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
|
|
|
|
|
|
|
print " </body>
|
|
|
|
</html>";
|
2019-06-28 15:30:55 +00:00
|
|
|
?>
|