5 Commits

Author SHA1 Message Date
5ce36803b8 Merge pull request 'users tab' (#5) from feature/users-tab into main
Reviewed-on: #5
Reviewed-by: v0id1st <v0id1st@tylda.org>
2025-10-08 13:42:29 +02:00
fea7b92687 link 2025-10-08 13:41:25 +02:00
ef777eb779 register 2025-10-08 13:33:14 +02:00
e19a66ff62 users tab 2025-10-08 12:15:37 +02:00
5bff409db4 Merge pull request 'feature/css-hell' (#4) from feature/css-hell into main
Reviewed-on: #4
2025-10-07 01:14:23 +02:00
3 changed files with 21 additions and 0 deletions

View File

@@ -13,4 +13,5 @@
<a href="/wiki/">wiki</a> <a href="/wiki/">wiki</a>
<a href="/git/">git</a> <a href="/git/">git</a>
<a href="/register.php">dołącz</a> <a href="/register.php">dołącz</a>
<a href="/users.php">użytkownicy</a>
</header> </header>

View File

@@ -85,3 +85,4 @@ Poniższy formularz trafi do naszych administratorów, którzy go ocenią. Potra
} }
?> ?>

19
users.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
include 'header.php';
?>
<article>
Lista użytkowników i linki do ich blogów
<ul>
<?php
$host=htmlspecialchars($_SERVER['SERVER_NAME']);
//$host="";
foreach (scandir("/home/") as $file) {
if (in_array($file, array('.', '..'))) continue;
echo "<li><a href="/~$file">~$file</a></li>";
}
?>
</ul>
</article>