Beispiel #1
0
                // let's go
                if (!empty($items)) {
                    // header
                    $page_title = $lang['Group_Control_Panel'];
                    include $get->url('includes/page_header');
                    // hidden fields
                    _hide_build(array('sid' => $userdata['session_id']));
                    _hide_send();
                    // build groups list
                    $groups_list = array('name' => POST_GROUPS_URL, 'items' => $items);
                    $rcs->constructor($groups_list);
                    unset($items);
                    // display
                    $template->set_filenames(array('user' => 'groupcp_select_body.tpl'));
                    // constants
                    $template->assign_vars(array('L_USERGROUPS' => $lang['usergroups_list'], 'L_SELECT_USERGROUP' => $lang['select_usergroup'], 'L_SELECT_USERGROUP_DETAILS' => $lang['select_usergroup_details'], 'L_VIEW_INFORMATION' => $lang['View_Information'], 'I_SUBMIT' => $images['cmd_submit'], 'S_USERGROUP_ACTION' => $get->url('groupcp', '', true)));
                    // navigation
                    $navigation = new navigation();
                    $navigation->add('usergroups_list', 'select_usergroup', 'groupcp');
                    $navigation->display();
                    unset($navigation);
                    // send the display
                    $template->pparse('user');
                } else {
                    message_die(GENERAL_MESSAGE, $lang['No_groups_exist']);
                }
            }
        }
    }
}
include $phpbb_root_path . 'includes/page_tail.' . $phpEx;