本文整理匯總了PHP中kekezu::get_config方法的典型用法代碼示例。如果您正苦於以下問題:PHP kekezu::get_config方法的具體用法?PHP kekezu::get_config怎麽用?PHP kekezu::get_config使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類kekezu
的用法示例。
在下文中一共展示了kekezu::get_config方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: sendmail
public function sendmail()
{
global $_K;
if (!$this->_email || !$this->_username) {
$userinfo = kekezu::get_user_info($this->_uid);
$this->_username = $userinfo['username'];
$this->_email = $userinfo['email'];
}
if (!$this->_email) {
return false;
}
$this->_basicconfig and $basicconfig = $this->_basicconfig or $basicconfig = kekezu::get_config('basic');
if ($basicconfig['mail_server_cat'] == 'mail') {
if ($basicconfig['post_account'] && $basicconfig['mail_replay'] && $this->_email && $this->_title && $this->_normal_content) {
$hearer = "From:{$basicconfig['post_account']}\nReply-To:{$basicconfig['mail_replay']}\nX-Mailer: PHP/" . phpversion() . "\nContent-Type:text/html";
mail($this->_email, $this->_title, htmlspecialchars_decode($this->_normal_content), $hearer);
}
} else {
if ($basicconfig['smtp_url'] && $basicconfig['mail_server_port'] && $basicconfig['post_account'] && $basicconfig['account_pwd'] && $basicconfig['website_name']) {
kekezu::send_mail($this->_email, $this->_title, htmlspecialchars_decode($this->_normal_content));
}
}
}