Changeset 8841 for extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php
- Timestamp:
- Jan 22, 2011, 6:14:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php
r8092 r8841 105 105 case 'global': 106 106 107 if (isset($_POST['submit']) and !is_adviser() andisset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']) and isset($_POST['UAM_RedirToProfile']) and isset($_POST['UAM_GTAuto']))107 if (isset($_POST['submit']) and isset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']) and isset($_POST['UAM_RedirToProfile']) and isset($_POST['UAM_GTAuto'])) 108 108 { 109 109 … … 215 215 216 216 //Testing password enforcement 217 if (isset($_POST['PasswordTest']) and !is_adviser() andisset($_POST['UAM_Password_Test']) and !empty($_POST['UAM_Password_Test']))217 if (isset($_POST['PasswordTest']) and isset($_POST['UAM_Password_Test']) and !empty($_POST['UAM_Password_Test'])) 218 218 { 219 219 $UAM_Password_Test_Score = testpassword($_POST['UAM_Password_Test']); 220 220 } 221 else if (isset($_POST['PasswordTest']) and !is_adviser() andempty($_POST['UAM_Password_Test']))221 else if (isset($_POST['PasswordTest']) and empty($_POST['UAM_Password_Test'])) 222 222 { 223 223 array_push($page['errors'], l10n('reg_err_login3')); … … 1002 1002 } 1003 1003 1004 //Hide radio-button if not allow to assign adviser1005 if ($conf['allow_adviser'])1006 {1007 $template->assign('adviser', true);1008 }1009 1010 1004 // +-----------------------------------------------------------------------+ 1011 1005 // | user list | … … 1086 1080 ? '<BR>['.l10n('is_the_default').']' : ''), 1087 1081 'STATUS' => l10n('user_status_' 1088 .$local_user['status']).(($local_user['adviser'] == 'true') 1089 ? '<BR>['.l10n('adviser').']' : ''), 1082 .$local_user['status']), 1090 1083 'EMAIL' => get_email_address_as_display_text($local_user['email']), 1091 1084 'GROUPS' => $groups_string, … … 1344 1337 { 1345 1338 //Reset is only allowed for admins ! 1346 if (is_admin() and !is_adviser())1339 if (is_admin()) 1347 1340 { 1348 1341 $query1 = ' … … 1412 1405 } 1413 1406 1414 //Hide radio-button if not allow to assign adviser1415 if ($conf['allow_adviser'])1416 {1417 $template->assign('adviser', true);1418 }1419 1420 1407 // +-----------------------------------------------------------------------+ 1421 1408 // | user list |
Note: See TracChangeset
for help on using the changeset viewer.