From e2053b33c706adcc1f0bb9606150a6cd3df4fc5d Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 12 Oct 2005 11:25:48 +0000 Subject: [PATCH] Require a login to submit an article. --- www/articles.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/articles.php b/www/articles.php index 3dc061c..8a2b025 100644 --- a/www/articles.php +++ b/www/articles.php @@ -80,6 +80,12 @@ if ($argc) exit(); } + if ($op != 'L' && $LOGIN_USER == "") + { + header("Location: login.php"); + exit(); + } + if (($op == 'D' || $op == 'M') && !$id) { html_header("Article Error");