equal
deleted
inserted
replaced
194 } |
194 } |
195 else |
195 else |
196 { |
196 { |
197 $to_update_users['account_active'] = "0"; |
197 $to_update_users['account_active'] = "0"; |
198 $to_update_users['activation_key'] = sha1($session->dss_rand()); |
198 $to_update_users['activation_key'] = sha1($session->dss_rand()); |
|
199 } |
|
200 |
|
201 // All builtin checks passed, let plugins do what they want |
|
202 $code = $plugins->setHook('acp_usermanager_form_post'); |
|
203 foreach ( $code as $cmd ) |
|
204 { |
|
205 eval($cmd); |
199 } |
206 } |
200 |
207 |
201 if ( count($errors) < 1 ) |
208 if ( count($errors) < 1 ) |
202 { |
209 { |
203 $to_update_users_extra = array(); |
210 $to_update_users_extra = array(); |
1023 </td> |
1030 </td> |
1024 </tr> |
1031 </tr> |
1025 |
1032 |
1026 <!-- / Avatar settings --> |
1033 <!-- / Avatar settings --> |
1027 |
1034 |
|
1035 <!-- Hooks --> |
|
1036 |
|
1037 {PLUGINS} |
|
1038 |
|
1039 <!-- / Hooks --> |
|
1040 |
1028 <!-- Administrator-only options --> |
1041 <!-- Administrator-only options --> |
1029 |
1042 |
1030 <tr> |
1043 <tr> |
1031 <th class="subhead" colspan="2"> |
1044 <th class="subhead" colspan="2"> |
1032 {lang:acpum_heading_adminonly} |
1045 {lang:acpum_heading_adminonly} |
1156 if ( empty($this->email) ) |
1169 if ( empty($this->email) ) |
1157 { |
1170 { |
1158 // @error One or more required parameters not set |
1171 // @error One or more required parameters not set |
1159 return 'Admin_UserManager_SmartForm::render: Invalid parameter ($form->email)'; |
1172 return 'Admin_UserManager_SmartForm::render: Invalid parameter ($form->email)'; |
1160 } |
1173 } |
|
1174 |
|
1175 // Let plugins add HTML |
|
1176 ob_start(); |
|
1177 $code = $plugins->setHook('acp_usermanager_form_html'); |
|
1178 foreach ( $code as $cmd ) |
|
1179 { |
|
1180 eval($cmd); |
|
1181 } |
|
1182 $plugin_html = ob_get_contents(); |
|
1183 ob_end_clean(); |
1161 |
1184 |
1162 $form_action = makeUrlNS('Special', 'Administration', 'module=' . $paths->cpage['module'], true); |
1185 $form_action = makeUrlNS('Special', 'Administration', 'module=' . $paths->cpage['module'], true); |
1163 $aes_javascript = $session->aes_javascript("useredit_$this->uuid", 'new_password'); |
1186 $aes_javascript = $session->aes_javascript("useredit_$this->uuid", 'new_password'); |
1164 |
1187 |
1165 // build rank list |
1188 // build rank list |
1194 'JOB' => $job, |
1217 'JOB' => $job, |
1195 'HOBBIES' => $hobbies, |
1218 'HOBBIES' => $hobbies, |
1196 'FORM_ACTION' => $form_action, |
1219 'FORM_ACTION' => $form_action, |
1197 'REG_IP_ADDR' => $this->reg_ip_addr, |
1220 'REG_IP_ADDR' => $this->reg_ip_addr, |
1198 'RANK_LIST' => $rank_list, |
1221 'RANK_LIST' => $rank_list, |
1199 'GRAVATAR_URL' => make_gravatar_url($this->email, 16) |
1222 'GRAVATAR_URL' => make_gravatar_url($this->email, 16), |
|
1223 'PLUGINS' => $plugin_html |
1200 )); |
1224 )); |
1201 |
1225 |
1202 if ( $this->has_avatar ) |
1226 if ( $this->has_avatar ) |
1203 { |
1227 { |
1204 $parser->assign_vars(array( |
1228 $parser->assign_vars(array( |