From e9d56927daa4929f7f406c114730bb0730016602 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Sat, 17 Aug 2002 06:28:55 +0000 Subject: Bug 10037 - param to disable adding new quips r=imajes, preed --- quips.cgi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'quips.cgi') diff --git a/quips.cgi b/quips.cgi index 234c2f463..a50bbc54a 100755 --- a/quips.cgi +++ b/quips.cgi @@ -62,7 +62,13 @@ if ($action eq "add") { DisplayError("Please enter a quip in the text field."); exit(); } + + if (Param('enablequips') ne "on") { + ThrowUserError("This site does not permit the addition of new quips"); + exit(); + } + if ($comment =~ m/