function AbortFileUpload($_user, $_filename, $_error) { $fileid = substr(md5(namebase($_filename)), 0, 5); $request = new FileUploadRequest($this->BrowserId . "_" . $fileid, $this->DesiredChatPartner); if (dataSetExists($request->TargetFile)) { $request->Load(); $request->Error = $_error; $request->Save(); } }
} if (isset($_GET[GET_EXTERN_USER_COMPANY]) && !isnull($_GET[GET_EXTERN_USER_COMPANY])) { $BROWSER->Company = substr(secPrev(base64UrlDecode($_GET[GET_EXTERN_USER_COMPANY])), 0, 50); } getData(false, false, false, true); define("IS_FILTERED", $FILTERS->Match(getIP(), formLanguages(!isnull(getServerParam("HTTP_ACCEPT_LANGUAGE")) ? getServerParam("HTTP_ACCEPT_LANGUAGE") : ""), CALLER_USER_ID)); define("IS_FLOOD", !dataSetExists($BROWSER->SessionFile) && isFlood()); if (!getAvailability() || IS_FILTERED || IS_FLOOD) { $BROWSER->Destroy(); exit("lz_tracking_stop_tracking();"); } if (dataSetExists($BROWSER->SessionFile)) { $BROWSER->Load(); } $count = count($BROWSER->History); if (!dataSetExists($externalUser->ExternalStatic->SessionFile)) { createStaticFile($externalUser, array(@$_GET[GET_TRACK_RESOLUTION_WIDTH], @$_GET[GET_TRACK_RESOLUTION_HEIGHT]), @$_GET[GET_TRACK_COLOR_DEPTH], @$_GET[GET_TRACK_TIMEZONE_OFFSET], @$_GET[GEO_LATITUDE], @$_GET[GEO_LONGITUDE], @$_GET[GEO_COUNTRY_ISO_2], @$_GET[GEO_CITY], @$_GET[GEO_REGION], @$_GET[GEO_TIMEZONE], @$_GET[GEO_ISP], @$_GET[GEO_SSPAN], @$_GET[GEO_RESULT_ID]); } if (isset($_GET[GET_TRACK_CLOSE_CHAT_WINDOW])) { $chat = new ExternalChat($externalUser->UserId, $_GET[GET_TRACK_CLOSE_CHAT_WINDOW]); $chat->Load(); $chat->Destroy(); } $TRACKINGSCRIPT .= processActions($BROWSER); $TRACKINGSCRIPT .= "lz_tracking_callback(" . $CONFIG["poll_frequency_tracking"] . ",'" . $_GET[GET_TRACK_START] . "');"; $BROWSER->LastActive = time(); if (isnull($BROWSER->FirstActive)) { $BROWSER->FirstActive = time(); } $BROWSER->Referrer = !isset($BROWSER->Referrer) ? isset($_GET[GET_TRACK_REFERRER]) ? trim(slashesStrip(base64UrlDecode($_GET[GET_TRACK_REFERRER]))) : "" : $BROWSER->Referrer; $url = isset($_GET[GET_TRACK_URL]) ? substr(base64UrlDecode($_GET[GET_TRACK_URL]), 0, 1024) : "";
function IsActivated($_systemId) { $activated = false; $files = getDirectory($this->ExternalUser->Folder, false); foreach ($files as $file) { if (strpos($file, EX_CHAT_ACTIVE) !== false) { if (isnull($_systemId) || !isnull($_systemId) && strpos(trim($file), trim($_systemId)) !== false) { $activated = true; } } } $existance = array(dataSetExists($this->TargetFileExternalActivation), dataSetExists($this->TargetFileInternalActivation), dataSetExists($this->TargetFileInternal), dataSetExists($this->TargetFileExternal)); $this->Activated = $existance[0] && $existance[1] ? CHAT_STATUS_ACTIVE : ($existance[0] || $existance[1] ? CHAT_STATUS_WAITING : CHAT_STATUS_OPEN); if (!$this->Closed) { $this->Closed = $existance[0] && !$existance[1]; } return $activated; }
if ($_POST[POST_EXTERN_SERVER_ACTION] == EXTERN_ACTION_RELOAD_GROUPS) { if (isset($_GET[GET_EXTERN_USER_NAME]) && !isnull($_GET[GET_EXTERN_USER_NAME])) { $externalUser->Browsers[0]->Fullname = base64UrlDecode($_GET[GET_EXTERN_USER_NAME]); } if (isset($_GET[GET_EXTERN_USER_EMAIL]) && !isnull($_GET[GET_EXTERN_USER_EMAIL])) { $externalUser->Browsers[0]->Email = base64UrlDecode($_GET[GET_EXTERN_USER_EMAIL]); } if (isset($_GET[GET_EXTERN_USER_COMPANY]) && !isnull($_GET[GET_EXTERN_USER_COMPANY])) { $externalUser->Browsers[0]->Company = base64UrlDecode($_GET[GET_EXTERN_USER_COMPANY]); } $externalUser = reloadGroups($externalUser); } else { $externalUser->Browsers[0]->Destroy(); exit; } } } } if (!dataSetExists($externalUser->ExternalStatic->SessionFile) && isset($_POST[POST_EXTERN_RESOLUTION_WIDTH])) { createStaticFile($externalUser, array($_POST[POST_EXTERN_RESOLUTION_WIDTH], $_POST[POST_EXTERN_RESOLUTION_HEIGHT]), $_POST[POST_EXTERN_COLOR_DEPTH], $_POST[POST_EXTERN_TIMEZONE_OFFSET], @$_POST[GEO_LATITUDE], @$_POST[GEO_LONGITUDE], @$_POST[GEO_COUNTRY_ISO_2], @$_POST[GEO_CITY], @$_POST[GEO_REGION], @$_POST[GEO_TIMEZONE], @$_POST[GEO_ISP], @$_POST[GEO_SSPAN], @$_POST[GEO_RESULT_ID]); } if (isset($_GET[GET_TRACK_SPECIAL_AREA_CODE])) { $externalUser->Browsers[0]->Code = base64UrlDecode($_GET[GET_TRACK_SPECIAL_AREA_CODE]); } if (IS_FILTERED) { $externalUser->Browsers[0]->Destroy(); } else { $externalUser->Browsers[0]->Save(); } $EXTERNSCRIPT = $externalUser->Response; }
function removeChats() { global $INTERNAL, $CONFIG; foreach ($INTERNAL[CALLER_SYSTEM_ID]->ExternalChats as $chat) { if (!dataSetExists($chat->ExternalUser->SessionFile) || $chat->Closed && getDataSetTime($chat->ExternalUser->SessionFile) < time() - $CONFIG["timeout_clients"]) { $chat->InternalDestroy(); $chat->ExternalUser->Destroy($CONFIG); } } }