aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/profile.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-05-04 00:36:06 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-05-04 00:36:06 +0000
commit657edfb09af850f813fb05d335f0447f853df64f (patch)
tree25d157f3c268b4196aa717107d5f784577067e1e /phpBB/profile.php
parent3735013fbaf030e689b23d1fb4f2bb9930a8c28b (diff)
downloadforums-657edfb09af850f813fb05d335f0447f853df64f.tar
forums-657edfb09af850f813fb05d335f0447f853df64f.tar.gz
forums-657edfb09af850f813fb05d335f0447f853df64f.tar.bz2
forums-657edfb09af850f813fb05d335f0447f853df64f.tar.xz
forums-657edfb09af850f813fb05d335f0447f853df64f.zip
Little fix to login so de-activated accounts won't be able to login
git-svn-id: file:///svn/phpbb/trunk@243 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r--phpBB/profile.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php
index 2f25008a5c..77184d75a5 100644
--- a/phpBB/profile.php
+++ b/phpBB/profile.php
@@ -402,6 +402,15 @@ switch($mode)
$user_template = ($HTTP_POST_VARS['template']) ? $HTTP_POST_VARS['template'] : $board_config['default_template'];
$user_dateformat = ($HTTP_POST_VARS['dateformat']) ? trim($HTTP_POST_VARS['dateformat']) : $board_config['default_dateformat'];
+ if(!$HTTP_POST_VARS['coppa'] && !$HTTP_GET_VARS['coppa'])
+ {
+ $coppa = 0;
+ }
+ else
+ {
+ $coppa = 1;
+ }
+
list($hr, $min, $sec, $mon, $day, $year) = explode(",", gmdate("H,i,s,m,d,Y", time()));
$regdate = gmmktime($hr, $min, $sec, $mon, $day, $year);
@@ -471,7 +480,7 @@ switch($mode)
(user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_desmile, user_html, user_bbcode, user_timezone, user_dateformat, user_lang, user_template, user_theme, user_active, user_actkey)
VALUES
('$new_user_id', '$username', '$regdate', '$md_pass', '$email', '$icq', '$website', '$occupation', '$location', '$interests', '$signature', '$viewemail', '$aim', '$yim', '$msn', '$attachsig', '$allowsmilies', '$allowhtml', '$allowbbcode', '$user_timezone', '$user_dateformat', '$user_lang', '$user_template', '$user_theme', ";
- if($require_activation || $HTTP_POST_VARS['coppa'])
+ if($require_activation || $coppa == 1)
{
$act_key = generate_activation_key();
$sql .= "0, '$act_key')";
@@ -480,6 +489,7 @@ switch($mode)
{
$sql .= "1, '')";
}
+
if($result = $db->sql_query($sql))
{
if($require_activation)
@@ -497,6 +507,7 @@ switch($mode)
$msg = $l_acountadded;
$email_msg = $l_welcomemail;
}
+
if(!$coppa)
{
mail($email, $l_welcomesubj, $email_msg, "From: $email_from\r\n");
@@ -554,6 +565,7 @@ switch($mode)
"ICQ" => $icq,
"MSN" => $msn,
"AIM" => $aim,
+ "COPPA" => $coppa,
"OCCUPATION" => $occupation,
"INTERESTS" => $interests,
"LOCATION" => $location,