thebookofshaders/12/index.php

34 lines
776 B
PHP
Raw Normal View History

2015-07-15 12:12:44 +00:00
<?php
$path = "..";
2016-05-02 10:39:39 +00:00
$subtitle = ": More noise";
2015-08-05 11:39:27 +00:00
$README = "README";
$language = "";
2015-07-15 12:12:44 +00:00
2015-08-05 11:39:27 +00:00
if ( !empty($_GET['lan']) ) {
if (file_exists($README.'-'.$_GET['lan'].'.md')) {
$language = '-'.$_GET['lan'];
$README .= $language;
}
}
2015-07-15 12:12:44 +00:00
2015-08-05 11:39:27 +00:00
include($path."/header.php");
include($path."/chap-header.php");
echo '<div id="content">';
include($path."/src/parsedown/Parsedown.php");
2015-07-15 12:12:44 +00:00
$Parsedown = new Parsedown();
2015-08-05 11:39:27 +00:00
echo $Parsedown->text(file_get_contents($README.'.md'));
2015-07-15 12:12:44 +00:00
echo '
</div>
<hr>
<ul class="navigationBar" >
<li class="navigationBar" onclick="previusPage()">&lt; &lt; Previous</li>
<li class="navigationBar" onclick="homePage()"> Home </li>
<li class="navigationBar" onclick="nextPage()">Next &gt; &gt;</li>
</ul>';
2016-05-15 21:31:24 +00:00
include($path."/footer.php");
2015-07-15 12:12:44 +00:00
?>