2015-07-15 12:12:44 +00:00
|
|
|
<?php
|
2015-07-17 20:24:23 +00:00
|
|
|
|
|
|
|
$path = "..";
|
2015-07-18 18:50:10 +00:00
|
|
|
$subtitle = ": color";
|
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()">< < Previous</li>
|
|
|
|
<li class="navigationBar" onclick="homePage()"> Home </li>
|
|
|
|
<li class="navigationBar" onclick="nextPage()">Next > ></li>
|
|
|
|
</ul>';
|
|
|
|
|
2015-07-17 20:24:23 +00:00
|
|
|
include($path."/footer.php");
|
2015-07-15 12:12:44 +00:00
|
|
|
?>
|