Name: Web-based Rolodex (data-entry component) Author: anonymous Copyright: Public Domain Software Date: Thu Nov 21 16:06:20 PST 1996 Version: 1.0 This is a CGI program package that accepts Rolodex like textural data entry via Web. The Rolodex data may be indexed and searched via Web using other software such as Swish (or free-WAIS-sf). I use this for my personal Web-based Rolodex, which I can search and add entries to from anywhere in the world. Obviously, if your Web security is lax, your private life may be open to the world as well. So, be careful. Although I do have access control, I do not completely trust it. That is why this is an anonymous contribution, so that nobody gets an idea and probe my Web server. Just in case. =========== Installation =========================== [1] Edit config.h to match your local configuration. [2] make and install the executable in a cgi-bin directory as below. Executable addrecord needs to be SUID for the owner of data direcotry. Otherwise, the program runs as user "nobody", and won't be able to write to data directory. In no case, the owner of addrecord and the data directories should be "root". cp addrecord path_to_addrecord_executable chmod u+s path_to_addrecord_executable ls -l path_to_addrecord_executable (confirm: -rwsr-xr-x and if owner is appropriate) [3] Generate static form for data entry startup. cc -Wall -o redo_form -DSTARTUPFORM redo_form.c redo_form >addrecord.html copy addrecord.html to appropriate location. #### Next two steps are left as an excercise for you. #### [4] Set up indexing scheme. Need for reindexing is indicated by the presence of a file ".update-index" in the data base root directory (BASE_DIR) See config.h [5] Set up Web searching either by Swish or free-WAIS-sf.