Changeset 5085 for extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php
- Timestamp:
- Mar 8, 2010, 11:00:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php
r5084 r5085 27 27 28 28 $UAM_Password_Test_Score = 0; 29 $UAM_MailInfo_Error_Txt = false;30 $UAM_ConfirmMail_Error_Txt = false;31 $UAM_Reminder_Error_Txt = false;32 $UAM_ConfirmMail_Error_Txt1 = false;33 $UAM_ConfirmMail_Error_Txt2 = false;34 29 $UAM_Exclusionlist_Error = false; 35 30 … … 118 113 119 114 120 /* Control of semicolons - Replaced by dots - Warning message is displayed */ 121 /* if ((preg_match($pattern, $_POST['UAM_MailInfo_Text'])) or (preg_match($pattern, $_POST['UAM_GhostTracker_ReminderText'])) or (preg_match($pattern, $_POST['UAM_ConfirmMail_Text']))) 122 { 123 if (preg_match($pattern, $_POST['UAM_MailInfo_Text'])) 124 { 125 $_POST['UAM_MailInfo_Text'] = preg_replace($pattern, $replacement, $_POST['UAM_MailInfo_Text']); 126 $UAM_MailInfo_Error_Txt = true; 127 } 128 129 if (preg_match($pattern, $_POST['UAM_ConfirmMail_Text'])) 130 { 131 $_POST['UAM_ConfirmMail_Text'] = preg_replace($pattern, $replacement, $_POST['UAM_ConfirmMail_Text']); 132 $UAM_ConfirmMail_Error_Txt = true; 133 } 134 135 if (preg_match($pattern, $_POST['UAM_GhostTracker_ReminderText'])) 136 { 137 $_POST['UAM_GhostTracker_ReminderText'] = preg_replace($pattern, $replacement, $_POST['UAM_GhostTracker_ReminderText']); 138 $UAM_Reminder_Error_Txt = true; 139 } 140 141 array_push($page['errors'], l10n('mail_text_error')); 142 }*/ 143 144 /* Check if CR-LF exist at begining and end of mail exclusion list - If yes, removes them */ 115 /* Check if CR-LF exist at begining and end of mail exclusion list - If yes, removes them */ 145 116 if (preg_match('/^[\s]+/', $_POST['UAM_MailExclusion_List'])) 146 117 { … … 190 161 $_POST['UAM_ConfirmMail_ReMail_Txt2'] = str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_ReMail_Txt2'])); 191 162 192 /* Control of semicolons - Replaced by dots - Warning message displayed */193 /* if ((preg_match($pattern, $_POST['UAM_ConfirmMail_ReMail_Txt1'])) or (preg_match($pattern, $_POST['UAM_ConfirmMail_ReMail_Txt2'])))194 {195 if ((preg_match($pattern, $_POST['UAM_ConfirmMail_ReMail_Txt1'])))196 {197 $_POST['UAM_ConfirmMail_ReMail_Txt1'] = preg_replace($pattern, $replacement, $_POST['UAM_ConfirmMail_ReMail_Txt1']);198 $UAM_ConfirmMail_Error_Txt1 = true;199 }200 201 if ((preg_match($pattern, $_POST['UAM_ConfirmMail_ReMail_Txt2'])))202 {203 $_POST['UAM_ConfirmMail_ReMail_Txt2'] = preg_replace($pattern, $replacement, $_POST['UAM_ConfirmMail_ReMail_Txt2']);204 205 $UAM_ConfirmMail_Error_Txt2 = true;206 }207 208 array_push($page['errors'], l10n('mail_text_error'));209 }*/210 163 211 164 $newconf_UAM_ConfirmMail = array ( … … 378 331 'UAM_ADMINCONFMAIL_FALSE' => $conf_UAM[21]=='false' ? 'checked="checked"' : '' , 379 332 'UAM_PASSWORD_TEST_SCORE' => $UAM_Password_Test_Score, 380 'UAM_ERROR_REPORTS1' => $UAM_MailInfo_Error_Txt,381 'UAM_ERROR_REPORTS2' => $UAM_ConfirmMail_Error_Txt,382 'UAM_ERROR_REPORTS3' => $UAM_Reminder_Error_Txt,383 333 'UAM_ERROR_REPORTS4' => $UAM_Exclusionlist_Error, 384 334 'UAM_CONFIRMMAIL_TIMEOUT_TRUE' => $conf_UAM_ConfirmMail[0]=='true' ? 'checked="checked"' : '' , … … 389 339 'UAM_CONFIRMMAIL_REMAIL_TXT1' => $conf_UAM_ConfirmMail[2], 390 340 'UAM_CONFIRMMAIL_REMAIL_TXT2' => $conf_UAM_ConfirmMail[4], 391 'UAM_ERROR_REPORTS1' => $UAM_ConfirmMail_Error_Txt1,392 'UAM_ERROR_REPORTS2' => $UAM_ConfirmMail_Error_Txt2,393 341 ) 394 342 );
Note: See TracChangeset
for help on using the changeset viewer.