Viewing file on branch master
| / | cgi-bin | users |
| 1 | #!/bin/sh |
| 2 | |
| 3 | echo "content-type: text/html" |
| 4 | echo |
| 5 | |
| 6 | cat <<EOF |
| 7 | !!$DPP "Groupnix Users" "Users" <template/head.html |
| 8 | !!$DPP "users" <template/bar.html |
| 9 | |
| 10 | <p>Below is the list of users on groupnix</p> |
| 11 | <ul> |
| 12 | EOF |
| 13 | |
| 14 | |
| 15 | for userpath in /home/*; do |
| 16 | user="\${userpath##*/}" |
| 17 | printf '<li><a href="%s">%s</a></li>\n' "/\$user" "\$user" |
| 18 | done |
| 19 | |
| 20 | cat <<EOF |
| 21 | </ul> |
| 22 | !!$DPP <template/foot.html |
| 23 | EOF |
| 24 |