This script allows to implement a simple cgi chat. It saves the chat messages in a flat file.
chatfile.txt(or whatever it is called at the beginning of the CGI script)
Access control must be done with '.htaccess' or other external
means. A skeleton htaccess file is included as
which requires setting of the absolute path to the necessary
.htpasswd password file. Please make sure you understand the
workings of htaccess etc. Any risk is with you!
Users are identified by the content of the environment variable
REMOTE_USER, or if that is empty, by
At the beginning of the script, a mailer may be defined which can be triggered by a special message (by default 'xxxmail'), resulting in some of the most recent chat lines being sent to a predefined recipient by e-mail. Please see the source!
2019-Mar // Yargo/HB9KNS