From 3bb896e7526c1e92a07bb29195bc4bd5d90bf892 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Fri, 9 Jul 2010 19:08:18 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Piwik=20=E5=88=B0=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=BA=93=E4=B8=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +YUCHENG HU+ git-svn-id: https://svn.code.sf.net/p/hawebs/svn@418 a2543c7e-f6e9-4f8a-8bff-1ffc34733512 --- oss/piwik/trunk/.project | 11 ++++++ oss/piwik/trunk/LICENSE | 2 ++ oss/piwik/trunk/README | 59 ++++++++++++++++++++++++++++++++ oss/piwik/trunk/index.php | 60 +++++++++++++++++++++++++++++++++ oss/piwik/trunk/piwik.js | 15 +++++++++ oss/piwik/trunk/piwik.php | 71 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 218 insertions(+) create mode 100644 oss/piwik/trunk/.project create mode 100644 oss/piwik/trunk/LICENSE create mode 100644 oss/piwik/trunk/README create mode 100644 oss/piwik/trunk/index.php create mode 100644 oss/piwik/trunk/piwik.js create mode 100644 oss/piwik/trunk/piwik.php diff --git a/oss/piwik/trunk/.project b/oss/piwik/trunk/.project new file mode 100644 index 00000000..3b5c0239 --- /dev/null +++ b/oss/piwik/trunk/.project @@ -0,0 +1,11 @@ + + + HAWEBS-piwik + + + + + + + + diff --git a/oss/piwik/trunk/LICENSE b/oss/piwik/trunk/LICENSE new file mode 100644 index 00000000..6d5606bb --- /dev/null +++ b/oss/piwik/trunk/LICENSE @@ -0,0 +1,2 @@ +# GNU/GPL v3 or later +see misc/license.txt diff --git a/oss/piwik/trunk/README b/oss/piwik/trunk/README new file mode 100644 index 00000000..91fadb07 --- /dev/null +++ b/oss/piwik/trunk/README @@ -0,0 +1,59 @@ + Piwik - piwik.org + +Description +=========== +Piwik is an open source web analytics software. +It gives interesting reports on your website visitors, your popular pages, +the search engines keywords they used, the language they speak… and so much more. + +Piwik aims to be an open source alternative to Google Analytics. + +Mission statement +================= +« To create, as a community, the leading international open source + web analytics application, providing access to all functionality + through open components and open APIs. » + +License +======= +Piwik is released under the GPL v3 license, see misc/license.txt + +Requirements +============ +- php 5.1.3 or greater +- mysql 4.1 or greater, mysqli or PDO library must be enabled +- OS / server independant +See http://piwik.org/docs/requirements/ + +Install +======= +- Upload piwik in your webserver +- Point your browser to the directory +- Follow the steps +- Add the given javascript code to your pages +See http://piwik.org/docs/installation/ + +Changelog +========= +See http://piwik.org/changelog/ + +API +=== +All the data is available via APIs for example to get todays keywords in XML +?module=API&method=Referers.getKeywords&idSite=1&period=month&date=today&format=xml + +or yesterday visits information in JSON +?module=API&method=VisitsSummary.get&idSite=1&period=month&date=yesterday&format=json + +Check the full documentation on http://dev.piwik.org/trac/wiki/API/Reference + +Generate fake data +================== +To generate thousands of fake visits to get some data to play with, +you can see the script /misc/generateVisits.php +you can edit the number of visits to generate, the number of actions per visit, and the days + +Contact +======= +http://piwik.org +hello@piwik.org diff --git a/oss/piwik/trunk/index.php b/oss/piwik/trunk/index.php new file mode 100644 index 00000000..59bd9ca7 --- /dev/null +++ b/oss/piwik/trunk/index.php @@ -0,0 +1,60 @@ +init(); + $controller->dispatch(); +} diff --git a/oss/piwik/trunk/piwik.js b/oss/piwik/trunk/piwik.js new file mode 100644 index 00000000..8ba472ed --- /dev/null +++ b/oss/piwik/trunk/piwik.js @@ -0,0 +1,15 @@ +/* + * Piwik - Web Analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: piwik.js 1931 2010-03-18 06:51:50Z matt $ + */ +var Piwik,piwik_log,piwik_track;if(!this.Piwik){Piwik=(function(){var b,f={},d=document,c=navigator,g=screen,l=window,i=l.location.hostname,h=false,o=[];function n(q){return typeof q!=="undefined"}function e(t,s,r,q){if(t.addEventListener){t.addEventListener(s,r,q);return true}else{if(t.attachEvent){return t.attachEvent("on"+s,r)}}t["on"+s]=r}function k(r,u){var q="",t,s;for(t in f){s=f[t][r];if(typeof s==="function"){q+=s(u)}}return q}function m(q){if(n(b)){var r;do{r=new Date()}while(r.getTime()0)&&(af.substr(ae)==ac.substr(1))){return true +}}}return false}function M(ae,ad){var af,ac="(^| )(piwik[_-]"+ad;if(n(ae)){for(af=0;afmain(); + ob_end_flush(); + printDebug($_COOKIE); +}