diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-24 20:30:57 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-24 20:30:57 +0000 |
| commit | cf6b19d52394609f349ff0e37132bc3afd8b8a41 (patch) | |
| tree | db7306089eef327d60566abd7dc4a7d2125e0ebe | |
| parent | e3893c4cf9ee47f75bbfd885020b4e352d4fc284 (diff) | |
| download | forums-cf6b19d52394609f349ff0e37132bc3afd8b8a41.tar forums-cf6b19d52394609f349ff0e37132bc3afd8b8a41.tar.gz forums-cf6b19d52394609f349ff0e37132bc3afd8b8a41.tar.bz2 forums-cf6b19d52394609f349ff0e37132bc3afd8b8a41.tar.xz forums-cf6b19d52394609f349ff0e37132bc3afd8b8a41.zip | |
Various updates.
git-svn-id: file:///svn/phpbb/trunk@1714 89ea8834-ac86-4346-8a33-228a782c2dd0
| -rw-r--r-- | phpBB/groupcp.php | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/phpBB/groupcp.php b/phpBB/groupcp.php index 4e9b41fea2..75f3421f79 100644 --- a/phpBB/groupcp.php +++ b/phpBB/groupcp.php @@ -53,7 +53,7 @@ if( isset($HTTP_POST_VARS['groupstatus']) && $group_id ) { if( !$userdata['session_logged_in'] ) { - header("Location: " . append_sid("login.$phpEx?redirect=groupcp.$phpEx", true)); + header("Location: " . append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); } $sql = "SELECT group_moderator @@ -106,7 +106,7 @@ else if( isset($HTTP_POST_VARS['joingroup']) && $group_id ) // if( !$userdata['session_logged_in'] ) { - header("Location: " . append_sid("login.$phpEx?redirect=groupcp.$phpEx", true)); + header("Location: " . append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); } $sql = "SELECT ug.user_id, g.group_type @@ -224,7 +224,7 @@ else if( isset($HTTP_POST_VARS['unsub']) || isset($HTTP_POST_VARS['unsubpending' if( !$userdata['session_logged_in'] ) { - header("Location: " . append_sid("login.$phpEx?redirect=groupcp.$phpEx", true)); + header("Location: " . append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); } if( $confirm ) @@ -299,6 +299,11 @@ else if( $group_id ) // if( $HTTP_POST_VARS['add'] || $HTTP_POST_VARS['remove'] || isset($HTTP_POST_VARS['approve']) || isset($HTTP_POST_VARS['deny']) ) { + if( !$userdata['session_logged_in'] ) + { + header("Location: " . append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); + } + if( !$is_moderator ) { $template->assign_vars(array( @@ -333,6 +338,17 @@ else if( $group_id ) message_die(GENERAL_MESSAGE, $message); } + + if( $row['user_id'] == ANONYMOUS ) + { + $template->assign_vars(array( + "META" => '<meta http-equiv="refresh" content="3;url=' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">') + ); + + $message = $lang["Could_not_anon_user"] . "<br /><br />" . sprintf($lang['Click_return_group'], "<a href=\"" . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_index'], "<a href=\"" . append_sid("index.$phpEx") . "\">", "</a>"); + + message_die(GENERAL_MESSAGE, $message); + } $sql = "SELECT ug.user_id FROM " . USER_GROUP_TABLE . " ug @@ -1084,8 +1100,6 @@ else if( $group_id ) $template->assign_block_vars("switch_add_member", array()); } - - // // Parse group info output // |
