From 1e4dcf007b8eb0102b8e5882bf14ba93995b2eee Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 17 Jun 2006 16:22:05 +0000 Subject: [PATCH] Require login to post comments. --- www/comment.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/www/comment.php b/www/comment.php index 1e01915..bf0cc81 100644 --- a/www/comment.php +++ b/www/comment.php @@ -82,6 +82,13 @@ else case 'e' : // Edit comment case 'r' : // New comment + if ($LOGIN_USER == "") + { + header("Location: login.php?PAGE=comment.php?$op$id+p" . + urlencode($path)); + return; + } + $havedata = 0; if ($REQUEST_METHOD == "POST")