本文整理汇总了PHP中Rating::IsFlood方法的典型用法代码示例。如果您正苦于以下问题:PHP Rating::IsFlood方法的具体用法?PHP Rating::IsFlood怎么用?PHP Rating::IsFlood使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Rating
的用法示例。
在下文中一共展示了Rating::IsFlood方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: SaveRate
function SaveRate($_internalId, $_config)
{
$rate = new Rating(time() . "_" . getIP());
if (!$rate->IsFlood()) {
$rate->RateComment = AJAXDecode($_POST[POST_EXTERN_RATE_COMMENT]);
$rate->RatePoliteness = AJAXDecode($_POST[POST_EXTERN_RATE_POLITENESS]);
$rate->RateQualification = AJAXDecode($_POST[POST_EXTERN_RATE_QUALIFICATION]);
$rate->Fullname = AJAXDecode($_POST[POST_EXTERN_USER_NAME]);
$rate->Email = AJAXDecode($_POST[POST_EXTERN_USER_EMAIL]);
$rate->Company = AJAXDecode($_POST[POST_EXTERN_USER_COMPANY]);
$rate->UserId = AJAXDecode($_POST[POST_EXTERN_USER_USERID]);
$rate->InternId = $_internalId;
if (!(!empty($_config["gl_rm_rt"]) && $_config["gl_rm_rt_time"] == 0)) {
saveRating($rate);
}
$this->AddFunctionCall("lz_chat_send_rate_callback(true);", false);
} else {
$this->AddFunctionCall("lz_chat_send_rate_callback(false);", false);
}
}
示例2: SaveRate
function SaveRate($_internalId, $_config, $_chatId)
{
global $CONFIG;
$isSpam = !empty($CONFIG["gl_sfc"]) && createSPAMFilter();
$rate = new Rating(time() . "_" . getIP());
if (!$rate->IsFlood() && !$isSpam) {
$rate->RateComment = base64UrlDecode($_POST[POST_EXTERN_RATE_COMMENT]);
$rate->RatePoliteness = base64UrlDecode($_POST[POST_EXTERN_RATE_POLITENESS]);
$rate->RateQualification = base64UrlDecode($_POST[POST_EXTERN_RATE_QUALIFICATION]);
$rate->Fullname = base64UrlDecode($_POST[POST_EXTERN_USER_NAME]);
$rate->Email = base64UrlDecode($_POST[POST_EXTERN_USER_EMAIL]);
$rate->Company = base64UrlDecode($_POST[POST_EXTERN_USER_COMPANY]);
$rate->UserId = base64UrlDecode($_POST[POST_EXTERN_USER_USERID]);
$rate->InternId = $_internalId;
if ($_config["gl_adct"] == 1 || !(!empty($_config["gl_rm_rt"]) && $_config["gl_rm_rt_time"] == 0)) {
saveRating($rate, $_chatId);
}
$this->AddFunctionCall("lz_chat_send_rate_callback(true);", false);
} else {
$this->AddFunctionCall("lz_chat_send_rate_callback(false);", false);
}
}