aboutsummaryrefslogtreecommitdiffstats
path: root/register.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-12-13 01:05:38 +0000
committerrvelices <rv-github@modusoptimus.com>2006-12-13 01:05:38 +0000
commit74e5d80e899562b6505ce7c4865041448b22470d (patch)
treee47fae00cc013e4626081cc66f38ce43e1d40dd4 /register.php
parent5046b3c2105bdfae23d6835c110606ea9e7ff055 (diff)
- feature 599: option to forbid user registration
- 1 language cleanup - added page_forbidden function (sends 403) git-svn-id: http://piwigo.org/svn/trunk@1652 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'register.php')
-rw-r--r--register.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/register.php b/register.php
index ceca0150c..55d0b226c 100644
--- a/register.php
+++ b/register.php
@@ -29,6 +29,12 @@
define('PHPWG_ROOT_PATH','./');
include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
//----------------------------------------------------------- user registration
+
+if (!$conf['allow_user_registration'])
+{
+ page_forbidden('User registration closed');
+}
+
$errors = array();
if (isset($_POST['submit']))
{