Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('IN_PHPBB', true);
- $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
- $phpEx = substr(strrchr(__FILE__, '.'), 1);
- include($phpbb_root_path . 'common.' . $phpEx);
- include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
- // Start session management
- $user->session_begin();
- $auth->acl($user->data);
- $user->setup('arcadeoa');
- $user->setup();
- $team_id = $request->variable('team', 0);
- $cat_id = $request->variable('cat', 0);
- $sql_array = array(
- 'SELECT' => 'gr.group_name',
- 'FROM' => array(GROUPS_TABLE => 'gr'),
- 'WHERE' => 'gr.group_id = '.$team_id
- );
- $sql = $db->sql_build_query('SELECT', $sql_array);
- $result = $db->sql_query($sql);
- $data = $db->sql_fetchrow($result);
- $db->sql_freeresult($result);
- $template->assign_vars( array(
- 'STATTEAM_TITLE' => $data['group_name'],
- 'STATTEAM_URL' => $phpbb_root_path.'statteam_stat.'.$phpEx.'?team='.$team_id.'&cat='.$cat_id,
- ));
- page_header();
- $template->set_filenames(array(
- 'body' => 'statteam_body.html')
- );
- page_footer();
Advertisement
Add Comment
Please, Sign In to add comment