Sha256: 51e1d76c8a22a23021ceef150d208406b46e80a8c909eeb082c60b0aaa7a2ed6

Contents?: true

Size: 648 Bytes

Versions: 8

Compression:

Stored size: 648 Bytes

Contents

<?php
	require_once("./JSON.php");

	$filename = "./logs/analytics.log";
	$json = new Services_JSON;

	$id = $_REQUEST["id"];
	$items = $json->decode($_REQUEST["data"]);

	if (!$handle = fopen($filename, 'a+')) {
		print '{error: "server error"}';
		exit;
	}

	foreach($items as $i=>$item){
		$item->_analyticsId = $id;
		$item->_analyticsTimeStamp = time();
		$log = $json->encode($item) . "\n";
		fwrite($handle, $log);
	}
	
	fclose($handle);

	$response = "{'eventsRecieved': '" . sizeof($items) . "', 'id': '" . $id . "'}";
	if ($_REQUEST["callback"]){
		print $_REQUEST["callback"] . "(" . $response . ");";
	}else{
		print $response;
	}
	
?>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dojo-pkg-1.132.0 data/dojo-release-1.3.2-src/dojox/analytics/logger/dojoxAnalytics.php
dojo-pkg-1.111.0 data/dojo-release-1.1.1-src/dojox/analytics/logger/dojoxAnalytics.php
dojo-pkg-1.120.0 data/dojo-release-1.2.0-src/dojox/analytics/logger/dojoxAnalytics.php
dojo-pkg-1.121.0 data/dojo-release-1.2.1-src/dojox/analytics/logger/dojoxAnalytics.php
dojo-pkg-1.122.0 data/dojo-release-1.2.2-src/dojox/analytics/logger/dojoxAnalytics.php
dojo-pkg-1.123.0 data/dojo-release-1.2.3-src/dojox/analytics/logger/dojoxAnalytics.php
dojo-pkg-1.130.0 data/dojo-release-1.3.0-src/dojox/analytics/logger/dojoxAnalytics.php
dojo-pkg-1.131.0 data/dojo-release-1.3.1-src/dojox/analytics/logger/dojoxAnalytics.php