Ignore:
Timestamp:
Mar 31, 2010, 6:32:40 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Aktualizace fóra.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/includes/ucp/ucp_activate.php

    r400 r702  
    33*
    44* @package ucp
    5 * @version $Id: ucp_activate.php 9067 2008-11-21 13:21:53Z Kellanved $
     5* @version $Id$
    66* @copyright (c) 2005 phpBB Group
    77* @license http://opensource.org/licenses/gpl-license.php GNU Public License
     
    5757                }
    5858
     59                // Do not allow activating by non administrators when admin activation is on
     60                // Only activation type the user should be able to do is INACTIVE_REMIND
     61                // or activate a new password which is not an activation state :@
     62                if (!$user_row['user_newpasswd'] && $user_row['user_inactive_reason'] != INACTIVE_REMIND && $config['require_activation'] == USER_ACTIVATION_ADMIN && !$auth->acl_get('a_user'))
     63                {
     64                        if (!$user->data['is_registered'])
     65                        {
     66                                login_box('', $user->lang['NO_AUTH_OPERATION']);
     67                        }
     68                        trigger_error('NO_AUTH_OPERATION');
     69                }
     70
    5971                $update_password = ($user_row['user_newpasswd']) ? true : false;
    6072
     
    7385                                WHERE user_id = ' . $user_row['user_id'];
    7486                        $db->sql_query($sql);
     87
     88                        add_log('user', $user_row['user_id'], 'LOG_USER_NEW_PASSWORD', $user_row['username']);
    7589                }
    7690
Note: See TracChangeset for help on using the changeset viewer.