From: Richard R. <nm...@ri...> - 2004-05-07 01:06:33
|
Hello all, I have written an admin script for guestbook.pl. It requires a small patch to guestbook.pl (attached, but also here[0]), to mark the beginning and end of comments. It provides an a login interface for the user, by password, and an admin view of the guestbook. From here, the administrator can hide and unhide comments, and delete comments, and logout. The code is compatible with the rest of the code from nms-cgi (will work with perl 5.004, no external modules required, uses -wT and use strict), and should introduce no security holes, though I would encourage a review beforehand, in case there is anything I have missed. The code is attached, but can also be found here[1]. Questions, comments, and so forth should be mailed directly to me, as I am not on the list. The code is hereby donated to the NMS-CGI project, for distribution under whichever licence they see fit, and for maintainance by themselves. Richard Rose [0] http://pkl.net/~rik/nms/guestbook.pl.diff MD5 (guestbook.pl.diff) = bd07e6f0a7c7673b9f82e24c3d2a6ce8 [1] http://pkl.net/~rik/nms/guestbook-admin.pl MD5 (guestbook-admin.pl) = e4d5d5dfa9256992d2665d7d84c67334 |