[Phphtmllib-devel] SF.net SVN: phphtmllib:[3537] trunk/open2300/lib/modules/api/ AviationWeather.in
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2010-11-19 23:53:49
|
Revision: 3537 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3537&view=rev Author: hemna Date: 2010-11-19 23:53:42 +0000 (Fri, 19 Nov 2010) Log Message: ----------- tracker crap Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-07-14 19:25:38 UTC (rev 3536) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-11-19 23:53:42 UTC (rev 3537) @@ -40,6 +40,16 @@ //$this->timer = new Timer(); $this->log = new Log(); $this->log->add_writer(FileLogWriter::factory(realpath($GLOBALS["path_base"])."/logs/aviation_weather.log")); + + PiwikTracker::$URL = 'http://wx.hemna.com/piwik/'; + $this->tracker = new PiwikTracker(1); + $this->tracker->setUrl($_SERVER["SCRIPT_URI"]); + $this->tracker->setBrowserLanguage($_SERVER["HTTP_ACCEPT_LANGUAGE"]); + $this->tracker->setUserAgent($_SERVER["HTTP_USER_AGENT"]); + $this->tracker->setIp($_SERVER["REMOTE_ADDR"]); + + $this->tracker->setCustomData(array("airports" => $this->airports)); + $this->tracker->doTrackPageView('AviationWeather'); } public function build_object() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |