Changeset 12550 for extensions/UserAdvManager/trunk/main.inc.php
- Timestamp:
- Nov 5, 2011, 3:47:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/trunk/main.inc.php
r12314 r12550 2 2 /* 3 3 Plugin Name: UserAdvManager 4 Version: 2.30. 04 Version: 2.30.1 5 5 Description: Renforcer la gestion des utilisateurs - Enforce users management 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=216 … … 86 86 /** 87 87 * UAM_PwdReset_Action - Triggered on UAM_PwdReset_Action 88 * Handle pass ord reset action in user_list.php88 * Handle password reset action in user_list.php 89 89 */ 90 90 function UAM_PwdReset_Action() … … 131 131 { 132 132 array_push($page['errors'], l10n('UAM_Guest cannot be pwdreset')); 133 $ errors = l10n('UAM_Guest cannot be pwdreset');133 $template->append('errors', l10n('UAM_Guest cannot be pwdreset')); 134 134 } 135 135 if (($conf['guest_id'] != $conf['default_user_id']) and … … 137 137 { 138 138 array_push($page['errors'], l10n('UAM_Default user cannot be pwgreset')); 139 $ errors = l10n('UAM_Default user cannot be pwgreset');139 $template->append('errors', l10n('UAM_Default user cannot be pwgreset')); 140 140 } 141 141 if (in_array($conf['webmaster_id'], $collection)) 142 142 { 143 143 array_push($page['errors'], l10n('UAM_Webmaster cannot be pwdreset')); 144 $ errors = l10n('UAM_Webmaster cannot be pwdreset');144 $template->append('errors', l10n('UAM_Webmaster cannot be pwdreset')); 145 145 } 146 146 if (in_array($user['id'], $collection)) 147 147 { 148 148 array_push($page['errors'], l10n('UAM_You cannot pwdreset your account')); 149 $ errors = l10n('UAM_You cannot pwdreset your account');149 $template->append('errors', l10n('UAM_You cannot pwdreset your account')); 150 150 } 151 151 … … 227 227 } 228 228 } 229 230 $page['order_by_items'] = array(231 'id' => l10n('registration date'),232 'username' => l10n('Username'),233 'level' => l10n('Privacy level'),234 'Language' => l10n('Language'),235 'UAM_pwdreset' => l10n('UAM_PwdReset'),236 );237 238 // Filter order options239 $template->assign('order_options', $page['order_by_items']);240 $template->assign('order_selected',241 isset($_GET['order_by']) ? $_GET['order_by'] : '');242 243 229 $template->set_prefilter('user_list', 'UAM_PwdReset_Prefilter'); 244 230 }
Note: See TracChangeset
for help on using the changeset viewer.