2019-06-28 15:30:55 +00:00
|
|
|
<?php
|
|
|
|
|
2019-07-01 00:32:30 +00:00
|
|
|
include('config.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>
|
2019-07-01 01:01:55 +00:00
|
|
|
<title>$site_name - $page</title>
|
|
|
|
<link rel='stylesheet' type='text/css' href='$site_root/includes/site.css'>
|
2019-07-01 01:05:38 +00:00
|
|
|
</head>
|
2019-06-28 15:51:05 +00:00
|
|
|
<body>";
|
2019-07-01 00:32:30 +00:00
|
|
|
echo ( shell_exec("/usr/bin/pandoc $doc_root/includes/header.md") );
|
2019-06-30 02:22:37 +00:00
|
|
|
|
2019-07-01 00:35:39 +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-07-01 00:32:30 +00:00
|
|
|
echo ( shell_exec("/usr/bin/pandoc $doc_root/includes/sidebar.md") );
|
2019-06-30 02:22:37 +00:00
|
|
|
|
|
|
|
print " </div>
|
2019-07-01 00:32:30 +00:00
|
|
|
<div id='content' style='width: 80%; float:right;'>";
|
2019-06-30 02:22:37 +00:00
|
|
|
|
2019-07-01 00:32:30 +00:00
|
|
|
echo ( shell_exec("/usr/bin/pandoc $doc_root/articles/$page.md") );
|
2019-06-30 02:22:37 +00:00
|
|
|
|
2019-06-30 22:37:27 +00:00
|
|
|
print " </div>
|
2019-07-01 00:32:30 +00:00
|
|
|
</div>
|
|
|
|
<div id='footer' style='clear:both;'>
|
2019-07-01 00:35:39 +00:00
|
|
|
<hr>";
|
2019-06-30 02:22:37 +00:00
|
|
|
|
2019-07-01 00:32:30 +00:00
|
|
|
echo ( shell_exec("/usr/bin/pandoc $doc_root/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
|
|
|
?>
|