- description zu den seiten hinzugefügt - square7 etwas entfernt - update pandoc: version 2.13 benötigt
35 lines
918 B
PHP
35 lines
918 B
PHP
<?php
|
|
$basePath = "/users/cwsvjudo/www";
|
|
|
|
require_once($basePath."/ressourcen/phpLib/parsedown/Parsedown.php");
|
|
require_once($basePath."/ressourcen/phpLib/parsedown-extra/ParsedownExtra.php");
|
|
|
|
$fileList = glob($basePath."/admin/mdDisplayer/*.md");
|
|
rsort($fileList);
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<title>mdDisplayer</title>
|
|
<meta name="description" content="mdDisplayer">
|
|
</head>
|
|
<body>
|
|
<?php
|
|
echo("<ul>");
|
|
foreach($fileList as $file){
|
|
echo("<li><a href=\"#".$file."\">".mb_convert_encoding( basename($file), "UTF-8", "ISO-8859-1" )."</a></li>");
|
|
}
|
|
echo("</ul>");
|
|
|
|
foreach($fileList as $file){
|
|
echo("<hr /><a name=\"".$file."\"></a>");
|
|
echo("<div class=\"infoZettel\">" . ParsedownExtra::instance()->text( file_get_contents($file) ) . "</div><hr />");
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|
|
|