Skip to content
Newer
Older
100644 648 lines (542 sloc) 20.5 KB
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
1 <?php
2 /**
3 *
4 * @package Icy Phoenix
5 * @version $Id$
6 * @copyright (c) 2008 Icy Phoenix
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 *
9 */
10
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
11 define('IN_ICYPHOENIX', true);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
12
13 if(!empty($setmodules))
14 {
15 $filename = basename(__FILE__);
16 $module['1610_Users']['130_Userlist'] = $filename;
17 return;
18 }
19
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
20 if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../');
21 if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
c8c092e @MightyGorgon Some bugs fixes for the new files structure
authored Oct 28, 2009
22 require('pagestart.' . PHP_EXT);
841b23a @MightyGorgon New beta candidate... with many many changes and new features respect…
authored Jan 31, 2009
23 include(IP_ROOT_PATH . 'includes/functions_users_delete.' . PHP_EXT);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
24
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
25 $mode = request_var('mode', '');
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
26
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
27 $confirm = check_http_var_exists('confirm', false);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
28
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
29 if(check_http_var_exists('cancel', false))
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
30 {
31 $cancel = true;
32 $mode = '';
33 }
34 else
35 {
36 $cancel = false;
37 }
38
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
39 $start = request_var('start', 0);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
40 $start = ($start < 0) ? 0 : $start;
41
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
42 $show = request_var('show', $config['topics_per_page']);
43 $show = ($show < 1) ? $config['topics_per_page'] : $show;
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
44
29bb013 @MightyGorgon Some bugs fixes about htmlspecialchars, request_var and UTF-8
authored Mar 31, 2010
45 $sort_method = request_var('sort', 'user_regdate');
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
46
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
47 $sort_order = request_var('order', 'ASC');
48 $sort_order = check_var_value($sort_order, array('DESC', 'ASC'));
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
49
50 // alphanumeric stuff
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
51 $alphanum = request_var('alphanum', '');
52 if (!empty($alphanum))
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
53 {
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
54 $alphanum = $db->sql_escape($alphanum);
b1f052d @MightyGorgon Fixed many bugs and added some features:
authored Aug 16, 2010
55 $alpha_where = ($alphanum == 'num') ? "AND username NOT RLIKE '^[A-Z]'" : "AND LOWER(username) LIKE '$alphanum%'";
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
56 }
57 else
58 {
59 $alpahnum = '';
60 $alpha_where = '';
61 }
62
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
63 $user_ids = request_var(POST_USERS_URL, array(0));
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
64
65 switch($mode)
66 {
67 case 'delete':
68
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
69 // see if cancel has been hit and redirect if it has shouldn't get to this point if it has been hit but do this just in case
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
70 if ($cancel)
71 {
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
72 redirect(IP_ROOT_PATH . ADM . '/admin_userlist.' . PHP_EXT);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
73 }
74
75 //
76 // check confirm and either delete or show confirm message
77 //
78 if (!$confirm)
79 {
80 // show message
81 $i = 0;
82 $hidden_fields = '';
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
83 while($i < sizeof($user_ids))
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
84 {
85 $user_id = intval($user_ids[$i]);
86 $hidden_fields .= '<input type="hidden" name="' . POST_USERS_URL . '[]" value="' . $user_id . '" />';
87
88 unset($user_id);
89 $i++;
90 }
91
92 $template->set_filenames(array('body' => ADM_TPL . 'confirm_body.tpl'));
93 $template->assign_vars(array(
94 'MESSAGE_TITLE' => $lang['Delete'],
95 'MESSAGE_TEXT' => $lang['Confirm_user_deleted'],
96
97 'U_INDEX' => '',
98 'L_INDEX' => '',
99
100 'L_YES' => $lang['Yes'],
101 'L_NO' => $lang['No'],
102
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
103 'S_CONFIRM_ACTION' => append_sid('admin_userlist.' . PHP_EXT . '?mode=delete'),
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
104 'S_HIDDEN_FIELDS' => $hidden_fields
105 )
106 );
107 }
108 else
109 {
110 // delete users
111 $i = 0;
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
112 while($i < sizeof($user_ids))
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
113 {
114 $user_id = intval($user_ids[$i]);
115 if($user_id == '2')
116 {
117 message_die(GENERAL_ERROR, $lang['L_ADMINEDITMSG']);
118 }
841b23a @MightyGorgon New beta candidate... with many many changes and new features respect…
authored Jan 31, 2009
119 $killed = ip_user_kill($user_id);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
120 unset($user_id);
121 $i++;
122 }
123
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
124 $message = $lang['User_deleted_successfully'] . '<br /><br />' . sprintf($lang['Click_return_userlist'], '<a href="' . append_sid('admin_userlist.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
125
126 message_die(GENERAL_MESSAGE, $message);
127 }
128 break;
129
130 case 'ban':
131
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
132 // see if cancel has been hit and redirect if it has shouldn't get to this point if it has been hit but do this just in case
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
133 if ($cancel)
134 {
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
135 redirect(IP_ROOT_PATH . ADM . '/admin_userlist.' . PHP_EXT);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
136 }
137
138 // check confirm and either ban or show confirm message
139 if (!$confirm)
140 {
141 $i = 0;
142 $hidden_fields = '';
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
143 while($i < sizeof($user_ids))
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
144 {
145 $user_id = intval($user_ids[$i]);
146 $hidden_fields .= '<input type="hidden" name="' . POST_USERS_URL . '[]" value="' . $user_id . '" />';
147
148 unset($user_id);
149 $i++;
150 }
151
152 $template->set_filenames(array('body' => ADM_TPL . 'confirm_body.tpl'));
153 $template->assign_vars(array(
154 'MESSAGE_TITLE' => $lang['Ban'],
155 'MESSAGE_TEXT' => $lang['Confirm_user_ban'],
156
157 'U_INDEX' => '',
158 'L_INDEX' => '',
159
160 'L_YES' => $lang['Yes'],
161 'L_NO' => $lang['No'],
162
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
163 'S_CONFIRM_ACTION' => append_sid('admin_userlist.' . PHP_EXT . '?mode=ban'),
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
164 'S_HIDDEN_FIELDS' => $hidden_fields
165 )
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
166 );
167 }
168 else
169 {
170 // ban users
171 $i = 0;
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
172 while($i < sizeof($user_ids))
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
173 {
174 $user_id = intval($user_ids[$i]);
175
176 if($user_id == '2')
177 {
178 message_die(GENERAL_ERROR, $lang['L_ADMINEDITMSG']);
179 }
180 if($user_id == ANONYMOUS)
181 {
182 message_die(GENERAL_ERROR, 'Could not ban anonymous user');
183 }
184
b7f1b4c @MightyGorgon Preparing Icy Phoenix 2.0 Beta 2
authored Oct 30, 2011
185 $ban_insert_array = array(
186 'ban_userid' => $user_id,
187 'ban_by_userid' => $user->data['user_id'],
188 'ban_start' => time()
189 );
190 $sql = "INSERT INTO " . BANLIST_TABLE . " " . $db->sql_build_insert_update($ban_insert_array, true);
191 $result = $db->sql_query($sql);
192
193 $sql = "UPDATE " . USERS_TABLE . " SET user_warnings = " . $config['max_user_bancard'] . " WHERE user_id = " . $user_id;
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
194 $result = $db->sql_query($sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
195
196 unset($user_id);
197 $i++;
198 }
199
841b23a @MightyGorgon New beta candidate... with many many changes and new features respect…
authored Jan 31, 2009
200 $db->clear_cache('ban_', USERS_CACHE_FOLDER);
da0d9e9 @MightyGorgon Added a new cache folder to speed up things... hoping there are no bi…
authored Dec 3, 2008
201
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
202 $message = $lang['User_banned_successfully'] . '<br /><br />' . sprintf($lang['Click_return_userlist'], '<a href="' . append_sid('admin_userlist.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
203
204 message_die(GENERAL_MESSAGE, $message);
205 }
206 break;
207
208 case 'activate':
209
210 // activate or deactive the seleted users
211 $i = 0;
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
212 while($i < sizeof($user_ids))
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
213 {
214 $user_id = intval($user_ids[$i]);
215 $sql = "SELECT user_active FROM " . USERS_TABLE . "
216 WHERE user_id = $user_id";
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
217 $result = $db->sql_query($sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
218 $row = $db->sql_fetchrow($result);
219 $db->sql_freeresult($result);
220
221 $new_status = ($row['user_active']) ? 0 : 1;
222
223 $sql = "UPDATE " . USERS_TABLE . "
841b23a @MightyGorgon New beta candidate... with many many changes and new features respect…
authored Jan 31, 2009
224 SET user_active = '" . $new_status . "'
225 WHERE user_id = " . $user_id;
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
226 $result = $db->sql_query($sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
227
841b23a @MightyGorgon New beta candidate... with many many changes and new features respect…
authored Jan 31, 2009
228 if ($new_status == 0)
229 {
230 $clear_notification = user_clear_notifications($user_id);
231 }
232
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
233 unset($user_id);
234 $i++;
235 }
236
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
237 $message = $lang['User_status_updated'] . '<br /><br />' . sprintf($lang['Click_return_userlist'], '<a href="' . append_sid('admin_userlist.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
238
239 message_die(GENERAL_MESSAGE, $message);
240 break;
241
242 case 'group':
243
244 // add users to a group
245 if (!$confirm)
246 {
247 // show form to select which group to add users to
248 $i = 0;
249 $hidden_fields = '';
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
250 while($i < sizeof($user_ids))
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
251 {
252 $user_id = intval($user_ids[$i]);
9dea0d4 @MightyGorgon New Icy Phoenix structure.
authored Oct 30, 2008
253 $hidden_fields .= '<input type="hidden" name="' . POST_USERS_URL . '[]" value="' . $user_id . '" />';
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
254
255 unset($user_id);
256 $i++;
257 }
258
259 $template->set_filenames(array('body' => ADM_TPL . 'userlist_group.tpl'));
260
261 $template->assign_vars(array(
262 'MESSAGE_TITLE' => $lang['Add_group'],
263 'MESSAGE_TEXT' => $lang['Add_group_explain'],
264
265 'L_GROUP' => $lang['Group'],
266
267 'S_GROUP_VARIABLE' => POST_GROUPS_URL,
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
268 'S_ACTION' => append_sid(IP_ROOT_PATH . ADM . '/admin_userlist.' . PHP_EXT . '?mode=group'),
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
269 'L_GO' => $lang['Go'],
270 'L_CANCEL' => $lang['Cancel'],
271 'L_SELECT' => $lang['Select_one'],
272 'S_HIDDEN_FIELDS' => $hidden_fields
273 )
274 );
275
276 $sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . "
277 WHERE group_single_user <> " . TRUE . "
278 ORDER BY group_name";
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
279 $result = $db->sql_query($sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
280
281 // loop through groups
282 while ($row = $db->sql_fetchrow($result))
283 {
284 $template->assign_block_vars('grouprow',array(
285 'GROUP_NAME' => $row['group_name'],
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
286 'GROUP_ID' => $row['group_id']
287 )
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
288 );
289 }
290 }
291 else
292 {
293 // add the users to the selected group
294 $group_id = intval($_POST[POST_GROUPS_URL]);
295
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
296 include(IP_ROOT_PATH . 'includes/emailer.' . PHP_EXT);
43b6f20 @MightyGorgon Other bugs fixed about UTF-8:
authored Apr 4, 2010
297 $emailer = new emailer();
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
298
299 $i = 0;
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
300 while($i < sizeof($user_ids))
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
301 {
302 $user_id = intval($user_ids[$i]);
303
304 // For security, get the ID of the group moderator.
305 $sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod
306 FROM (" . GROUPS_TABLE . " g
307 LEFT JOIN " . AUTH_ACCESS_TABLE . " aa ON aa.group_id = g.group_id)
308 WHERE g.group_id = $group_id";
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
309 $result = $db->sql_query($sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
310 $group_info = $db->sql_fetchrow($result);
311
312 $sql = "SELECT user_id, user_email, user_lang, user_level
313 FROM " . USERS_TABLE . "
314 WHERE user_id = $user_id";
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
315 $result = $db->sql_query($sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
316 $row = $db->sql_fetchrow($result);
317
318 $sql = "SELECT ug.user_id, u.user_level
319 FROM " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u
320 WHERE u.user_id = " . $row['user_id'] . "
321 AND ug.user_id = u.user_id
322 AND ug.group_id = $group_id";
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
323 $result = $db->sql_query($sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
324
325 if (!($db->sql_fetchrow($result)))
326 {
327 $sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending)
328 VALUES (" . $row['user_id'] . ", $group_id, 0)";
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
329 $db->sql_query($sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
330
331 if (($row['user_level'] != ADMIN) && ($row['user_level'] != JUNIOR_ADMIN) && ($row['user_level'] != MOD) && $group_info['auth_mod'])
332 {
333 $sql = "UPDATE " . USERS_TABLE . "
334 SET user_level = " . MOD . "
335 WHERE user_id = " . $row['user_id'];
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
336 $db->sql_query($sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
337 }
338
339 // Get the group name
340 // Email the user and tell them they're in the group
341 $group_sql = "SELECT group_name
342 FROM " . GROUPS_TABLE . "
343 WHERE group_id = $group_id";
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
344 $result = $db->sql_query($group_sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
345 $group_name_row = $db->sql_fetchrow($result);
346 $group_name = $group_name_row['group_name'];
347
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
348 $script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($config['script_path']));
d164727 @MightyGorgon First implementation of the new permissions system in CMS.
authored Sep 23, 2011
349 $script_name = (($script_name != '') ? $script_name . '/' : '') . CMS_PAGE_GROUP_CP;
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
350 $server_name = trim($config['server_name']);
351 $server_protocol = ($config['cookie_secure']) ? 'https://' : 'http://';
352 $server_port = ($config['server_port'] <> 80) ? ':' . trim($config['server_port']) . '/' : '/';
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
353
354 $server_url = $server_protocol . $server_name . $server_port . $script_name;
355
356 $emailer->use_template('group_added', $row['user_lang']);
43b6f20 @MightyGorgon Other bugs fixed about UTF-8:
authored Apr 4, 2010
357 $emailer->to($row['user_email']);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
358 $emailer->set_subject($lang['Group_added']);
359
b73eec6 @MightyGorgon New CMS version, still unstable.
authored Apr 18, 2010
360 $email_sig = create_signature($config['board_email_sig']);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
361 $emailer->assign_vars(array(
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
362 'SITENAME' => $config['sitename'],
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
363 'GROUP_NAME' => $group_name,
b73eec6 @MightyGorgon New CMS version, still unstable.
authored Apr 18, 2010
364 'EMAIL_SIG' => $email_sig,
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
365 'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . '=' . $group_id
366 )
367 );
368 $emailer->send();
369 $emailer->reset();
370
371 }
372
373 unset($user_id);
374 $i++;
375 }
376
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
377 $message = $lang['User_add_group_successfully'] . '<br /><br />' . sprintf($lang['Click_return_userlist'], '<a href="' . append_sid('admin_userlist.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
378
379 message_die(GENERAL_MESSAGE, $message);
380 }
381 break;
382
383 default:
384
385 // get and display all of the users
386 $template->set_filenames(array('body' => ADM_TPL . 'userlist_body.tpl'));
387
388 // gets for alphanum
389 $alpha_range = array();
390 $alpha_letters = array();
391 $alpha_letters = range('A','Z');
392 $alpha_start = array($lang['All'], '#');
393 $alpha_range = array_merge($alpha_start, $alpha_letters);
394
395 $i = 0;
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
396 while($i < sizeof($alpha_range))
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
397 {
398
399 if ($alpha_range[$i] != $lang['All'])
400 {
401 if ($alpha_range[$i] != '#')
402 {
403 $temp = strtolower($alpha_range[$i]);
404 }
405 else
406 {
407 $temp = 'num';
408 }
7b262eb @MightyGorgon Other bugs fixed for UTF-8 and request_var function.
authored Mar 28, 2010
409 $alphanum_search_url = append_sid(IP_ROOT_PATH . ADM . '/admin_userlist.' . PHP_EXT . '?sort=' . $sort_method . '&amp;order=' . $sort_order . '&amp;show=' . $show . '&amp;alphanum=' . $temp);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
410 }
411 else
412 {
7b262eb @MightyGorgon Other bugs fixed for UTF-8 and request_var function.
authored Mar 28, 2010
413 $alphanum_search_url = append_sid(IP_ROOT_PATH . ADM . '/admin_userlist.' . PHP_EXT . '?sort=' . $sort_method . '&amp;order=' . $sort_order . '&amp;show=' . $show);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
414 }
415
416 $template->assign_block_vars('alphanumsearch', array(
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
417 'SEARCH_SIZE' => floor(100 / sizeof($alpha_range)) . '%',
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
418 'SEARCH_TERM' => $alpha_range[$i],
419 'SEARCH_LINK' => $alphanum_search_url
420 )
421 );
422
423 $i++;
424 }
425
9dea0d4 @MightyGorgon New Icy Phoenix structure.
authored Oct 30, 2008
426 $hidden_fields = '<input type="hidden" name="start" value="' . $start . '" />';
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
427 $select_sort_by = array('user_id', 'user_active', 'username', 'user_regdate', 'user_session_time', 'user_level', 'user_posts', 'user_rank', 'user_email', 'user_website', 'user_birthday', 'user_lang', 'user_style');
428 $select_sort_by_text = array($lang['User_id'], $lang['Active'], $lang['Username'], $lang['Joined'], $lang['Last_activity'], $lang['User_level'], $lang['Posts'], $lang['Rank'], $lang['Email'], $lang['Website'], $lang['Birthday'], $lang['Board_lang'], $lang['Board_style']);
429
430 $select_sort = '<select name="sort" class="post">';
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
431 for($i = 0; $i < sizeof($select_sort_by); $i++)
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
432 {
7b262eb @MightyGorgon Other bugs fixed for UTF-8 and request_var function.
authored Mar 28, 2010
433 $selected = ($sort_method == $select_sort_by[$i]) ? ' selected="selected"' : '';
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
434 $select_sort .= '<option value="' . $select_sort_by[$i] . '"' . $selected . '>' . $select_sort_by_text[$i] . '</option>';
435 }
436 $select_sort .= '</select>';
437
438 $select_sort_order = '<select name="order" class="post">';
439 if ($sort_order == 'ASC')
440 {
441 $select_sort_order .= '<option value="ASC" selected="selected">' . $lang['Ascending'] . '</option><option value="DESC">' . $lang['Descending'] . '</option>';
442 }
443 else
444 {
445 $select_sort_order .= '<option value="ASC">' . $lang['Ascending'] . '</option><option value="DESC" selected="selected">' . $lang['Descending'] . '</option>';
446 }
447 $select_sort_order .= '</select>';
9dea0d4 @MightyGorgon New Icy Phoenix structure.
authored Oct 30, 2008
448 $hidden_fields .= '<input type="hidden" name="alphanum" value="' . $alphanum . '" />';
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
449
450 //
451 // set up template varibles
452 //
453 $template->assign_vars(array(
454 'L_TITLE' => $lang['Userlist'],
455 'L_DESCRIPTION' => $lang['Userlist_description'],
456
457 'L_OPEN_CLOSE' => $lang['Open_close'],
458 'L_ACTIVE' => $lang['Active'],
459 'L_USERNAME' => $lang['Username'],
460 'L_GROUP' => $lang['Group'],
461 'L_RANK' => $lang['Rank'],
462 'L_POSTS' => $lang['Posts'],
463 'L_FIND_ALL_POSTS' => $lang['Find_all_posts'],
464 'L_JOINED' => $lang['Joined'],
465 'L_ACTIVTY' => $lang['Last_activity'],
466 'L_MANAGE' => $lang['User_manage'],
467 'L_PERMISSIONS' => $lang['Permissions'],
468 'L_EMAIL' => $lang['Email'],
469 'L_PM' => $lang['Private_Message'],
470 'L_WEBSITE' => $lang['Website'],
471 'L_BIRTHDAY' => $lang['Birthday'],
472 'L_LANG' => $lang['Board_lang'],
473 'L_STYLE' => $lang['Board_style'],
474
475 'S_USER_VARIABLE' => POST_USERS_URL,
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
476 'S_ACTION' => append_sid(IP_ROOT_PATH . ADM . '/admin_userlist.' . PHP_EXT),
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
477 'L_GO' => $lang['Go'],
478 'L_SELECT' => $lang['Select_one'],
479 'L_DELETE' => $lang['Delete'],
480 'L_BAN' => $lang['Ban'],
481 'L_ACTIVATE_DEACTIVATE' => $lang['Activate_deactivate'],
482 'L_ADD_GROUP' => $lang['Add_group'],
483
484 'S_SHOW' => $show,
485 'L_SORT_BY' => $lang['Sort_by'],
486 'L_USER_ID' => $lang['User_id'],
487 'L_USER_LEVEL' => $lang['User_level'],
488 'L_ASCENDING' => $lang['Ascending'],
489 'L_DESCENDING' => $lang['Descending'],
490 'L_SHOW' => $lang['Show'],
491 'S_SORT' => $lang['Sort'],
492 'S_SELECT_SORT' => $select_sort,
493 'S_SELECT_SORT_ORDER' => $select_sort_order,
494 'S_HIDDEN_FIELDS' => $hidden_fields
495 )
496 );
497
7b262eb @MightyGorgon Other bugs fixed for UTF-8 and request_var function.
authored Mar 28, 2010
498 $order_by = "ORDER BY $sort_method $sort_order ";
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
499
500 $sql = "SELECT *
501 FROM " . USERS_TABLE . "
502 WHERE user_id <> " . ANONYMOUS . "
503 $alpha_where
504 $order_by
505 LIMIT $start, $show";
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
506 $result = $db->sql_query($sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
507
508 // Query Ranks
509 $rank_sql = "SELECT * FROM " . RANKS_TABLE . " ORDER BY rank_special ASC, rank_min ASC";
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
510 $rank_result = $db->sql_query($rank_sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
511
512 while ($rank_row = $db->sql_fetchrow($rank_result))
513 {
514 $ranksrow[] = $rank_row;
515 }
516 $db->sql_freeresult($rank_result);
517
518 // loop through users
519 $i = 1;
520 while ($row = $db->sql_fetchrow($result))
521 {
841b23a @MightyGorgon New beta candidate... with many many changes and new features respect…
authored Jan 31, 2009
522 $avatar_img = user_get_avatar($row['user_id'], $row['user_level'], $row['user_avatar'], $row['user_avatar_type'], $row['user_allowavatar'], '../');
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
523
524 $poster_rank = '';
525 $rank_image = '';
526 if ($row['user_rank'])
527 {
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
528 for($ji = 0; $ji < sizeof($ranksrow); $ji++)
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
529 {
530 if ($row['user_rank'] == $ranksrow[$ji]['rank_id'] && $ranksrow[$ji]['rank_special'])
531 {
532 $poster_rank = $ranksrow[$ji]['rank_title'];
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
533 $rank_image = ($ranksrow[$ji]['rank_image']) ? '<img src="' . IP_ROOT_PATH . $ranksrow[$ji]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" /><br />' : '';
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
534 }
535 }
536 }
537 else
538 {
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
539 for($ji = 0; $ji < sizeof($ranksrow); $ji++)
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
540 {
541 if ($row['user_posts'] >= $ranksrow[$ji]['rank_min'] && !$ranksrow[$ji]['rank_special'])
542 {
543 $poster_rank = $ranksrow[$ji]['rank_title'];
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
544 $rank_image = ($ranksrow[$ji]['rank_image']) ? '<img src="' . IP_ROOT_PATH . $ranksrow[$ji]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" /><br />' : '';
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
545 }
546 }
547 }
548
549 // setup user row template variables
550 $template->assign_block_vars('user_row', array(
551 'ROW_NUMBER' => $i + (intval($_GET['start']) + 1),
552 'ROW_CLASS' => (!($i % 2)) ? $theme['td_class1'] : $theme['td_class2'],
553
554 'USER_ID' => $row['user_id'],
555 'ACTIVE' => ($row['user_active'] == true) ? $lang['Yes'] : $lang['No'],
841b23a @MightyGorgon New beta candidate... with many many changes and new features respect…
authored Jan 31, 2009
556 'USERNAME' => colorize_username($row['user_id'], $row['username'], $row['user_color'], $row['user_active']),
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
557 'U_PROFILE' => append_sid(IP_ROOT_PATH . CMS_PAGE_PROFILE . '?mode=viewprofile&amp;' . POST_USERS_URL . '=' . $row['user_id']),
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
558 'RANK' => $poster_rank,
559 'I_RANK' => $rank_image,
560 'I_AVATAR' => $avatar_img,
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
561 'JOINED' => create_date($lang['JOINED_DATE_FORMAT'], $row['user_regdate'], $config['board_timezone']),
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
562 'BIRTHDAY' => ($row['user_birthday'] != 999999) ? realdate($lang['DATE_FORMAT_BIRTHDAY'], $row['user_birthday']) : '',
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
563 'LAST_ACTIVITY' => (!empty($row['user_session_time'])) ? create_date('d M Y @ h:ia', $row['user_session_time'], $config['board_timezone']) : $lang['Never'],
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
564 'POSTS' => ($row['user_posts']) ? $row['user_posts'] : 0,
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
565 'U_SEARCH' => append_sid(IP_ROOT_PATH . CMS_PAGE_SEARCH.'?search_author=' . urlencode(strip_tags($row['username'])) . '&amp;showresults=posts'),
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
566 'U_WEBSITE' => ($row['user_website']) ? $row['user_website'] : '',
567 'USER_LANG' => $row['user_lang'],
568 'USER_STYLE' => $row['user_style'],
569 'EMAIL' => $row['user_email'],
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored Mar 20, 2010
570 'U_PM' => append_sid(IP_ROOT_PATH . CMS_PAGE_PRIVMSG . '?mode=post&amp;' . POST_USERS_URL . '='. $row['user_id']),
06ce0f8 @MightyGorgon Brand new version...
authored Sep 14, 2008
571 'U_MANAGE' => append_sid(IP_ROOT_PATH . ADM . '/admin_users.' . PHP_EXT . '?mode=edit&amp;' . POST_USERS_URL . '=' . $row['user_id']),
572 'U_PERMISSIONS' => append_sid(IP_ROOT_PATH . ADM . '/admin_ug_auth.' . PHP_EXT . '?mode=user&amp;' . POST_USERS_URL . '=' . $row['user_id'])
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
573 )
574 );
575
576 // get the users group information
841b23a @MightyGorgon New beta candidate... with many many changes and new features respect…
authored Jan 31, 2009
577 $group_sql = "SELECT *
578 FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
579 WHERE ug.user_id = " . $row['user_id'] . "
841b23a @MightyGorgon New beta candidate... with many many changes and new features respect…
authored Jan 31, 2009
580 AND g.group_single_user <> 1
581 AND g.group_id = ug.group_id";
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
582 $group_result = $db->sql_query($group_sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
583
584 $g = 0;
585 while ($group_row = $db->sql_fetchrow($group_result))
586 {
587 // assign the group varibles
588 if ($group_row['group_moderator'] == $row['user_id'])
589 {
590 $group_status = $lang['Moderator'];
591 }
592 else if ($group_row['user_pending'] == true)
593 {
594 $group_status = $lang['Pending'];
595 }
596 else
597 {
598 $group_status = $lang['Member'];
599 }
600
601 $template->assign_block_vars('user_row.group_row', array(
602 'GROUP_NAME' => $group_row['group_name'],
841b23a @MightyGorgon New beta candidate... with many many changes and new features respect…
authored Jan 31, 2009
603 'GROUP_COLOR' => 'style="font-weight: bold; text-decoration: none;' . (($group_row['group_color'] != '') ? ('color: ' . $group_row['group_color'] . ';') : '') . '"',
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
604 'GROUP_STATUS' => $group_status,
d164727 @MightyGorgon First implementation of the new permissions system in CMS.
authored Sep 23, 2011
605 'U_GROUP' => append_sid(IP_ROOT_PATH . CMS_PAGE_GROUP_CP . '?' . POST_GROUPS_URL . '=' . $group_row['group_id'])
841b23a @MightyGorgon New beta candidate... with many many changes and new features respect…
authored Jan 31, 2009
606 )
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
607 );
608 $g++;
609 }
610
611 if ($g == 0)
612 {
613 $template->assign_block_vars('user_row.no_group_row', array(
614 'L_NONE' => $lang['None'])
615 );
616 }
617
618 $i++;
619 }
620 $db->sql_freeresult($result);
621
622 $count_sql = "SELECT count(user_id) AS total
623 FROM " . USERS_TABLE . "
624 WHERE user_id <> " . ANONYMOUS . " $alpha_where";
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored Oct 26, 2009
625 $count_result = $db->sql_query($count_sql);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
626
627 if ($total = $db->sql_fetchrow($count_result))
628 {
629 $total_members = $total['total'];
7b262eb @MightyGorgon Other bugs fixed for UTF-8 and request_var function.
authored Mar 28, 2010
630 $pagination = generate_pagination(IP_ROOT_PATH . ADM . '/admin_userlist.' . PHP_EXT . '?sort=' . $sort_method . '&amp;order=' . $sort_order . '&amp;show=' . $show . ((isset($alphanum)) ? '&amp;alphanum=' . $alphanum : ''), $total_members, $show, $start);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
631 }
632
633 $template->assign_vars(array(
634 'PAGINATION' => $pagination,
635 'PAGE_NUMBER' => sprintf($lang['Page_of'], (floor($start / $show) + 1), ceil($total_members / $show))
636 )
637 );
638
639
640 break;
641
642 } // switch()
643
644 $template->pparse('body');
645
f7f8a52 @MightyGorgon Some bugs fixed and some improvements in the plugins management and i…
authored Jul 10, 2011
646 include(IP_ROOT_PATH . ADM . '/page_footer_admin.' . PHP_EXT);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored Aug 26, 2008
647
648 ?>
Something went wrong with that request. Please try again.