本文整理汇总了PHP中Filter::Create方法的典型用法代码示例。如果您正苦于以下问题:PHP Filter::Create方法的具体用法?PHP Filter::Create怎么用?PHP Filter::Create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Filter
的用法示例。
在下文中一共展示了Filter::Create方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: base64_encode
} else {
$TRACKINGSCRIPT = "lz_tracking_set_sessid(\"" . base64_encode(CALLER_USER_ID) . "\",\"" . base64_encode(CALLER_BROWSER_ID) . "\");";
if (BaseURL::IsInputURL() && strpos(BaseURL::GetInputURL(), GET_INTERN_COBROWSE) !== false) {
abortTracking(1);
}
$BROWSER = VisitorBrowser::FromCache(CALLER_USER_ID, CALLER_BROWSER_ID);
$EXTERNALUSER->AddBrowser($BROWSER);
if ($EXTERNALUSER->FirstCall && !$BROWSER->GetFirstCall()) {
$EXTERNALUSER->FirstCall = false;
}
initData(array("INTERNAL", "FILTERS", "EVENTS"));
define("IS_FILTERED", $FILTERS->Match(getIP(), formLanguages(!empty($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ? $_SERVER["HTTP_ACCEPT_LANGUAGE"] : ""), CALLER_USER_ID));
define("IS_FLOOD", $BROWSER->GetFirstCall() && Filter::IsFlood(getIP(), CALLER_USER_ID));
if (IS_FILTERED || IS_FLOOD || !empty($_GET["deactr"]) || getCookieValue(OO_TRACKING_FILTER_NAME) != null) {
if (!IS_FILTERED) {
Filter::Create($_SERVER["REMOTE_ADDR"], CALLER_USER_ID, OO_TRACKING_FILTER_NAME, isset($_GET["deactr"]) && is_int($_GET["deactr"]) ? $_GET["deactr"] : 365, true, true);
}
$monitoringActive = false;
abortTracking(556);
}
$BROWSER->Customs = getCustomArray($BROWSER->Customs);
if ($INPUTS[111]->IsServerInput()) {
$BROWSER->Fullname = cutString($INPUTS[111]->GetServerInput(), 255);
} else {
if ($INPUTS[111]->Cookie) {
$BROWSER->Fullname = getCookieValue("form_111");
}
}
if ($INPUTS[112]->IsServerInput()) {
$BROWSER->Email = cutString($INPUTS[112]->GetServerInput(), 255);
} else {
示例2: CreateFloodFilter
static function CreateFloodFilter($_ip, $_userId)
{
Server::InitDataBlock(array("FILTERS"));
foreach (DataManager::$Filters->Filters as $currentFilter) {
if ($currentFilter->IP == $_ip && !empty($currentFilter->IP) && $currentFilter->Activestate == 1) {
return "";
}
}
Filter::Create($_ip, $_userId, "AUTO FLOOD FILTER");
return "";
}
示例3: VisitorBrowser
if (BaseURL::IsInputURL() && strpos(BaseURL::GetInputURL(), GET_INTERN_COBROWSE) !== false) {
VisitorMonitoring::Abort(1);
}
VisitorMonitoring::$Browser = new VisitorBrowser(CALLER_BROWSER_ID, CALLER_USER_ID);
VisitorMonitoring::$Visitor->AddBrowser(VisitorMonitoring::$Browser);
if (VisitorMonitoring::$Visitor->FirstCall && !VisitorMonitoring::$Browser->GetFirstCall()) {
VisitorMonitoring::$Visitor->FirstCall = false;
}
Server::InitDataBlock(array("FILTERS", "EVENTS"));
define("IS_FILTERED", DataManager::$Filters->Match(Communication::GetIP(), LocalizationManager::ImplodeLanguages(!empty($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ? $_SERVER["HTTP_ACCEPT_LANGUAGE"] : ""), CALLER_USER_ID, VisitorMonitoring::$Visitor->GeoCountryISO2));
define("IS_FLOOD", VisitorMonitoring::$Browser->GetFirstCall() && Filter::IsFlood(Communication::GetIP(), CALLER_USER_ID));
Server::InitDataBlock(array("INTERNAL"));
$deactp = Communication::ReadParameter("deactr", 0);
if (IS_FILTERED && !FILTER_ALLOW_TRACKING || IS_FLOOD || !empty($deactp) || Cookie::Get(OO_TRACKING_FILTER_NAME) != null) {
if (!IS_FILTERED) {
Filter::Create($_SERVER["REMOTE_ADDR"], CALLER_USER_ID, OO_TRACKING_FILTER_NAME, !empty($deactp) ? $deactp : 365, true, true);
}
VisitorMonitoring::LoadOverlayChat();
VisitorMonitoring::$IsActive = false;
VisitorMonitoring::Abort(556);
}
VisitorMonitoring::$Browser->UserData->LoadFromPassThru();
if (JAVASCRIPT) {
if (Visitor::$PollCount <= 3) {
if (!BaseURL::IsInputURL()) {
VisitorMonitoring::Abort(3);
}
$currentURL = new HistoryURL(BaseURl::GetInputURL(), Communication::GetParameter(GET_TRACK_SPECIAL_AREA_CODE, "", $nu, null, null, 255), Communication::GetParameter(GET_EXTERN_DOCUMENT_TITLE, "", $nu, null, null, 255), Communication::GetParameter(GET_TRACK_REFERRER, "", $nu, FILTER_SANITIZE_URL, null, 510), time());
if ($currentURL->Referrer->IsInternalDomain()) {
$currentURL->Referrer = new BaseUrl("");
}
示例4: createSPAMFilter
function createSPAMFilter()
{
global $CONFIG;
if (!empty($CONFIG["gl_sfa"])) {
$filterkeys = array(0 => $CONFIG["gl_sfv"]);
if (strpos($CONFIG["gl_sfv"], ",") !== -1) {
$filterkeys = explode(",", $CONFIG["gl_sfv"]);
}
foreach ($filterkeys as $fvalue) {
foreach ($_GET as $gvalue) {
if (jokerCompare($fvalue, base64UrlDecode($gvalue))) {
Filter::Create(getIP(), null, "AUTO SPAM Filter: " . $fvalue);
return true;
}
}
foreach ($_POST as $pvalue) {
if (jokerCompare($fvalue, base64UrlDecode($pvalue))) {
Filter::Create(getIP(), null, "AUTO SPAM Filter: " . $fvalue);
return true;
}
}
}
}
return false;
}
示例5: CreateFloodFilter
static function CreateFloodFilter($_ip, $_userId)
{
global $FILTERS;
initData(array("FILTERS"));
foreach ($FILTERS->Filters as $currentFilter) {
if ($currentFilter->IP == $_ip && $currentFilter->Activeipaddress == 1 && $currentFilter->Activestate == 1) {
return;
}
}
Filter::Create($_ip, $_userId, "AUTO FLOOD FILTER");
}
示例6: CreateSPAMFilter
static function CreateSPAMFilter($_userId, $_base64 = true)
{
if (!empty(Server::$Configuration->File["gl_sfa"])) {
$filterkeys = array(0 => Server::$Configuration->File["gl_sfv"]);
if (strpos(Server::$Configuration->File["gl_sfv"], ",") !== -1) {
$filterkeys = explode(",", Server::$Configuration->File["gl_sfv"]);
}
foreach ($filterkeys as $fvalue) {
$fvalue = trim($fvalue);
foreach ($_GET as $gvalue) {
$ivalue = $_base64 ? Encoding::Base64UrlDecode($gvalue) : $gvalue;
if (jokerCompare($fvalue, $ivalue, true)) {
Filter::Create(Communication::GetIP(), $_userId, "AUTO SPAM Filter: " . $fvalue);
return true;
}
}
foreach ($_POST as $pvalue) {
$ivalue = $_base64 ? Encoding::Base64UrlDecode($pvalue) : $pvalue;
if (jokerCompare($fvalue, $ivalue, true)) {
Filter::Create(Communication::GetIP(), $_userId, "AUTO SPAM Filter: " . $fvalue);
return true;
}
}
}
}
return false;
}