Changeset 1159 in ExiteCMS for trunk/administration/user_groups.php


Ignore:
Timestamp:
12/08/07 00:04:43 (4 years ago)
Author:
hverton
Message:

update all user queries to include the user_status, to select only active user accounts
removed download bar selection from the download module (should be in the download bars module)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/user_groups.php

    r1137 r1159  
    115115 
    116116    $group_id = $_POST['group_id']; 
    117     $result = dbquery("SELECT user_id,user_name,user_groups FROM ".$db_prefix."users"); 
     117    $result = dbquery("SELECT user_id,user_name,user_groups FROM ".$db_prefix."users WHERE user_status = '0'"); 
    118118    while ($data = dbarray($result)) { 
    119119        if (!preg_match("(^\.{$group_id}|\.{$group_id}\.|\.{$group_id}$)", $data['user_groups'])) { 
     
    267267        $variables['group1_users'] = array(); 
    268268        $variables['group2_users'] = array(); 
    269         $result = dbquery("SELECT user_id,user_name,user_groups FROM ".$db_prefix."users ORDER BY LOWER(user_name)"); 
     269        $result = dbquery("SELECT user_id,user_name,user_groups FROM ".$db_prefix."users WHERE user_status = '0' ORDER BY LOWER(user_name)"); 
    270270        while ($data = dbarray($result)) { 
    271271            if (!preg_match("(^\.{$group_id}$|\.{$group_id}\.|\.{$group_id}$)", $data['user_groups'])) { 
Note: See TracChangeset for help on using the changeset viewer.