Changeset 1060 in ExiteCMS for trunk/pm.php


Ignore:
Timestamp:
11/05/07 21:36:09 (5 years ago)
Author:
hverton
Message:

Added a feature to handle invalid member email addresses. Once a user has been marked to have an invalid address, a login will redirect to the edit_profile module and the user will be prompted to correct the address. If this doesn't happen within 90 days, the user account will be deactivated and will disappear from the member lists. The account is not deleted or disabled, a login will reactivate the account again (and the 90 day countdown timer will start again).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pm.php

    r953 r1060  
    903903    if ($action == "post" || $action == "forward") { 
    904904        $variables['user_list'] = array(); 
    905         $result = dbquery("SELECT u.user_id, u.user_name FROM ".$db_prefix."users u ORDER BY user_level DESC, user_name ASC"); 
     905        $result = dbquery("SELECT u.user_id, u.user_name FROM ".$db_prefix."users u WHERE user_status = 0 ORDER BY user_level DESC, user_name ASC"); 
    906906        while ($data = dbarray($result)) { 
    907             // only other users (can send a PM to yourself), skip the user_id passed to us (from a PM button p.e.) 
     907            // only other users (can't send a PM to yourself), skip the user_id passed to us (from a PM button p.e.) 
    908908            if ($data['user_id'] != $userdata['user_id'] && $data['user_id'] != $user_id) { 
    909909                $variables['user_list'][] = $data; 
Note: See TracChangeset for help on using the changeset viewer.