Lines Matching full:json
3 /* parse the JSON payload */
4 $json = json_decode($_POST['pageview'], true); variable
5 if (!$json) {
7 die("Invalid JSON Data.");
11 $sessionId = preg_replace('/[\x00-\x1F{};\"\']/', "\u{FFFD}", $json['id']) /* clean json parameter…
16 $pageId = preg_replace('/[\x00-\x1F{};\"\']/', "\u{FFFD}", $json['pg'] ?? '');
19 $userName = preg_replace('/[\x00-\x1F\"]/', "\u{FFFD}", $json['u'] ?? '');
22 $loadTime = $json['lt'] ?? '';
29 $referer = preg_replace('/[\x00-\x1F]/', "\u{FFFD}", $json['r'] ?? '');
41 // $json['lg'] ?? '', /* browser language */
42 // $json['scr'] ?? '', /* Screen dimensions */
43 // $json['tz'] ?? '', /* timzone offset */
44 // $json['l'] ?? '', /* Accepted languages list */
45 // $json['url'] ?? '', /* Full request URL */
46 // $json['t'] ?? '' /* Page title */