From d0c05ab60542dd20316eacee374155018bc76ade Mon Sep 17 00:00:00 2001 From: dougk_ff7 Date: Thu, 3 Jan 2002 22:44:28 +0000 Subject: [PATCH] Three bugs fixed here... Bug ID 494154, which was a bug in the group moderation page, where email links would not redirect to the login page. Bug ID 498927 was a problem between the time/date format. Bug ID 498961 was a slight cosmetic error in the admin panel. That's all for now! git-svn-id: file:///svn/phpbb/trunk@1791 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/groupcp.php | 16 ++++++++++++++-- .../templates/subSilver/admin/index_navigate.tpl | 4 ++-- phpBB/templates/subSilver/profile_add_body.tpl | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/phpBB/groupcp.php b/phpBB/groupcp.php index 75f3421f79..8ea9f90b1f 100644 --- a/phpBB/groupcp.php +++ b/phpBB/groupcp.php @@ -195,7 +195,7 @@ else if( isset($HTTP_POST_VARS['joingroup']) && $group_id ) "GROUP_MODERATOR" => $moderator['username'], "EMAIL_SIG" => str_replace("
", "\n", "-- \n" . $board_config['board_email_sig']), - "U_GROUPCP" => $protocol . $server_name . $path . "/groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") + "U_GROUPCP" => $protocol . $server_name . $path . "/groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id&validate=true") ); $emailer->send(); $emailer->reset(); @@ -551,6 +551,18 @@ else if( $group_id ) // END approve or deny // + // + // Did the group moderator get here through an email? + // If so, check to see if they are logged in. + // + if( isset($HTTP_GET_VARS['validate']) ); + { + if( !$userdata['session_logged_in'] ) + { + header("Location: " . append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); + } + } + // // Get group details // @@ -1241,4 +1253,4 @@ else // include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -?> \ No newline at end of file +?> diff --git a/phpBB/templates/subSilver/admin/index_navigate.tpl b/phpBB/templates/subSilver/admin/index_navigate.tpl index cab9b9475d..5977bdfcd7 100644 --- a/phpBB/templates/subSilver/admin/index_navigate.tpl +++ b/phpBB/templates/subSilver/admin/index_navigate.tpl @@ -1,7 +1,7 @@ - + - + diff --git a/phpBB/templates/subSilver/profile_add_body.tpl b/phpBB/templates/subSilver/profile_add_body.tpl index 83a1a812ea..b82f69c4d0 100644 --- a/phpBB/templates/subSilver/profile_add_body.tpl +++ b/phpBB/templates/subSilver/profile_add_body.tpl @@ -208,7 +208,7 @@
@@ -13,7 +13,7 @@ {L_ADMIN_INDEX}
{L_FORUM_INDEX}{L_FORUM_INDEX}
{L_PREVIEW_FORUM}{L_DATE_FORMAT}:
{L_DATE_FORMAT_EXPLAIN}
- +