0byt3m1n1
Path:
/
data
/
applications
/
aps
/
xoops
/
2.5.1a-0
/
standard
/
htdocs
/
language
/
english
/
[
Home
]
File: xoopsmailerlocal.php
<?php /* You may not change or alter any portion of this comment or credits of supporting developers from this source code or any supporting source code which is considered copyrighted (c) material of the original comment or credit authors. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ /** * Xoops Language * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * @package kernel * @subpackage Xoops Mailer Local Language * @since 2.3.0 * @author Taiwen Jiang <phppp@users.sourceforge.net> * @version $Id: xoopsmailerlocal.php 4941 2010-07-22 17:13:36Z beckmi $ */ defined('XOOPS_ROOT_PATH') or die('Restricted access'); /** * Localize the mail functions * * The English localization is solely for demonstration */ // Do not change the class name class XoopsMailerLocal extends XoopsMailer { /** * Constructer * * @return XoopsMailerLocal */ function XoopsMailerLocal() { $this->XoopsMailer(); // It is supposed no need to change the charset $this->charSet = strtolower(_CHARSET); // You MUST specify the language code value so that the file exists: XOOPS_ROOT_PAT/class/mail/phpmailer/language/lang-["your-language-code"].php $this->multimailer->SetLanguage("en"); } // Multibyte languages are encouraged to make their proper method for encoding FromName function encodeFromName($text) { // Activate the following line if needed // $text = "=?{$this->charSet}?B?".base64_encode($text)."?="; return $text; } // Multibyte languages are encouraged to make their proper method for encoding Subject function encodeSubject($text) { // Activate the following line if needed // $text = "=?{$this->charSet}?B?".base64_encode($text)."?="; return $text; } } ?>