本文整理汇总了PHP中Tracking::add_gs_record方法的典型用法代码示例。如果您正苦于以下问题:PHP Tracking::add_gs_record方法的具体用法?PHP Tracking::add_gs_record怎么用?PHP Tracking::add_gs_record使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tracking
的用法示例。
在下文中一共展示了Tracking::add_gs_record方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
<?php
include_once dirname(__FILE__) . "/tracking.class.php";
include_once dirname(__FILE__) . "/config.php";
Tracking::update_session($_GET["ch"], $_GET);
Tracking::add_gs_record($_GET["ch"]);
示例2: clear_old
static function clear_old()
{
foreach ($_SESSION["visits"] as $key => $value) {
if (time() - $value["time"] > TIMEOUT_SECONDS) {
//Tracking::add_db_record ($key);
Tracking::add_gs_record($key);
}
}
}
示例3: dirname
<?php
include_once dirname(__FILE__) . "/tracking.class.php";
include_once dirname(__FILE__) . "/config.php";
Tracking::clear_old();
$cache_hash = Tracking::caching_hash();
$uid = Tracking::get_uid($_SERVER);
$_SESSION["visits"][$cache_hash] = array("time" => time(), "data" => Tracking::prepare_session($_SERVER, $cache_hash, $uid));
Tracking::add_gs_record($cache_hash);
header('Content-type:image/gif');
echo join(array(chr(0x47), chr(0x49), chr(0x46), chr(0x38), chr(0x39), chr(0x61), chr(0x1), chr(0x0), chr(0x1), chr(0x0), chr(0x80), chr(0xff), chr(0x0), chr(0xff), chr(0xff), chr(0xff), chr(0x0), chr(0x0), chr(0x0), chr(0x2c), chr(0x0), chr(0x0), chr(0x0), chr(0x0), chr(0x1), chr(0x0), chr(0x1), chr(0x0), chr(0x0), chr(0x2), chr(0x2), chr(0x44), chr(0x1), chr(0x0), chr(0x3b)));