A really janky webring made with Go and JavaScript for South London.
templates | ||
.editorconfig | ||
.gitignore | ||
go.mod | ||
go.sum | ||
main.go | ||
README.md | ||
users.go |
South London Webring
This is a work in progress!
Every tilde seems to have a webring, so this is one I made for South London.
This is quite janky as there's no PHP, so the redirection is done using JavaScript on pages that are injected with a user list through Go. When someone joins the ring through the Go script, these pages are updated along with a users.json
file.
Install
Copy the templates
and the binary to a folder of your choosing.
Give the binary a suid bit so that when people execute the program the program can update the pages without the user having permission.
chmod u+s ./webring
The webring can be joined by running the binary.
./webring
The pages are then updated.
Each user needs to have a snippet like so on their webpage.
<a href="https://southlondon.cc/~jakew/ring/prev.html?USERNAME">previous</a>
<a href="https://southlondon.cc/~jakew/ring/random.html?USERNAME">random</a>
<a href="https://southlondon.cc/~jakew/ring/next.html?USERNAME">next</a>
<a href="https://southlondon.cc/~jakew/ring">how to join this webring</a>