本文整理汇总了PHP中icms_core_DataFilter::filterHTMLinput方法的典型用法代码示例。如果您正苦于以下问题:PHP icms_core_DataFilter::filterHTMLinput方法的具体用法?PHP icms_core_DataFilter::filterHTMLinput怎么用?PHP icms_core_DataFilter::filterHTMLinput使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类icms_core_DataFilter
的用法示例。
在下文中一共展示了icms_core_DataFilter::filterHTMLinput方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: COUNT
}
$res = icms::$xoopsDB->query("SELECT COUNT(*) FROM " . icms::$xoopsDB->prefix("users")
. " WHERE uid='". (int) ($_POST['to_userid']) . "'");
list($count) = icms::$xoopsDB->fetchRow($res);
if ($count != 1) {
echo "<br /><br /><div><h4>" . _PM_USERNOEXIST . "<br />"
. _PM_PLZTRYAGAIN . "</h4><br />";
if (isset($security_error) && $security_error == true) {
echo implode('<br />', icms::$security->getErrors());
}
echo "[ <a href='javascript:history.go(-1)'>" . _PM_GOBACK . "</a> ]</div>";
} else {
$pm_handler = icms::handler('icms_data_privmessage');
$pm =& $pm_handler->create();
$pm->setVar("subject", icms_core_DataFilter::filterTextareaInput($_POST['subject']));
$pm->setVar("msg_text", icms_core_DataFilter::filterHTMLinput($_POST['message'], TRUE, TRUE, TRUE));
$pm->setVar("to_userid", (int) ($_POST['to_userid']));
$pm->setVar("from_userid", (int) (icms::$user->getVar("uid")));
if (!$pm_handler->insert($pm)) {
echo $pm->getHtmlErrors() . "<br /><a href='javascript:history.go(-1)'>"
. _PM_GOBACK . "</a>";
} else {
// Send a Private Message email notification
$userHandler = icms::handler('icms_member_user');
$toUser =& $userHandler->get((int) ($_POST['to_userid']));
// Only send email notif if notification method is mail
if ($toUser->getVar('notify_method') == 2) {
$xoopsMailer = new icms_messaging_Handler();
$xoopsMailer->useMail();
$xoopsMailer->setToEmails($toUser->getVar('email'));
if (icms::$user->getVar('user_viewemail')) {