punbb/userlist.php
author Dan
Thu, 12 Jul 2007 01:04:01 -0400
changeset 2 a8a21e1c7afa
parent 0 f9ffdbd96607
child 4 eb9ed4c366d0
permissions -rw-r--r--
Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     1
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     2
/***********************************************************************
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     3
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     4
  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     5
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     6
  This file is part of PunBB.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     7
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     8
  PunBB is free software; you can redistribute it and/or modify it
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     9
  under the terms of the GNU General Public License as published
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    10
  by the Free Software Foundation; either version 2 of the License,
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    11
  or (at your option) any later version.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    12
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    13
  PunBB is distributed in the hope that it will be useful, but
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    14
  WITHOUT ANY WARRANTY; without even the implied warranty of
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    15
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    16
  GNU General Public License for more details.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    17
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    18
  You should have received a copy of the GNU General Public License
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    19
  along with this program; if not, write to the Free Software
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    20
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    21
  MA  02111-1307  USA
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    22
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    23
************************************************************************/
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    24
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    25
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    26
//define('PUN_ROOT', './');
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    27
//require PUN_ROOT.'include/common.php';
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    28
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    29
global $pun_db, $pun_user, $pun_config, $lang_common;
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    30
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    31
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    32
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    33
if ($pun_user['g_read_board'] == '0')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    34
	message($lang_common['No view']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    35
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    36
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    37
// Load the userlist.php language file
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    38
require PUN_ROOT.'lang/'.$pun_user['language'].'/userlist.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    39
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    40
// Load the search.php language file
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    41
require PUN_ROOT.'lang/'.$pun_user['language'].'/search.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    42
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    43
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    44
// Determine if we are allowed to view post counts
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    45
$show_post_count = ($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] >= USER_LEVEL_MEMBER) ? true : false;
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    46
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    47
$username = (isset($_GET['username']) && $pun_user['g_search_users'] == '1') ? pun_trim($_GET['username']) : '';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    48
$show_group = (!isset($_GET['show_group']) || intval($_GET['show_group']) < -1 && intval($_GET['show_group']) > 2) ? -1 : intval($_GET['show_group']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    49
$sort_by = (!isset($_GET['sort_by']) || $_GET['sort_by'] != 'username' && $_GET['sort_by'] != 'registered' && ($_GET['sort_by'] != 'num_posts' || !$show_post_count)) ? 'username' : $_GET['sort_by'];
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    50
$sort_dir = (!isset($_GET['sort_dir']) || $_GET['sort_dir'] != 'ASC' && $_GET['sort_dir'] != 'DESC') ? 'ASC' : strtoupper($_GET['sort_dir']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    51
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    52
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    53
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_common['User list'];
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    54
if ($pun_user['g_search_users'] == '1')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    55
	$focus_element = array('userlist', 'username');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    56
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    57
define('PUN_ALLOW_INDEX', 1);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    58
require PUN_ROOT.'header.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    59
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    60
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    61
<div class="blockform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    62
	<h2><span><?php echo $lang_search['User search'] ?></span></h2>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    63
	<div class="box">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    64
	<form id="userlist" method="get" action="userlist.php">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    65
		<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    66
			<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    67
				<legend><?php echo $lang_ul['User find legend'] ?></legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    68
				<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    69
<?php if ($pun_user['g_search_users'] == '1'): ?>					<label class="conl"><?php echo $lang_common['Username'] ?><br /><input type="text" name="username" value="<?php echo pun_htmlspecialchars($username) ?>" size="25" maxlength="25" /><br /></label>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    70
<?php endif; ?>					<label class="conl"><?php echo $lang_ul['User group']."\n" ?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    71
					<br /><select name="show_group">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    72
						<option value="-1"<?php if ($show_group == -1) echo ' selected="selected"' ?>><?php echo $lang_ul['All users'] ?></option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    73
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    74
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    75
$result = $pun_db->query('SELECT g_id, g_title FROM '.$pun_db->prefix.'groups WHERE g_id!='.PUN_GUEST.' ORDER BY g_id') or error('Unable to fetch user group list', __FILE__, __LINE__, $pun_db->error());
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    76
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    77
while ($cur_group = $pun_db->fetch_assoc($result))
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    78
{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    79
	if ($cur_group['g_id'] == $show_group)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    80
		echo "\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'" selected="selected">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    81
	else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    82
		echo "\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    83
}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    84
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    85
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    86
					</select>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    87
					<br /></label>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    88
					<label class="conl"><?php echo $lang_search['Sort by']."\n" ?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    89
					<br /><select name="sort_by">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    90
						<option value="username"<?php if ($sort_by == 'username') echo ' selected="selected"' ?>><?php echo $lang_common['Username'] ?></option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    91
						<option value="registered"<?php if ($sort_by == 'registered') echo ' selected="selected"' ?>><?php echo $lang_common['Registered'] ?></option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    92
<?php if ($show_post_count): ?>						<option value="num_posts"<?php if ($sort_by == 'num_posts') echo ' selected="selected"' ?>><?php echo $lang_ul['No of posts'] ?></option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    93
<?php endif; ?>					</select>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    94
					<br /></label>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    95
					<label class="conl"><?php echo $lang_search['Sort order']."\n" ?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    96
					<br /><select name="sort_dir">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    97
						<option value="ASC"<?php if ($sort_dir == 'ASC') echo ' selected="selected"' ?>><?php echo $lang_search['Ascending'] ?></option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    98
						<option value="DESC"<?php if ($sort_dir == 'DESC') echo ' selected="selected"' ?>><?php echo $lang_search['Descending'] ?></option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    99
					</select>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   100
					<br /></label>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   101
					<p class="clearb"><?php echo $lang_ul['User search info'] ?></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   102
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   103
			</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   104
		</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   105
		<p><input type="submit" name="search" value="<?php echo $lang_common['Submit'] ?>" accesskey="s" /></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   106
	</form>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   107
	</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   108
</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   109
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   110
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   111
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   112
// Create any SQL for the WHERE clause
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   113
$where_sql = array();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   114
$like_command = ($db_type == 'pgsql') ? 'ILIKE' : 'LIKE';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   115
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   116
if ($pun_user['g_search_users'] == '1' && $username != '')
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   117
	$where_sql[] = 'eu.username '.$like_command.' \''.$pun_db->escape(str_replace('*', '%', $username)).'\'';
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   118
if ($show_group > -1)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   119
	$where_sql[] = 'u.group_id='.$show_group;
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   120
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   121
// Fetch user count
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   122
$result = $pun_db->query('SELECT COUNT(id) FROM '.$pun_db->prefix.'users AS u LEFT JOIN '.table_prefix.'users AS eu ON eu.user_id=u.id  WHERE u.id>1'.(!empty($where_sql) ? ' AND '.implode(' AND ', $where_sql) : '')) or error('Unable to fetch user list count', __FILE__, __LINE__, $pun_db->error());
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   123
$num_users = $pun_db->result($result);
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   124
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   125
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   126
// Determine the user offset (based on $_GET['p'])
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   127
$num_pages = ceil($num_users / 50);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   128
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   129
$p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p'];
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   130
$start_from = 50 * ($p - 1);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   131
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   132
// Generate paging links
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   133
$paging_links = $lang_common['Pages'].': '.pun_paginate($num_pages, $p, 'userlist.php?username='.urlencode($username).'&amp;show_group='.$show_group.'&amp;sort_by='.$sort_by.'&amp;sort_dir='.strtoupper($sort_dir));
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   134
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   135
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   136
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   137
<div class="linkst">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   138
	<div class="inbox">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   139
		<p class="pagelink"><?php echo $paging_links ?></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   140
	</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   141
</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   142
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   143
<div id="users1" class="blocktable">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   144
	<h2><span><?php echo $lang_common['User list'] ?></span></h2>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   145
	<div class="box">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   146
		<div class="inbox">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   147
		<table cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   148
		<thead>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   149
			<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   150
				<th class="tcl" scope="col"><?php echo $lang_common['Username'] ?></th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   151
				<th class="tc2" scope="col"><?php echo $lang_common['Title'] ?></th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   152
<?php if ($show_post_count): ?>				<th class="tc3" scope="col"><?php echo $lang_common['Posts'] ?></th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   153
<?php endif; ?>				<th class="tcr" scope="col"><?php echo $lang_common['Registered'] ?></th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   154
			</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   155
		</thead>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   156
		<tbody>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   157
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   158
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   159
// Grab the users
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   160
$result = $pun_db->query('SELECT u.id, eu.username, u.title, u.num_posts, u.registered, g.g_id, g.g_user_title FROM '.$pun_db->prefix.'users AS u LEFT JOIN '.table_prefix.'users AS eu ON eu.user_id=u.id LEFT JOIN '.$pun_db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id>1'.(!empty($where_sql) ? ' AND '.implode(' AND ', $where_sql) : '').' ORDER BY '.$sort_by.' '.$sort_dir.' LIMIT '.$start_from.', 50') or error('Unable to fetch user list', __FILE__, __LINE__, $pun_db->error());
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   161
if ($pun_db->num_rows($result))
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   162
{
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   163
	while ($user_data = $pun_db->fetch_assoc($result))
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   164
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   165
		$user_title_field = get_title($user_data);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   166
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   167
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   168
				<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   169
					<td class="tcl"><?php echo '<a href="profile.php?id='.$user_data['id'].'">'.pun_htmlspecialchars($user_data['username']).'</a>' ?></td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   170
					<td class="tc2"><?php echo $user_title_field ?></td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   171
<?php if ($show_post_count): ?>					<td class="tc3"><?php echo $user_data['num_posts'] ?></td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   172
<?php endif; ?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   173
					<td class="tcr"><?php echo format_time($user_data['registered'], true) ?></td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   174
				</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   175
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   176
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   177
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   178
}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   179
else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   180
	echo "\t\t\t".'<tr>'."\n\t\t\t\t\t".'<td class="tcl" colspan="'.(($show_post_count) ? 4 : 3).'">'.$lang_search['No hits'].'</td></tr>'."\n";
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   181
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   182
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   183
			</tbody>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   184
			</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   185
		</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   186
	</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   187
</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   188
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   189
<div class="linksb">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   190
	<div class="inbox">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   191
		<p class="pagelink"><?php echo $paging_links ?></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   192
	</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   193
</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   194
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   195
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   196
require PUN_ROOT.'footer.php';