18 lines
555 B
PHP
18 lines
555 B
PHP
<?php include 'header.php' ?>
|
|
<p>Welcome to our wiki</p>
|
|
<p>Also check <a href="https://tilde.wiki">tilde.wiki</a></p>
|
|
<h3>Articles</h3>
|
|
<?php
|
|
if ($opendirectory = opendir('.')) {
|
|
while (($file = readdir($opendirectory)) !== false) {
|
|
if ($file != "index.php" and $file != "footer.php" and $file != "header.php" and $file[0] != '.') {
|
|
$name = str_replace("<h3>", '', file($file)[1]);
|
|
$name = str_replace("</h3>", '', $name);
|
|
echo "<p>~> <a href=\"$file\">$name</a></p>";
|
|
}
|
|
}
|
|
closedir($opendirectory);
|
|
}
|
|
?>
|
|
<?php include 'footer.php' ?>
|