mirror of
https://github.com/ThunixdotNet/wiki.git
synced 2026-03-10 06:00:19 +00:00
Niceified this a bit
This commit is contained in:
19
wiki.php
19
wiki.php
@@ -1,8 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$page= $_GET['page'];
|
$page = $_GET['page'];
|
||||||
|
|
||||||
print "<html><body>";
|
if ( $page == "") {
|
||||||
echo ( shell_exec("/usr/bin/pandoc $page.md") );
|
$page = "main";
|
||||||
print "</body></html>";
|
}
|
||||||
|
|
||||||
|
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>";
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user