mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 10:44:20 +02:00
Some more fine turning on the profile section
git-svn-id: file:///svn/phpbb/trunk@180 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -55,7 +55,7 @@ switch($mode)
|
|||||||
|
|
||||||
// Calculate the number of days this user has been a member ($memberdays)
|
// Calculate the number of days this user has been a member ($memberdays)
|
||||||
// Then calculate their posts per day
|
// Then calculate their posts per day
|
||||||
$regdate = strtotime($profiledata['user_regdate']);
|
$regdate = $profiledata['user_regdate'];
|
||||||
$memberdays = (time() - $regdate) / (24*60*60);
|
$memberdays = (time() - $regdate) / (24*60*60);
|
||||||
$posts_per_day = $profiledata['user_posts'] / $memberdays;
|
$posts_per_day = $profiledata['user_posts'] / $memberdays;
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ switch($mode)
|
|||||||
"L_USERNAME" => $l_username,
|
"L_USERNAME" => $l_username,
|
||||||
"L_VIEWPOSTUSER" => $l_viewpostuser,
|
"L_VIEWPOSTUSER" => $l_viewpostuser,
|
||||||
"L_JOINED" => $l_joined,
|
"L_JOINED" => $l_joined,
|
||||||
"JOINED" => $profiledata['user_regdate'],
|
"JOINED" => create_date($date_format, $profiledata['user_regdate'], $sys_timezone),
|
||||||
"POSTS_PER_DAY" => $posts_per_day,
|
"POSTS_PER_DAY" => $posts_per_day,
|
||||||
"L_PERDAY" => $l_perday,
|
"L_PERDAY" => $l_perday,
|
||||||
"POSTS" => $profiledata['user_posts'],
|
"POSTS" => $profiledata['user_posts'],
|
||||||
@@ -206,7 +206,7 @@ switch($mode)
|
|||||||
VALUES (
|
VALUES (
|
||||||
$new_user_id,
|
$new_user_id,
|
||||||
'".addslashes($username)."',
|
'".addslashes($username)."',
|
||||||
'".time()."',
|
'".gmmktime(gmdate("H, i, s, m, d, Y", time()))."',
|
||||||
'$md_pass',
|
'$md_pass',
|
||||||
'$email',
|
'$email',
|
||||||
'$icq',
|
'$icq',
|
||||||
|
Reference in New Issue
Block a user