Changeset 1121 for trunk/smf/Sources/ManageMembers.php
- Timestamp:
- 03/29/10 15:37:29 (2 years ago)
- File:
-
- 1 edited
-
trunk/smf/Sources/ManageMembers.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/smf/Sources/ManageMembers.php
r1048 r1121 6 6 * Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com) * 7 7 * =============================================================================== * 8 * Software Version: SMF 1.1. 6*8 * Software Version: SMF 1.1.11 * 9 9 * Software by: Simple Machines (http://www.simplemachines.org) * 10 * Copyright 2006 by:Simple Machines LLC (http://www.simplemachines.org) *10 * Copyright 2006-2009 by: Simple Machines LLC (http://www.simplemachines.org) * 11 11 * 2001-2006 by: Lewis Media (http://www.lewismedia.com) * 12 12 * Support, News, Updates at: http://www.simplemachines.org * … … 202 202 } 203 203 204 // Build a search for a specific group or post group. 205 if ($context['sub_action'] === 'query') 206 { 207 if (isset($_GET['group'])) 208 $_POST['membergroups'] = array( 209 array((int) $_GET['group']), 210 array((int) $_GET['group']), 211 ); 212 elseif (isset($_GET['pgroup'])) 213 $_POST['postgroups'] = array((int) $_GET['pgroup']); 214 } 215 216 if ($context['sub_action'] == 'query' && !empty($_REQUEST['params']) && empty($_POST)) 217 { 218 $search_params = base64_decode(stripslashes($_REQUEST['params'])); 219 $_POST += addslashes__recursive(@unserialize($search_params)); 220 } 221 204 222 // Check input after a member search has been submitted. 205 if ($context['sub_action'] == 'query' && empty($_REQUEST['params']))223 if ($context['sub_action'] == 'query') 206 224 { 207 225 // Retrieving the membergroups and postgroups. … … 399 417 $where = empty($query_parts) ? '1' : implode(' 400 418 AND ', $query_parts); 401 } 402 // If the query information was already packed in the URL, decode it.403 // !!! Change this.404 else if ($context['sub_action'] == 'query')405 $ where = base64_decode(strtr($_REQUEST['params'], array(' ' => '+')));419 420 $search_params = base64_encode(serialize(stripslashes__recursive($_POST))); 421 } 422 else 423 $search_params = null; 406 424 407 425 // Construct the additional URL part with the query info in it. 408 $context['params_url'] = $context['sub_action'] == 'query' ? ';sa=query;params=' . base64_encode($where): '';426 $context['params_url'] = $context['sub_action'] == 'query' ? ';sa=query;params=' . $search_params : ''; 409 427 410 428 // Get the title and sub template ready..
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)