0) { $ringfile = file("/home/$user/.ring", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); if (count($ringfile) > 1 && $ringfile[1] !== "") $dest = trim($ringfile[1]); } $location = $dest ?? "/~$user/"; header("Location: $location"); die(); } else { // keep this as a string so we can escape it easily with htmlspecialchars() $snippet = '
'; $title = "webring - how to join"; include __DIR__ . '/../header.php'; ?>~/.ring
file.this webring can be joined by any user on tilde.team.
first, add the following links to your page, replacing USERNAME by your username (no ~):
=htmlspecialchars($snippet)?>
you may edit the code however you want. it should work as long as the URLs are kept in place and have your user in them.
then create a .ring file in your ~ to be added in the webring:
$ touch ~/.ring
the first line of ~/.ring will be displayed here as a tagline.
the second line of the file is used as a custom link if your webring tags are not on your homepage.
=count($users)?> members in the webring:
it will probably work if you copy it to your own ~/public_html
and adjust the links accordingly.