Changeset 5085 for extensions/NBC_UserAdvManager/trunk/admin
- Timestamp:
- Mar 8, 2010, 11:00:14 PM (14 years ago)
- Location:
- extensions/NBC_UserAdvManager/trunk/admin
- Files:
-
- 2 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 ); -
extensions/NBC_UserAdvManager/trunk/admin/global.tpl
r5084 r5085 109 109 <ul> 110 110 {if $UAM_MAIL_INFO_TRUE} 111 {if $UAM_ERROR_REPORTS1} 112 <li><label class="cluetip" title="{'UAM_infotxtTitle'|translate}|{'UAM_infotxtTitle_d'|translate}">{'UAM_MailInfo_Text'|@translate}</label><br><br> 113 <textarea name="UAM_MailInfo_Text" id="UAM_MailInfo_Text" rows="10" cols="80" style="color: red" {$TAG_INPUT_ENABLED}>{$UAM_MAILINFO_TEXT}</textarea><br><br> 114 </li> 115 {else} 116 <li><label class="cluetip" title="{'UAM_infotxtTitle'|translate}|{'UAM_infotxtTitle_d'|translate}">{'UAM_MailInfo_Text'|@translate}</label><br><br> 117 <textarea name="UAM_MailInfo_Text" id="UAM_MailInfo_Text" rows="10" cols="80" {$TAG_INPUT_ENABLED}>{$UAM_MAILINFO_TEXT}</textarea><br><br> 118 </li> 119 {/if} 111 <li><label class="cluetip" title="{'UAM_infotxtTitle'|translate}|{'UAM_infotxtTitle_d'|translate}">{'UAM_MailInfo_Text'|@translate}</label><br><br> 112 <textarea name="UAM_MailInfo_Text" id="UAM_MailInfo_Text" rows="10" cols="80" {$TAG_INPUT_ENABLED}>{$UAM_MAILINFO_TEXT}</textarea><br><br> 113 </li> 120 114 {else} 121 115 <li><label class="cluetip" title="{'UAM_infotxtTitle'|translate}|{'UAM_infotxtTitle_d'|translate}">{'UAM_MailInfo_Text'|@translate}</label><br><br> … … 143 137 </li> 144 138 {if $UAM_CONFIRM_MAIL_TRUE} 145 {if $UAM_ERROR_REPORTS2}146 <li><label class="cluetip" title="{'UAM_confirmtxtTitle'|translate}|{'UAM_confirmtxtTitle_d'|translate}">{'UAM_ConfirmMail_Text'|@translate}</label><br><br>147 <textarea name="UAM_ConfirmMail_Text" id="UAM_ConfirmMail_Text" rows="10" cols="80" style="color: red" {$TAG_INPUT_ENABLED}>{$UAM_CONFIRMMAIL_TEXT}</textarea><br><br>148 </li>149 {else}150 139 <li><label class="cluetip" title="{'UAM_confirmtxtTitle'|translate}|{'UAM_confirmtxtTitle_d'|translate}">{'UAM_ConfirmMail_Text'|@translate}</label><br><br> 151 140 <textarea name="UAM_ConfirmMail_Text" id="UAM_ConfirmMail_Text" rows="10" cols="80" {$TAG_INPUT_ENABLED}>{$UAM_CONFIRMMAIL_TEXT}</textarea><br><br> 152 141 </li> 153 {/if}154 142 {else} 155 143 <li><label class="cluetip" title="{'UAM_confirmtxtTitle'|translate}|{'UAM_confirmtxtTitle_d'|translate}">{'UAM_ConfirmMail_Text'|@translate}</label><br><br> … … 214 202 <ul> 215 203 {if $UAM_CONFIRMMAIL_REMAIL_TRUE} 216 {if $UAM_ERROR_REPORTS1}217 <li><label class="cluetip" title="{'UAM_remailtxt1Title'|translate}|{'UAM_remailtxt1Title_d'|translate}">{'UAM_ConfirmMail_ReMail_Txt1'|@translate}</label><br><br>218 <textarea name="UAM_ConfirmMail_ReMail_Txt1" id="UAM_ConfirmMail_ReMail_Txt1" rows="10" cols="80" style="color: red" {$TAG_INPUT_ENABLED}>{$UAM_CONFIRMMAIL_REMAIL_TXT1}</textarea><br><br>219 </li>220 {else}221 204 <li><label class="cluetip" title="{'UAM_remailtxt1Title'|translate}|{'UAM_remailtxt1Title_d'|translate}">{'UAM_ConfirmMail_ReMail_Txt1'|@translate}</label><br><br> 222 205 <textarea name="UAM_ConfirmMail_ReMail_Txt1" id="UAM_ConfirmMail_ReMail_Txt1" rows="10" cols="80" {$TAG_INPUT_ENABLED}>{$UAM_CONFIRMMAIL_REMAIL_TXT1}</textarea><br><br> 223 206 </li> 224 {/if}225 207 {else} 226 208 <li><label class="cluetip" title="{'UAM_remailtxt1Title'|translate}|{'UAM_remailtxt1Title_d'|translate}">{'UAM_ConfirmMail_ReMail_Txt1'|@translate}</label><br><br> … … 237 219 238 220 {if $UAM_CONFIRMMAIL_REMAIL_TRUE} 239 {if $UAM_ERROR_REPORTS2}240 <li><label class="cluetip" title="{'UAM_remailtxt2Title'|translate}|{'UAM_remailtxt2Title_d'|translate}">{'UAM_ConfirmMail_ReMail_Txt2'|@translate}</label><br><br>241 <textarea name="UAM_ConfirmMail_ReMail_Txt2" id="UAM_ConfirmMail_ReMail_Txt2" rows="10" cols="80" style="color: red" {$TAG_INPUT_ENABLED}>{$UAM_CONFIRMMAIL_REMAIL_TXT2}</textarea><br>242 </li>243 {else}244 221 <li><label class="cluetip" title="{'UAM_remailtxt2Title'|translate}|{'UAM_remailtxt2Title_d'|translate}">{'UAM_ConfirmMail_ReMail_Txt2'|@translate}</label><br><br> 245 222 <textarea name="UAM_ConfirmMail_ReMail_Txt2" id="UAM_ConfirmMail_ReMail_Txt2" rows="10" cols="80" {$TAG_INPUT_ENABLED}>{$UAM_CONFIRMMAIL_REMAIL_TXT2}</textarea><br> 246 223 </li> 247 {/if}248 224 {else} 249 225 <li><label class="cluetip" title="{'UAM_remailtxt2Title'|translate}|{'UAM_remailtxt2Title_d'|translate}">{'UAM_ConfirmMail_ReMail_Txt2'|@translate}</label><br><br> … … 281 257 <ul> 282 258 {if $UAM_GHOSTRACKER_TRUE} 283 {if $UAM_ERROR_REPORTS3}284 <li><label class="cluetip" title="{'UAM_gttextTitle'|translate}|{'UAM_gttextTitle_d'|translate}">{'UAM_GhostTracker_ReminderText'|@translate}</label><br><br>285 <textarea name="UAM_GhostTracker_ReminderText" id="UAM_GhostTracker_ReminderText" rows="10" cols="80" style="color: red" {$TAG_INPUT_ENABLED}>{$UAM_GHOSTRACKER_REMINDERTEXT}</textarea><br><br>286 </li>287 {else}288 259 <li><label class="cluetip" title="{'UAM_gttextTitle'|translate}|{'UAM_gttextTitle_d'|translate}">{'UAM_GhostTracker_ReminderText'|@translate}</label><br><br> 289 260 <textarea name="UAM_GhostTracker_ReminderText" id="UAM_GhostTracker_ReminderText" rows="10" cols="80" {$TAG_INPUT_ENABLED}>{$UAM_GHOSTRACKER_REMINDERTEXT}</textarea><br><br> 290 261 </li> 291 {/if}292 262 {else} 293 263 <li><label class="cluetip" title="{'UAM_gttextTitle'|translate}|{'UAM_gttextTitle_d'|translate}">{'UAM_GhostTracker_ReminderText'|@translate}</label><br><br>
Note: See TracChangeset
for help on using the changeset viewer.