本文整理汇总了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));
}
}
}