thebookofshaders/08/index.php

34 lines
776 B
PHP
Raw Normal View History

2017-08-19 10:11:58 +00:00
<?php
$path = "..";
2015-07-18 18:50:10 +00:00
$subtitle = ": 2D Matrices";
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>
2015-07-18 11:33:17 +00:00
<li class="navigationBar" onclick="nextPage()">Next &gt; &gt;</li>
2015-07-15 12:12:44 +00:00
</ul>';
2017-08-19 10:11:58 +00:00
include($path."/footer.php");
?>