| home | WebInterface For Unix Listproc |
|
Download webinterface.tar (160 K) PGP signature webinterface.tar.gz (24 K) PGP signature Look right now: ./webinterface/ webinterface.pl (syntax highlighted) plain readsubs.c (syntax highlighted) plain History/Changelog Also see: PGP Key |
WebInterface For Unix ListprocCurrent Version: 0.1 - Jul 1999DESCRIPTIONThis is a small perl script I hacked together to make it simplier for the subscribers of one mailinglist to change their settings, subscribe to the list, unsubscribe, get their forgotten passwords and so. It is designed to work for only one list so if you want to use it for more lists you will have to install it a couple of times. You can however share the templates as well as the logfile. You could even split up the script in two parts, do the variable initializing in one part which you copy for all of your lists and then do the actual work in the other part which is the same for all. The question arises if it is worth the trouble since the script is only 40k or so. If there is demand I will perhaps add multi list support. How it worksYou have some static pages (login, subscribe, forgot), the script as well as a small C-proggy (see below).
All actions are done by sending email commands to the listserver ('system <list> <passwd> #<cmd>') so I do not have to take care of nasty things like file locking and I also cannot screw up the listserver's files. The script can run under any user. The only write privileges the script needs are to it's logfile. To find out which users are subscribed the script needs a way to read the subscribers file of your list. Since this is not possible when running as an unprivileged user (at least it was not possible on the system where I needed this script) I came up with the following idea: Write a small C program which reads the subscribers file and prints it to STDOUT. This program is then setuid listserver.
InstallationIn the tarball you will find the following things: The C program, the script, the templates, the static pages, the README and the LICENCE.
$TEMPLATES_BASE the directory you copied the templates to $HOSTNAME the fqhostname of your web server $DOCBASE the vritual directory the static pages are in $SCRIPT_LOCATION the virtual path to the script $LOGFILE the location of the log-file (/dev/null if you don't want one) $SUBSCRIBERS the location of the readsubs program $LISTOWNER your email address known to the listserver as the owner address for your list $LISTSERVER the address of your listserver $LISTNAME the name of your list used by the listserver $LISTPASSWD the password of your list $LISTNAME_TO_DISPLAY $LISTNAME_SHORT_TO_DISPLAY Those 4 are used on the dynamic created $MAINTAINER_ADDRESS_TO_DISPLAY web pages as well as in emails to users. $MAINTAINER_NAME_TO_DISPLAY $SENDMAIL_NO_RETURN here you need to specify the path to sendmail $SENDMAIL_RETURN_LISTOWNER or your equivalent $SEND_COMMAND_CC_TO_LISTOWNER wheter you want CCs of all commands sent to the listserver Peter Palfrader Hoettinger Auffahrt 1 A-6020 Innsbruck Austria/Europe So that's it. Enjoy! LICENSEGPLDownloadHere's the tarball: webinterface.tar (160 K) and the same with gnuzip: webinterface.tar.gz (24 K).If you want to look at the source right now, go to this subdir: ./webinterface/ where you can find the sources, static pages and the templates. You can also have a syntax highlighted version of readsubs.c and of webinterface.pl. If you want them without the syntax highlighting view them here: readsubs.c; webinterface.pl. |
|||
| | ||||
|
Last modified: Sun Jul 18 00:53:43 CEST 1999
by Peter Palfrader
|
||||