mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-03 23:15:23 +00:00
24 lines
464 B
PHP
24 lines
464 B
PHP
<?php
|
|
$path = ".";
|
|
$subtitle = "";
|
|
$README = "README";
|
|
$language = "";
|
|
|
|
if ( !empty($_GET['lan']) ) {
|
|
if (file_exists($README.'-'.$_GET['lan'].'.md')) {
|
|
$language = '-'.$_GET['lan'];
|
|
$README .= $language;
|
|
}
|
|
}
|
|
|
|
include("header.php");
|
|
|
|
echo '<div id="content">';
|
|
|
|
include($path."/src/parsedown/Parsedown.php");
|
|
$Parsedown = new Parsedown();
|
|
echo $Parsedown->text(file_get_contents($README.'.md'));
|
|
|
|
echo '</div>';
|
|
include("footer.php");
|
|
?>
|