17 lines
558 B
PHP
17 lines
558 B
PHP
<?php
|
|
if (!file_exists("arc{$arc_san}.md")) {
|
|
echo "\t<p>This arc either doesn't exist or isn't documented. <a href='index.php'>Go home.</a></p>\n";
|
|
include 'footer.php';
|
|
die();
|
|
}
|
|
include "parsedown/Parsedown.php";
|
|
$p = new Parsedown();
|
|
echo $p->text(file_get_contents("arc{$arc_san}.md"));
|
|
echo "\n\t<h4>Bumps</h4>\n\t<ul>\n";
|
|
foreach (glob("./arc{$arc_san}/bump*.yml") as $bumpyml) {
|
|
$num = substr(basename($bumpyml,".yml"),4);
|
|
echo "\t\t<li><a href='index.php?arc={$arc_san}&bump={$num}'>Bump {$num}</a></li>\n";
|
|
}
|
|
echo "\t</ul>\n";
|
|
?>
|