forked from tylda-public/main
new feature: webring
This commit is contained in:
19
webring/members.php
Normal file
19
webring/members.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
$members = [];
|
||||
|
||||
foreach (scandir("/home/") as $user) {
|
||||
if (in_array($user, array('.', '..'))) continue;
|
||||
|
||||
$webring_file = "/home/$user/public_html/.webring";
|
||||
|
||||
if (is_file($webring_file)) {
|
||||
array_push($members, ['name' => $user, 'url' => 'https://tylda.org/~'.$user]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
return $members;
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user