Exemplo n.º 1
0
     }
     if ($monitoringActive) {
         $BROWSER->History[count($BROWSER->History) - 1]->Save(CALLER_BROWSER_ID, count($BROWSER->History) == 1);
         $BROWSER->ForceUpdate();
     }
 } else {
     if (count($BROWSER->History) == 0) {
         abortTracking(11);
     }
 }
 $BROWSER->LoadWebsitePush();
 $EXTERNALUSER->LoadChatRequests();
 $BROWSER->LoadAlerts();
 $BROWSER->LoadOverlayBoxes();
 $TRACKINGSCRIPT .= triggerEvents();
 $TRACKINGSCRIPT .= processActions("", $openChatExternal);
 $ACTIVE_OVLC = false;
 if (!empty($_GET["fbpos"]) && !empty($_GET["fbw"]) && is_numeric(base64UrlDecode($_GET["fbw"]))) {
     $shadow = !empty($_GET["fbshx"]) ? "true," . base64UrlDecode($_GET["fbshb"]) . "," . base64UrlDecode($_GET["fbshx"]) . "," . base64UrlDecode($_GET["fbshy"]) . ",'" . base64UrlDecode($_GET["fbshc"]) . "'" : "false,0,0,0,''";
     $margin = !empty($_GET["fbmt"]) ? "," . base64UrlDecode($_GET["fbml"]) . "," . base64UrlDecode($_GET["fbmt"]) . "," . base64UrlDecode($_GET["fbmr"]) . "," . base64UrlDecode($_GET["fbmb"]) : ",0,0,0,0";
     if (!(!$conline && !empty($_GET["fboo"]))) {
         $TRACKINGSCRIPT .= "lz_tracking_add_floating_button(" . base64UrlDecode($_GET["fbpos"]) . "," . $shadow . $margin . "," . base64UrlDecode($_GET["fbw"]) . "," . base64UrlDecode($_GET["fbh"]) . ");";
     }
 }
 if (!empty($_GET["ovlc"]) && strlen(base64UrlDecode($_GET["ovlc"])) == 7) {
     require LIVEZILLA_PATH . "ovl.php";
     $TRACKINGSCRIPT .= @$OVLPAGE;
 }
 if (!empty($_GET["cboo"]) && !operatorsAvailable(0, $parameters["exclude"], $parameters["include_group"], $parameters["include_user"], false)) {
     $TRACKINGSCRIPT .= "lz_tracking_remove_buttons();";
 }
<?php

ob_start();
//set buffer on
session_start();
//starting session
// Include functions
require_once 'inc/functions.inc.php';
// Process actions for this page
processActions();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
	
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>PHP Shopping Cart &#0183; Cart</title>
	<link rel="stylesheet" href="css/style.css" />
</head>

<body>

<div id="shoppingcart" align="center">

<h2>Your Shopping Cart</h2>

<?php 
echo writeShoppingCart();
?>

</div>
function listenXML($runs = 1)
{
    global $CONFIG, $RESPONSE, $INTERNAL, $QCOUNT, $QLIST;
    processActions();
    if (!SERVERSETUP && !LOGIN && $INTERNAL[CALLER_SYSTEM_ID]->Status == USER_STATUS_OFFLINE) {
        return;
    }
    $start = time();
    /*while(time() < $start + getLongPollRuntime() || $runs == 1)
    	{
    		if($runs > 1)
    			getData(true,false,true,false);*/
    $RESPONSE->XML = "<listen disabled=\"" . base64_encode(getAvailability() ? "0" : "1") . "\" h=\"<!--gl_all-->\" " . (isset($_POST[POST_INTERN_XMLCLIP_HASH_EXECUTION_TIME]) ? "ex_time=\"<!--execution_time-->\"" : "") . ">\r\n";
    $RESPONSE->Typing = "";
    if ($RESPONSE->Login != null) {
        $RESPONSE->XML .= $RESPONSE->Login;
    }
    buildSystem();
    //if($runs++ == 1)
    processPosts();
    if (($hash = substr(md5($RESPONSE->Typing), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_TYPING] && strlen($RESPONSE->Typing) > 0) {
        $RESPONSE->XML .= "<gl_typ h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Typing . "</gl_typ>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Events), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_EVENTS]) {
        $RESPONSE->XML .= "<gl_ev h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Events . "</gl_ev>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Exceptions), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_ERRORS] && strlen($RESPONSE->Exceptions) > 0) {
        $RESPONSE->XML .= "<gl_e h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Exceptions . "</gl_e>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Internals), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_INTERN] && strlen($RESPONSE->Internals) > 0) {
        $RESPONSE->XML .= "<int_r h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Internals . "</int_r>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Groups), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_GROUPS] && strlen($RESPONSE->Groups) > 0) {
        $RESPONSE->XML .= "<int_d h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Groups . "</int_d>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Actions), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_ACTIONS]) {
        $RESPONSE->XML .= "<int_ac h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Actions . "</int_ac>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->InternalVcards), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_PROFILES]) {
        $RESPONSE->XML .= "<int_v h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->InternalVcards . "</int_v>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->InternalProfilePictures), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_PICTURES_PROFILE]) {
        $RESPONSE->XML .= "<int_pp h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->InternalProfilePictures . "</int_pp>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->InternalWebcamPictures), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_PICTURES_WEBCAM]) {
        $RESPONSE->XML .= "<int_wp h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->InternalWebcamPictures . "</int_wp>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Goals), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_GOALS]) {
        $RESPONSE->XML .= "<int_t h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Goals . "</int_t>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Filter), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_FILTERS]) {
        $RESPONSE->XML .= "<ext_b h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Filter . "</ext_b>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Tracking), 0, 5)) != @$_POST[POST_INTERN_XMLCLIP_HASH_TRACKING]) {
        $RESPONSE->XML .= "<ext_u h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Tracking . "</ext_u>\r\n";
    }
    if ($RESPONSE->Archive != null) {
        $RESPONSE->XML .= "<ext_c>\r\n" . $RESPONSE->Archive . "</ext_c>\r\n";
    }
    if ($RESPONSE->Resources != null) {
        $RESPONSE->XML .= "<ext_res>\r\n" . $RESPONSE->Resources . "</ext_res>\r\n";
    }
    if ($RESPONSE->Ratings != null) {
        $RESPONSE->XML .= "<ext_r>\r\n" . $RESPONSE->Ratings . "</ext_r>\r\n";
    }
    if ($RESPONSE->Messages != null) {
        $RESPONSE->XML .= "<ext_m>\r\n" . $RESPONSE->Messages . "</ext_m>\r\n";
    }
    if (strlen($RESPONSE->Authentications) > 0) {
        $RESPONSE->XML .= "<gl_auths>\r\n" . $RESPONSE->Authentications . "\r\n</gl_auths>\r\n";
    }
    if (strlen($RESPONSE->Posts) > 0) {
        $RESPONSE->XML .= "<usr_p>\r\n" . $RESPONSE->Posts . "</usr_p>\r\n";
    }
    if (isset($_POST[POST_INTERN_ACCESSTEST])) {
        $RESPONSE->XML .= "<permission>" . base64_encode(getFolderPermissions()) . "</permission>";
    }
    if (SERVERSETUP || LOGIN || $INTERNAL[CALLER_SYSTEM_ID]->LastActive <= @filemtime(FILE_CONFIG)) {
        $RESPONSE->XML .= getConfig();
    }
    $RESPONSE->XML .= "</listen>";
    /*
    	if(substr_count($RESPONSE->XML,"<") > 4 || $INTERNAL[CALLER_SYSTEM_ID]->Status == USER_STATUS_OFFLINE || isset($_POST[POST_GLOBAL_NO_LONG_POLL]))
    	{
    		break;
    	}
    	else
    	{
    		if(isset($_POST[POST_GLOBAL_SHOUT]))
    			break;
    		$wait = max($CONFIG["poll_frequency_clients"]-3,1);
    		if(time()+$wait <= $start + getLongPollRuntime())
    		{
    			sleep($wait);
    		}
    		else
    			break;
    	}
    }
    */
}
Exemplo n.º 4
0
            array_walk($v_accounts, function (&$p_record, $p_key) {
                $p_record['type'] = CloudBankConsts::LedgerAccountType_Account;
            });
            CloudBank::AddLinks($v_accounts, 'events.php', array('ledger_account_id' => 'id', 'ledger_account_type' => 'type'), 'name', 'account_link');
            $v_template->set('accounts', $v_accounts);
            $p_form = preparePurgeForm($p_variables);
            break;
        case 'import':
            $p_form = prepareImportForm($p_variables, $v_dummy);
            break;
    }
    return $v_template;
}
function renderView($p_template, $p_form, $p_variables)
{
    global $page_output, $notification;
    $page_output->header();
    $notification->notify(array('listeners' => 'status'));
    if ($p_template) {
        echo $p_template->fetch(CLOUDBANK_TEMPLATES . '/accounts_for_statement.html');
    }
    if ($p_form) {
        $p_form->renderActive(new Horde_Form_Renderer(), $p_variables, 'statement.php', 'post');
    }
    $page_output->footer();
}
/* main() */
$g_variables =& Horde_Variables::getDefaultVariables();
processActions($g_variables);
$g_template = prepareView($g_variables, $g_form);
renderView($g_template, $g_form, $g_variables);
function listenXML()
{
    global $RESPONSE, $INTERNAL;
    processActions();
    if (!SERVERSETUP && !LOGIN && $INTERNAL[CALLER_SYSTEM_ID]->Status == USER_STATUS_OFFLINE) {
        return;
    }
    $RESPONSE->XML = "<listen disabled=\"" . base64_encode(getAvailability(false) ? "0" : "1") . "\" h=\"<!--gl_all-->\" " . (isset($_POST[POST_INTERN_XMLCLIP_HASH_EXECUTION_TIME]) ? "ex_time=\"<!--execution_time-->\"" : "") . ">\r\n";
    $RESPONSE->Typing = "";
    if ($RESPONSE->Login != null) {
        $RESPONSE->XML .= $RESPONSE->Login;
    }
    buildSystem();
    processPosts();
    if (($hash = substr(md5($RESPONSE->Typing), 0, 5)) != @$_POST["p_gl_t"] && strlen($RESPONSE->Typing) > 0) {
        $RESPONSE->XML .= "<gl_typ h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Typing . "</gl_typ>\r\n";
    }
    $RESPONSE->XML .= $RESPONSE->Events . "\r\n";
    if (($hash = substr(md5($RESPONSE->Exceptions), 0, 5)) != @$_POST["p_gl_e"] && strlen($RESPONSE->Exceptions) > 0) {
        $RESPONSE->XML .= "<gl_e h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Exceptions . "</gl_e>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Internals), 0, 5)) != @$_POST["p_int_r"] && strlen($RESPONSE->Internals) > 0) {
        $RESPONSE->XML .= "<int_r h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Internals . "</int_r>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Groups), 0, 5)) != @$_POST["p_int_d"] && strlen($RESPONSE->Groups) > 0) {
        $RESPONSE->XML .= "<int_d h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Groups . "</int_d>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Actions), 0, 5)) != @$_POST["p_int_ev"]) {
        $RESPONSE->XML .= "<int_ac h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Actions . "</int_ac>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->InternalVcards), 0, 5)) != @$_POST["p_int_v"]) {
        $RESPONSE->XML .= "<int_v h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->InternalVcards . "</int_v>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->InternalWebcamPictures), 0, 5)) != @$_POST["p_int_wp"]) {
        $RESPONSE->XML .= "<int_wp h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->InternalWebcamPictures . "</int_wp>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Goals), 0, 5)) != @$_POST["p_int_t"]) {
        $RESPONSE->XML .= "<int_t h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Goals . "</int_t>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Filter), 0, 5)) != @$_POST["p_ext_b"]) {
        $RESPONSE->XML .= "<ext_b h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Filter . "</ext_b>\r\n";
    }
    if (!empty($RESPONSE->Tracking) && ($hash = substr(md5($RESPONSE->Tracking), 0, 5)) != @$_POST["p_ext_u"]) {
        $RESPONSE->XML .= "<ext_u h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Tracking . "</ext_u>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->Forwards), 0, 5)) != @$_POST["p_ext_f"]) {
        $RESPONSE->XML .= "<ext_f h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->Forwards . "</ext_f>\r\n";
    }
    if (($hash = substr(md5($RESPONSE->ChatVouchers), 0, 5)) != @$_POST["p_ext_ct"]) {
        $RESPONSE->XML .= "<ext_ct h=\"" . base64_encode($hash) . "\">\r\n" . $RESPONSE->ChatVouchers . "</ext_ct>\r\n";
    }
    if ($RESPONSE->Archive != null) {
        $RESPONSE->XML .= "<ext_c>\r\n" . $RESPONSE->Archive . "</ext_c>\r\n";
    }
    if ($RESPONSE->Resources != null) {
        $RESPONSE->XML .= "<ext_res>\r\n" . $RESPONSE->Resources . "</ext_res>\r\n";
    }
    if ($RESPONSE->Ratings != null) {
        $RESPONSE->XML .= "<ext_r>\r\n" . $RESPONSE->Ratings . "</ext_r>\r\n";
    }
    $RESPONSE->XML .= $RESPONSE->Messages . "\r\n";
    if (strlen($RESPONSE->Authentications) > 0) {
        $RESPONSE->XML .= "<gl_auths>\r\n" . $RESPONSE->Authentications . "\r\n</gl_auths>\r\n";
    }
    if (strlen($RESPONSE->Posts) > 0) {
        $RESPONSE->XML .= "<usr_p>\r\n" . $RESPONSE->Posts . "</usr_p>\r\n";
    }
    if (isset($_POST[POST_INTERN_ACCESSTEST])) {
        $RESPONSE->XML .= "<permission>" . base64_encode(getFolderPermissions()) . "</permission>";
    }
    if (SERVERSETUP || LOGIN || $INTERNAL[CALLER_SYSTEM_ID]->LastActive <= @filemtime(FILE_CONFIG)) {
        $RESPONSE->XML .= getConfig();
    }
    $RESPONSE->XML .= "</listen>";
}
Exemplo n.º 6
0
            $BROWSER->LastActive = time();
            $BROWSER->VisitId = $EXTERNALUSER->VisitId;
            $BROWSER->Save($EXTERNALUSER, @$_GET[GET_TRACK_URL]);
            if (isset($currentURL) && (count($BROWSER->History) == 0 || count($BROWSER->History) > 0 && $BROWSER->History[count($BROWSER->History) - 1]->Url->GetAbsoluteUrl() != $currentURL->Url->GetAbsoluteUrl())) {
                $BROWSER->History[] = $currentURL;
                if (!isnull($BROWSER->History[count($BROWSER->History) - 1]->Referrer->GetAbsoluteUrl())) {
                    if ($BROWSER->SetQuery($BROWSER->History[count($BROWSER->History) - 1]->Referrer->GetAbsoluteUrl())) {
                        $BROWSER->History[count($BROWSER->History) - 1]->Referrer->MarkSearchEngine();
                    }
                }
                $BROWSER->History[count($BROWSER->History) - 1]->Save(CALLER_BROWSER_ID);
                $BROWSER->ForceUpdate();
            } else {
                if (count($BROWSER->History) == 0) {
                    abortTracking(11);
                }
            }
            $BROWSER->LoadWebsitePush();
            $BROWSER->LoadChatRequest();
            $BROWSER->LoadAlerts();
            $TRACKINGSCRIPT .= triggerEvents();
            $TRACKINGSCRIPT .= processActions();
            if (isset($_GET[GET_TRACK_START]) && is_numeric($_GET[GET_TRACK_START])) {
                $TRACKINGSCRIPT .= "lz_tracking_callback(" . getPollFrequency() . ");";
            }
            if (empty($EXTERNALUSER->Host) && $EXTERNALUSER->FirstCall) {
                $EXTERNALUSER->ResolveHost();
            }
        }
    }
}
Exemplo n.º 7
0
        break;
    case 'totalOrdering':
        $currentNodeList = array();
        for ($index = 0; $index < sizeof($graphPlanList); $index++) {
            $xmlSVG .= $graphPlanList[$index]->toSVGTime();
            array_push($currentNodeList, $graphPlanList[$index]->getCurrentTimepointSVG());
        }
        $xmlSVG = processTimepoints($xmlSVG, $currentNodeList);
        break;
    case 'totalPlan':
        $currentNodeList = array();
        for ($index = 0; $index < sizeof($graphPlanList); $index++) {
            array_push($currentNodeList, $graphPlanList[$index]->getCurrentNodeSVG());
            $xmlSVG .= $graphPlanList[$index]->toSVG();
        }
        $xmlSVG = processActions($xmlSVG, $currentNodeList);
        break;
}
//There is a restiction on the size of the data that can be processed
//by graphviz. Due to this we simpilfy some of the node data
function processActions($xmlSVG, $currentNode)
{
    $xmlSVG = preg_replace("/'/", "_", $xmlSVG);
    $xmlSVG = preg_replace("/[\\d]*/", "", $xmlSVG);
    $xmlSVG = preg_replace("/[_]+/", "_", $xmlSVG);
    //Remove any duplicate edges
    $SVGArray = explode(";\n", $xmlSVG);
    $SVGArray = arrays::removeDuplicates($SVGArray);
    $xmlSVG = implode(";\n", $SVGArray);
    //Highlight the goalNode
    $xmlSVG .= "goalNode[color=\"black\",shape=circle,style=filled,fillcolor=\".7 .3 1.0\"] ;\n";
Exemplo n.º 8
0
            exit;
        } catch (Exception $v_exception) {
            Cloudbank::PushError(Book::XtractMessage($v_exception));
        }
        //print "submitted/after create/modifyEvent(): " . $p_variables->get('amount');
    } else {
        $v_isEmpty = !$p_variables->get('date');
        //print "not submitted/before PopulateEventForm():" . $p_variables->get('amount');
        if ($v_isEmpty) {
            setDefaultValues($p_variables);
        } else {
            Book::Singleton()->PopulateEventForm($p_variables);
        }
        //print "not submitted/after PopulateEventForm():" . $p_variables->get('amount');
    }
    return $v_isEdit;
}
function renderView(&$p_form, $p_variables, $p_isEdit)
{
    global $title, $page_output, $notification;
    $title = $p_isEdit ? 'Edit Event' : 'Add Event';
    $page_output->header();
    $notification->notify(array('listeners' => 'status'));
    $p_form->renderActive(new Horde_Form_Renderer(), $p_variables, 'event.php', 'post');
    $page_output->footer();
}
/* main() */
$g_variables =& Horde_Variables::getDefaultVariables();
$g_form = prepareForm($g_variables);
$g_isEdit = processActions($g_variables, $g_form);
renderView($g_form, $g_variables, $g_isEdit);
Exemplo n.º 9
0
     }
     VisitorMonitoring::$Browser->LoadWebsitePush();
     VisitorMonitoring::$Visitor->LoadChatRequests();
     VisitorMonitoring::$Browser->LoadAlerts();
     VisitorMonitoring::$Response .= VisitorMonitoring::TriggerEvents();
 }
 if (!empty($_GET["fbpos"]) && !empty($_GET["fbw"])) {
     $shadow = !empty($_GET["fbshx"]) ? "true," . Communication::ReadParameter("fbshb", 0) . "," . Communication::ReadParameter("fbshx", 0) . "," . Communication::ReadParameter("fbshy", 0) . ",'" . Communication::ReadParameter("fbshc", "#000000") . "'" : "false,0,0,0,''";
     $margin = !empty($_GET["fbmt"]) ? "," . Communication::ReadParameter("fbml", 0) . "," . Communication::ReadParameter("fbmt", 0) . "," . Communication::ReadParameter("fbmr", 0) . "," . Communication::ReadParameter("fbmb", 0) : ",0,0,0,0";
     if (!(!$conline && !empty($_GET["fboo"]))) {
         VisitorMonitoring::$Response .= "lz_tracking_add_floating_button(" . Communication::ReadParameter("fbpos", "10") . "," . $shadow . $margin . "," . Communication::ReadParameter("fbw", 0) . "," . Communication::ReadParameter("fbh", 0) . ");";
     }
 }
 VisitorMonitoring::LoadOverlayChat();
 VisitorMonitoring::$Browser->LoadOverlayBoxes();
 VisitorMonitoring::$Response .= processActions("", Visitor::$OpenChatExternal);
 if (!empty($_GET["cboo"]) && !operatorsAvailable(0, $parameters["exclude"], $parameters["include_group"], $parameters["include_user"], false)) {
     VisitorMonitoring::$Response .= "lz_tracking_remove_buttons();";
 }
 if (empty($_GET["ovlc"]) && !empty(Server::$Configuration->File["gl_hide_inactive"]) && !VisitorMonitoring::$Visitor->IsActivity(VisitorMonitoring::$Browser)) {
     VisitorMonitoring::$Response .= "lz_tracking_stop_tracking(17);";
 } else {
     if (empty($_GET["ovlc"]) && !empty($_SERVER['HTTP_DNT']) && Server::$Configuration->File["gl_dnt"]) {
         VisitorMonitoring::$Browser->Destroy();
         VisitorMonitoring::$Response .= "lz_tracking_stop_tracking(10);";
     } else {
         if (VisitorMonitoring::$IsActive || !empty(Visitor::$IsActiveOverlayChat)) {
             if (IS_FLOOD) {
                 VisitorMonitoring::$Browser->Destroy();
                 VisitorMonitoring::Abort(14);
             }
Exemplo n.º 10
0
     $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) : "";
 if (!isset($BROWSER->History)) {
     $BROWSER->History = array();
 }
 if (count($BROWSER->History) == 0 || count($BROWSER->History) > 0 && $BROWSER->History[count($BROWSER->History) - 1][1] != $url) {
     $BROWSER->History[] = array(time(), $url, isset($_GET[GET_TRACK_SPECIAL_AREA_CODE]) ? base64UrlDecode($_GET[GET_TRACK_SPECIAL_AREA_CODE]) : "", false, base64UrlDecode(@$_GET[GET_EXTERN_DOCUMENT_TITLE]));
 }
 if (count($BROWSER->History) > DATA_URL_STORAGE_AMOUNT) {
     array_shift($BROWSER->History);