aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-05-20 23:57:08 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-05-20 23:57:08 +0000
commit9ce38e6977c2d295d9646b2e5c171318bf2f34bd (patch)
tree4ed5bb6e2b6e0ac9a06a055f0e5af0dcd8f0b29b /phpBB/includes
parent70634a792e33ca7ae3b695b029303f5841891448 (diff)
downloadforums-9ce38e6977c2d295d9646b2e5c171318bf2f34bd.tar
forums-9ce38e6977c2d295d9646b2e5c171318bf2f34bd.tar.gz
forums-9ce38e6977c2d295d9646b2e5c171318bf2f34bd.tar.bz2
forums-9ce38e6977c2d295d9646b2e5c171318bf2f34bd.tar.xz
forums-9ce38e6977c2d295d9646b2e5c171318bf2f34bd.zip
Enable display of birthday listing ... controlled via ACP Load Settings
git-svn-id: file:///svn/phpbb/trunk@4034 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/ucp/ucp_profile.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index dfe3e09cf4..bb309c0418 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -47,6 +47,7 @@ class ucp_profile extends ucp
'string' => array(
'username' => '2,30',
'email' => '7,60',
+ 'email_confirm' => '7,60',
'password_confirm' => '6,255',
'new_password' => '6,255',
'cur_password' => '6,255',
@@ -59,6 +60,7 @@ class ucp_profile extends ucp
'compare' => array(
'password_confirm' => ($data['new_password']) ? $data['new_password'] : '',
'cur_password' => ($data['new_password'] || $data['email'] != $user->data['user_email']) ? $user->data['user_password'] : '',
+ 'email_confirm' => ($data['email'] != $user->data['user_email']) ? $data['email'] : '',
),
'function' => array(
'username' => ($data['username'] != $user->data['username']) ? 'validate_username' : '',
@@ -147,7 +149,7 @@ class ucp_profile extends ucp
'user_from' => $data['location'],
'user_occ' => $data['occupation'],
'user_interests'=> $data['interests'],
- 'user_birthday' => implode('-', array($data['bday_day'], $data['bday_month'], $data['bday_year'])),
+ 'user_birthday' => sprintf('%2d-%2d-%4d', $data['bday_day'], $data['bday_month'], $data['bday_year']),
);
$sql = 'UPDATE ' . USERS_TABLE . '
@@ -170,14 +172,14 @@ class ucp_profile extends ucp
list($bday_day, $bday_month, $bday_year) = explode('-', $user->data['user_birthday']);
}
- $s_birthday_day_options = '';
+ $s_birthday_day_options = '<option value="0"' . ((!$bday_day) ? ' selected="selected"' : '') . '>--</option>';
for ($i = 1; $i < 32; $i++)
{
$selected = ($i == $bday_day) ? ' selected="selected"' : '';
$s_birthday_day_options .= "<option value=\"$i\"$selected>$i</option>";
}
- $s_birthday_month_options = '';
+ $s_birthday_month_options = '<option value="0"' . ((!$bday_month) ? ' selected="selected"' : '') . '>--</option>';
for ($i = 1; $i < 13; $i++)
{
$selected = ($i == $bday_month) ? ' selected="selected"' : '';
@@ -186,6 +188,7 @@ class ucp_profile extends ucp
$s_birthday_year_options = '';
$now = getdate();
+ $s_birthday_year_options = '<option value="0"' . ((!$bday_year) ? ' selected="selected"' : '') . '>--</option>';
for ($i = $now['year'] - 100; $i < $now['year']; $i++)
{
$selected = ($i == $bday_year) ? ' selected="selected"' : '';