diff options
Diffstat (limited to 'phpBB/groupcp.php')
| -rw-r--r-- | phpBB/groupcp.php | 16 |
1 files changed, 14 insertions, 2 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("<br />", "\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(); @@ -552,6 +552,18 @@ else if( $group_id ) // // + // 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 // $sql = "SELECT * @@ -1241,4 +1253,4 @@ else // include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -?>
\ No newline at end of file +?> |
