thebookofshaders/13/index.php

34 lines
775 B
PHP
Raw Normal View History

2015-07-15 12:12:44 +00:00
<?php
$path = "..";
2015-08-05 11:39:27 +00:00
$subtitle = ": Fractals";
$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>';
include($path."/footer.php");
2015-07-15 12:12:44 +00:00
?>