Show
Ignore:
Timestamp:
03/07/10 15:46:27 (3 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager] Pre-2.14.0

- Tips rewriting (thx to Tosca)
- Updating translations
- Bug 1467 : FCK Editor functions are enabled but there is still a problem with special characters transformed to code. They are not correctly displayed in email received.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php

    r5064 r5073  
    7272 
    7373/* Standby because this may cause too many problems with (;) in text fields */ 
    74 //$toolbar = 'Basic'; 
    75 //$width = '750px'; 
    76 //$height = '300px'; 
    77 //$areas = array(); 
    78 //array_push( $areas,'UAM_MailInfo_Text','UAM_ConfirmMail_Text','UAM_GhostTracker_ReminderText','UAM_ConfirmMail_ReMail_Txt1','UAM_ConfirmMail_ReMail_Txt2'); 
     74$toolbar = 'Basic'; 
     75$width = '750px'; 
     76$height = '300px'; 
     77$areas = array(); 
     78array_push( $areas,'UAM_MailInfo_Text','UAM_ConfirmMail_Text','UAM_GhostTracker_ReminderText','UAM_ConfirmMail_ReMail_Txt1','UAM_ConfirmMail_ReMail_Txt2'); 
    7979  
    80 //if (function_exists('set_fckeditor_instance')) 
    81 //  set_fckeditor_instance($areas, $toolbar, $width, $height); 
     80if (function_exists('set_fckeditor_instance')) 
     81  set_fckeditor_instance($areas, $toolbar, $width, $height); 
    8282 
    8383 
     
    107107 
    108108/* Control of semicolons - Replaced by dots - Warning message is displayed */     
    109     if ((preg_match($pattern, $_POST['UAM_MailInfo_Text'])) or (preg_match($pattern, $_POST['UAM_GhostTracker_ReminderText'])) or (preg_match($pattern, $_POST['UAM_ConfirmMail_Text']))) 
     109/*    if ((preg_match($pattern, $_POST['UAM_MailInfo_Text'])) or (preg_match($pattern, $_POST['UAM_GhostTracker_ReminderText'])) or (preg_match($pattern, $_POST['UAM_ConfirmMail_Text']))) 
    110110    { 
    111111      if (preg_match($pattern, $_POST['UAM_MailInfo_Text'])) 
     
    128128       
    129129      array_push($page['errors'], l10n('mail_text_error')); 
    130     } 
     130    }*/ 
    131131 
    132132    /* Check if CR-LF exist at begining and end of mail exclusion list - If yes, removes them */ 
     
    179179 
    180180/* Control of semicolons - Replaced by dots - Warning message displayed */ 
    181     if ((preg_match($pattern, $_POST['UAM_ConfirmMail_ReMail_Txt1'])) or (preg_match($pattern, $_POST['UAM_ConfirmMail_ReMail_Txt2']))) 
     181/*    if ((preg_match($pattern, $_POST['UAM_ConfirmMail_ReMail_Txt1'])) or (preg_match($pattern, $_POST['UAM_ConfirmMail_ReMail_Txt2']))) 
    182182    { 
    183183      if ((preg_match($pattern, $_POST['UAM_ConfirmMail_ReMail_Txt1']))) 
     
    195195       
    196196      array_push($page['errors'], l10n('mail_text_error')); 
    197     } 
     197    }*/ 
    198198 
    199199          $newconf_UAM_ConfirmMail = array (