From a6cde63fd87f003f8678247a25ecd883cd019689 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 11 Jul 2010 03:35:33 -0700 Subject: fix register loophole --- mod/register.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/register.php') diff --git a/mod/register.php b/mod/register.php index 8678614ac..2e5d02273 100644 --- a/mod/register.php +++ b/mod/register.php @@ -175,6 +175,11 @@ function register_post(&$a) { if(! function_exists('register_content')) { function register_content(&$a) { + if($a->config['register_policy'] == REGISTER_CLOSED) { + notice("Permission denied." . EOL); + return; + } + $o = file_get_contents("view/register.tpl"); $o = replace_macros($o, array('$registertext' =>((x($a->config,'register_text'))? $a->config['register_text'] : "" ))); return $o; -- cgit v1.2.3