Ignore:
Timestamp:
03/29/10 15:37:29 (2 years ago)
Author:
bogdan2412
Message:

Updated with changes from live.

  • Updated SMF to 1.1.11
  • Added Summify to site and forum
  • Small change to job detail view
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/smf/Sources/ManageMembers.php

    r1048 r1121  
    66* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    * 
    77* =============================================================================== * 
    8 * Software Version:           SMF 1.1.6                                           * 
     8* Software Version:           SMF 1.1.11                                          * 
    99* 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) * 
    1111*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             * 
    1212* Support, News, Updates at:  http://www.simplemachines.org                       * 
     
    202202        } 
    203203 
     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 
    204222        // Check input after a member search has been submitted. 
    205         if ($context['sub_action'] == 'query' && empty($_REQUEST['params'])) 
     223        if ($context['sub_action'] == 'query') 
    206224        { 
    207225                // Retrieving the membergroups and postgroups. 
     
    399417                $where = empty($query_parts) ? '1' : implode(' 
    400418                        AND ', $query_parts); 
    401         } 
    402         // If the query information was already packed in the URL, decode it. 
    403         // !!! Change this. 
    404         elseif ($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; 
    406424 
    407425        // 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 : ''; 
    409427 
    410428        // Get the title and sub template ready.. 
Note: See TracChangeset for help on using the changeset viewer.