本文整理汇总了PHP中global_common::clearSession方法的典型用法代码示例。如果您正苦于以下问题:PHP global_common::clearSession方法的具体用法?PHP global_common::clearSession怎么用?PHP global_common::clearSession使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类global_common
的用法示例。
在下文中一共展示了global_common::clearSession方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: html_entity_decode
$fullName = $_pgR['fullName'];
$fullName = html_entity_decode($fullName, ENT_COMPAT, 'UTF-8');
$email = $_pgR['email'];
$email = html_entity_decode($email, ENT_COMPAT, 'UTF-8');
$subject = $_pgR['subject'];
$subject = html_entity_decode($subject, ENT_COMPAT, 'UTF-8');
$content = $_pgR['content'];
$content = html_entity_decode($content, ENT_COMPAT, 'UTF-8');
$emailContent = 'From:' . $fullName . '<br>' . 'Email:' . $email . '<br>' . 'Content: <br>' . $content;
$isSent = global_mail::send(global_common::SUPPORT_MAIL_USERNAME, global_common::SUPPORT_MAIL_DISPLAY_NAME, $subject, $emailContent, null, global_common::SUPPORT_MAIL_USERNAME, global_common::SUPPORT_MAIL_PASSWORD, global_common::SUPPORT_MAIL_DISPLAY_NAME);
if ($isSent) {
$arrHeader = global_common::getMessageHeaderArr($banCode);
//$banCode
echo global_common::convertToXML($arrHeader, array('rs', 'inf'), array(1, 'Đã gửi thành công.'), array(0, 1));
return;
} else {
echo global_common::convertToXML($arrHeader, array('rs', 'inf'), array(0, 'Xử lý thất bại. Xin vui lòng thử lại sau!'), array(0, 1));
return;
}
} else {
if ($_pgR["act"] == Model_User::ACT_LOGOUT) {
echo global_common::convertToXML($arrHeader, array('rs', 'inf', 'rurl'), array(1, '', $_SESSION[global_common::SES_C_CUR_PAGE]), array(0, 1, 1));
global_common::clearSession();
return;
}
}
}
}
}
}
}