本文整理汇总了PHP中Tracking::parse_location方法的典型用法代码示例。如果您正苦于以下问题:PHP Tracking::parse_location方法的具体用法?PHP Tracking::parse_location怎么用?PHP Tracking::parse_location使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tracking
的用法示例。
在下文中一共展示了Tracking::parse_location方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: js_update_records
static function js_update_records($get)
{
$db = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
mysql_select_db(DB_DATABASE, $db);
mysql_query('SET NAMES utf8');
$page_params = Tracking::parse_location($get["url"]);
$jqry = '
UPDATE
tracking_visits
SET
tracking_width="' . (int) $get['scr_width'] . '",
tracking_height="' . (int) $get['scr_height'] . '",
tracking_viewport_size="' . mysql_real_escape_string($get['viewport_size']) . '",
tracking_flash="' . mysql_real_escape_string($get['flash']) . '",
tracking_java="' . mysql_real_escape_string($get['java']) . '",
tracking_title="' . mysql_real_escape_string($get['title']) . '",
tracking_description="' . mysql_real_escape_string($get['description']) . '",
tracking_encoding="' . mysql_real_escape_string($get['encoding']) . '",
tracking_user_language="' . mysql_real_escape_string($get['user_language']) . '",
tracking_caching=tracking_caching-' . (int) $get['ch'] . ',
tracking_utm_source="' . mysql_real_escape_string($page_params['utm_source']) . '",
tracking_utm_medium="' . mysql_real_escape_string($page_params['utm_medium']) . '",
tracking_utm_campaign="' . mysql_real_escape_string($page_params['utm_campaign']) . '",
tracking_utm_content="' . mysql_real_escape_string($page_params['utm_content']) . '",
tracking_utm_term="' . mysql_real_escape_string($page_params['utm_term']) . '",
tracking_utm_id="' . mysql_real_escape_string($page_params['utm_id']) . '",
tracking_gclid="' . mysql_real_escape_string($page_params['gclid']) . '",
tracking_url="' . mysql_real_escape_string($get['url']) . '"
WHERE
tracking_id="' . (int) $get['uid'] . '"
';
mysql_query($jqry);
file_put_contents("out", $jqry);
}