forked from thunix/wiki
Niceified this a bit
This commit is contained in:
parent
b2cd357199
commit
23aeabdd9b
19
wiki.php
19
wiki.php
|
@ -1,8 +1,19 @@
|
|||
<?php
|
||||
|
||||
$page= $_GET['page'];
|
||||
$page = $_GET['page'];
|
||||
|
||||
print "<html><body>";
|
||||
echo ( shell_exec("/usr/bin/pandoc $page.md") );
|
||||
print "</body></html>";
|
||||
if ( $page == "") {
|
||||
$page = "main";
|
||||
}
|
||||
|
||||
print "<html>
|
||||
<head>
|
||||
<title>Thunix Wiki - $page</title>
|
||||
</head>
|
||||
<body>";
|
||||
|
||||
echo ( shell_exec("/usr/bin/pandoc /var/www/wiki.thunix.net/articles/$page.md") );
|
||||
|
||||
print " </body>
|
||||
</html>";
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue