#! @PERL@ -wT -I@cgibin@ # Display a message in a user's log directory # --S-LICENSE-- # $Revision: 1.41 $ # @configure_input@ # This file must protected with an equivalent to httpd.conf lines # in the README file. use strict 'subs'; use common; # display the message literally if asked if ($query{literal}) { my($buf, $msg, $path); # punt to directory listing if no message specified punt2("no message specified for listing", $list_log_url) if (!$query{msg}); punt2("bad message $query{msg} specified for listing", $list_log_url) if ($query{msg} !~ /^([a-zA-Z\d][a-zA-Z\d]{5}[a-zA-Z\d.]{0,4})$/); $msg = $1; $path = msg2path($msg); if (!open(MSG, $path)) { html_head("Message $msg for $user"); print "
Cannot open $path: $!\n"; html_footer(); print "