aboutsummaryrefslogtreecommitdiffstats
path: root/identification.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 /identification.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 'identification.php')
-rw-r--r--identification.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/identification.php b/identification.php
index 7a444dd51..86a5ba5a6 100644
--- a/identification.php
+++ b/identification.php
@@ -57,8 +57,7 @@ SELECT '.$conf['user_fields']['id'].' AS id,
if ($row['password'] == $conf['pass_convert']($_POST['password']))
{
$remember_me = false;
- if ($conf['authorize_remembering']
- and isset($_POST['remember_me'])
+ if (isset($_POST['remember_me'])
and $_POST['remember_me'] == 1)
{
$remember_me = true;
@@ -85,7 +84,6 @@ $template->set_filenames( array('identification'=>'identification.tpl') );
$template->assign_vars(
array(
-
'U_REGISTER' => PHPWG_ROOT_PATH.'register.php',
'U_LOST_PASSWORD' => PHPWG_ROOT_PATH.'password.php',
'U_HOME' => make_index_url(),
@@ -98,6 +96,11 @@ if ($conf['authorize_remembering'])
{
$template->assign_block_vars('remember_me',array());
}
+if ($conf['allow_user_registration'])
+{
+ $template->assign_block_vars('register',array());
+}
+
//-------------------------------------------------------------- errors display
if ( sizeof( $errors ) != 0 )
{