gophersite/index.dcgi

38 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
echo " Welcome to tilde.pink!"
echo ""
echo " ___________________"
echo " /o.-==-. .-. .-==-.o\\"
echo " || )) (( ||"
echo " \\\\____// \\\\____//"
echo " \`-==-' \`-==-'"
echo ""
echo "A tilde server of a different shade. tilde.pink is an open tilde"
echo "server, providing shell, email, and gopher accounts. We are a"
echo "gopher only tilde using geomyidae to serve gopher pages. tilde.pink"
echo "runs on DragonflyBSD. DragonflyBSD is a unix-like operating system,"
echo "similar to Linux, but different in many ways. If you're up to the"
echo "challenge and want to learn new things, sign up today."
echo ""
echo "[1|Sign Up|/signup.gph|server|port]"
echo "[1|Documentation|/documentation.gph|server|port]"
echo ""
# Generate a list of users
users=$(ls /home)
for i in $users
do
if [ -f "/home/$i/public_gopher/index.gph" ]
then
echo "[1|~$i|/~$i/|server|port]"
elif [ -f "/home/$i/public_gopher/index.cgi" ]
then
echo "[1|~$i|/~$i/|server|port]"
elif [ -f "/home/$i/public_gopher/index.dcgi" ]
then
echo "[1|~$i|/~$i/|server|port]"
fi
done
echo ""
/usr/local/bin/ddate