escape(str_replace('*', '%', $username)).'\''; if ($show_group > -1) $where_sql[] = 'u.group_id='.$show_group; // Fetch user count $result = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'users AS u WHERE u.id>1 AND u.group_id!='.PUN_UNVERIFIED.(!empty($where_sql) ? ' AND '.implode(' AND ', $where_sql) : '')) or error('Unable to fetch user list count', __FILE__, __LINE__, $db->error()); $num_users = $db->result($result); // Determine the user offset (based on $_GET['p']) $num_pages = ceil($num_users / 50); $p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : intval($_GET['p']); $start_from = 50 * ($p - 1); $page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_common['User list']); if ($pun_user['g_search_users'] == '1') $focus_element = array('userlist', 'username'); // Generate paging links $paging_links = ''.$lang_common['Pages'].' '.paginate($num_pages, $p, 'userlist.php?username='.urlencode($username).'&show_group='.$show_group.'&sort_by='.$sort_by.'&sort_dir='.$sort_dir); define('PUN_ALLOW_INDEX', 1); define('PUN_ACTIVE_PAGE', 'userlist'); require PUN_ROOT.'header.php'; ?>
'.pun_htmlspecialchars($user_data['username']).'' ?> | '.$lang_search['No hits'].' | '."\n"; ?>