2015-07-16 11:33:05 +00:00
|
|
|
<?php
|
2015-07-17 20:24:23 +00:00
|
|
|
|
|
|
|
$path = "..";
|
2015-07-18 18:50:10 +00:00
|
|
|
if(!empty($_GET))
|
|
|
|
$subtitle = ": ".$_GET['search'];
|
|
|
|
|
2015-07-17 20:24:23 +00:00
|
|
|
include($path."/header.php");
|
|
|
|
include($path."/src/parsedown/Parsedown.php");
|
2016-05-07 15:37:15 +00:00
|
|
|
?>
|
|
|
|
<div class="header">
|
2016-05-07 19:07:34 +00:00
|
|
|
<p class="subtitle"><a href="https://thebookofshaders.com/">The Book of Shaders</a> by <a href="http://patriciogonzalezvivo.com">Patricio Gonzalez Vivo</a></p>
|
2016-05-07 15:37:15 +00:00
|
|
|
</div>
|
2015-07-16 11:33:05 +00:00
|
|
|
<hr>
|
|
|
|
<div id="content">
|
|
|
|
|
2016-05-07 15:37:15 +00:00
|
|
|
<?php
|
2015-07-16 11:33:05 +00:00
|
|
|
$Parsedown = new Parsedown();
|
|
|
|
if(empty($_GET))
|
|
|
|
echo $Parsedown->text(file_get_contents ('README.md'));
|
|
|
|
else
|
2016-04-06 15:44:45 +00:00
|
|
|
echo $Parsedown->text(file_get_contents ( $_GET['search'].'/README.md' ));
|
2015-07-16 11:33:05 +00:00
|
|
|
|
|
|
|
echo '
|
|
|
|
</div>
|
|
|
|
<hr>';
|
|
|
|
|
2015-07-17 20:24:23 +00:00
|
|
|
include($path."/footer.php");
|
2015-07-16 11:33:05 +00:00
|
|
|
?>
|