當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Visitor::AddFunctionCall方法代碼示例

本文整理匯總了PHP中Visitor::AddFunctionCall方法的典型用法代碼示例。如果您正苦於以下問題:PHP Visitor::AddFunctionCall方法的具體用法?PHP Visitor::AddFunctionCall怎麽用?PHP Visitor::AddFunctionCall使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Visitor的用法示例。


在下文中一共展示了Visitor::AddFunctionCall方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Visitor

}
if (!isset($_GET["browid"])) {
    exit;
}
languageSelect();
initData(array("INTERNAL", "GROUPS", "FILTERS", "INPUTS"));
$USER = new Visitor(base64UrlDecode(getParam(GET_TRACK_USERID)));
$USER->Load();
array_push($USER->Browsers, new VisitorChat($USER->UserId, $USER->UserId . "_OVL"));
array_push($USER->Browsers, $BROWSER);
$GroupBuilder = new GroupBuilder($INTERNAL, $GROUPS, $CONFIG, $USER->Browsers[0]->DesiredChatGroup, $USER->Browsers[0]->DesiredChatPartner, false);
$GroupBuilder->Generate(null, true);
$USER->Browsers[0]->Overlay = true;
$USER->Browsers[0]->Load();
if ($USER->Browsers[0]->FirstCall) {
    $USER->AddFunctionCall("lz_chat_init_data_change(null,null);", false);
}
if (IS_FILTERED) {
    $USER->Browsers[0]->CloseChat();
    $USER->Browsers[0]->Destroy();
    $USER->AddFunctionCall("lz_tracking_remove_overlay_chat();", true);
}
$USER->Browsers[0]->LoadForward(false);
$USER->LoadChatRequests();
if (!empty($USER->Browsers[0]->Forward) && (!$GROUPS[$USER->Browsers[0]->Forward->TargetGroupId]->IsHumanAvailable(true, true) || !empty($USER->Browsers[0]->Forward->TargetSessId) && @$INTERNAL[$USER->Browsers[0]->Forward->TargetSessId]->UserStatus >= USER_STATUS_OFFLINE)) {
    $USER->Browsers[0]->Forward->Destroy();
    $USER->Browsers[0]->Forward = null;
    $USER->Browsers[0]->ExternalClose();
    $USER->Browsers[0]->Save();
    $USER->Browsers[0]->Load();
}
開發者ID:elderxavier,項目名稱:SII9-CREATIVE-STUDIO,代碼行數:31,代碼來源:ovl.php

示例2: ChatRouter

 LocalizationManager::AutoLoad();
 Server::InitDataBlock(array("FILTERS", "INPUTS"));
 VisitorChat::$Router = new ChatRouter();
 $externalUser = new Visitor(Encoding::Base64UrlDecode($_POST[POST_EXTERN_USER_USERID]));
 $externalUser->ExtendSession = true;
 $externalUser->Load();
 array_push($externalUser->Browsers, new VisitorChat($externalUser->UserId, Encoding::Base64UrlDecode($_POST[POST_EXTERN_USER_BROWSERID])));
 array_push($externalUser->Browsers, new VisitorBrowser($externalUser->Browsers[0]->BrowserId, $externalUser->Browsers[0]->UserId));
 define("IS_FILTERED", DataManager::$Filters->Match(Communication::GetIP(), LocalizationManager::ImplodeLanguages(!empty($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ? $_SERVER["HTTP_ACCEPT_LANGUAGE"] : ""), Encoding::Base64UrlDecode($_POST[POST_EXTERN_USER_USERID]), $externalUser->GeoCountryISO2));
 define("IS_FLOOD", $externalUser->Browsers[0]->FirstCall && Filter::IsFlood(Communication::GetIP(), @$_POST[POST_EXTERN_USER_USERID], true));
 Server::InitDataBlock(array("INTERNAL", "GROUPS"));
 VisitorChat::ApplyDynamicGroup($externalUser->Browsers[0]);
 $externalUser->Browsers[0]->Load();
 if ($externalUser->Browsers[0]->Status == CHAT_STATUS_OPEN && IS_FILTERED && !FILTER_ALLOW_CHATS && !FILTER_ALLOW_TICKETS) {
     $error = buildLoginErrorField();
     $externalUser->AddFunctionCall("lz_chat_release(true,'" . $error . "');", false);
 } else {
     if ($_POST[POST_EXTERN_SERVER_ACTION] == "search_kb") {
         $query = Communication::ReadParameter("p_q", "");
         $color = ExternalChat::ReadTextColor();
         $catcount = 0;
         $main = $result = $navcats = "";
         if ($query == "%ALL%") {
             $matches = KnowledgeBase::GetEntries(Visitor::$BrowserLanguage);
             if (count($matches) == 0) {
                 $matches = KnowledgeBase::GetEntries();
             }
             if (count($matches) > 0) {
                 foreach ($matches as $match) {
                     $res = IOStruct::GetFile(PATH_TEMPLATES . "kb_result_category.tpl");
                     $res = str_replace("<!--title-->", htmlentities($match->Title, ENT_QUOTES, "UTF-8"), $res);
開發者ID:sgh1986915,項目名稱:laravel-eyerideonline,代碼行數:31,代碼來源:extern.php


注:本文中的Visitor::AddFunctionCall方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。