home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / CMS / xoops-2.0.18.1.exe / xoops-2.0.18.1 / htdocs / language / english / xoopsmailerlocal.php < prev   
Encoding:
PHP Script  |  2007-09-09  |  1.0 KB  |  34 lines

  1. <?php
  2. /**
  3.  * Localize the mail functions
  4.  *
  5.  * The English localization is solely for demonstration
  6.  */
  7. // Do not change the class name
  8. class XoopsMailerLocal extends XoopsMailer {
  9.  
  10.     function XoopsMailerLocal(){
  11.         $this->XoopsMailer();
  12.         // It is supposed no need to change the charset
  13.         $this->charSet = strtolower( _CHARSET );
  14.         // You MUST specify the language code value so that the file exists: XOOPS_ROOT_PAT/class/mail/phpmailer/language/lang-["your-language-code"].php
  15.         $this->multimailer->SetLanguage("en");
  16.     }
  17.     
  18.     // Multibyte languages are encouraged to make their proper method for encoding FromName
  19.     function encodeFromName($text)
  20.     {
  21.         // Activate the following line if needed
  22.         // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";
  23.         return $text;
  24.     }
  25.  
  26.     // Multibyte languages are encouraged to make their proper method for encoding Subject
  27.     function encodeSubject($text)
  28.     {
  29.         // Activate the following line if needed
  30.         // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";
  31.         return $text;
  32.     }
  33. }
  34. ?>