aboutsummaryrefslogtreecommitdiffstats
path: root/mod/register.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-11 03:35:33 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-11 03:35:33 -0700
commita6cde63fd87f003f8678247a25ecd883cd019689 (patch)
treec5cec486f226cd42452b4116ca1a2d7b54a17866 /mod/register.php
parentc2106cb9df63a79ec9770a8f551053bcf192345f (diff)
downloadvolse-hubzilla-a6cde63fd87f003f8678247a25ecd883cd019689.tar.gz
volse-hubzilla-a6cde63fd87f003f8678247a25ecd883cd019689.tar.bz2
volse-hubzilla-a6cde63fd87f003f8678247a25ecd883cd019689.zip
fix register loophole
Diffstat (limited to 'mod/register.php')
-rw-r--r--mod/register.php5
1 files changed, 5 insertions, 0 deletions
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;