thebookofshaders/glossary/index.php

29 lines
635 B
PHP
Raw Normal View History

2017-08-19 10:11:58 +00:00
<?php
$path = "..";
2017-08-19 10:11:58 +00:00
if(!empty($_GET))
2015-07-18 18:50:10 +00:00
$subtitle = ": ".$_GET['search'];
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");
?>
<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>
</div>
2015-07-16 11:33:05 +00:00
<hr>
<div id="content">
2017-08-19 10:11:58 +00:00
<?php
2015-07-16 11:33:05 +00:00
$Parsedown = new Parsedown();
2017-08-19 10:11:58 +00:00
if(empty($_GET))
2015-07-16 11:33:05 +00:00
echo $Parsedown->text(file_get_contents ('README.md'));
2017-08-19 10:11:58 +00:00
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>';
2017-08-19 10:11:58 +00:00
include($path."/footer.php");
2015-07-16 11:33:05 +00:00
?>