Changeset 1159 in ExiteCMS for trunk/administration/administrators.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/administrators.php

    r1117 r1159  
    7777 
    7878// get the list of members with administrator or webmaster level 
    79 $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_level>='102' ORDER BY user_level DESC, user_name"); 
     79$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_level>='102' AND user_status = '0' ORDER BY user_level DESC, user_name"); 
    8080$variables['admins'] = array(); 
    8181while ($data = dbarray($result)) { 
     
    9696 
    9797// get the list of all members (remove the user himself from the list!) 
    98 $result = dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_name"); 
     98$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_status = '0' ORDER BY user_name"); 
    9999$variables['users'] = array(); 
    100100while ($data = dbarray($result)) { 
Note: See TracChangeset for help on using the changeset viewer.