Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattpiwik <matthieu.aubry@gmail.com>2008-01-14 07:47:58 +0300
committermattpiwik <matthieu.aubry@gmail.com>2008-01-14 07:47:58 +0300
commit445186b210188f8d9e78e812ffdb3785bbd1a758 (patch)
tree03ef49e74838c466b3c67698dd8453ba5260c101
parente61efcc9938ab76239d9319b30376dcef22cc8fb (diff)
Added headers
git-svn-id: http://dev.piwik.org/svn/trunk@164 59fd770c-687e-43c8-a1e3-f5a4ff64c105
-rwxr-xr-xindex.php9
-rwxr-xr-xmodules/Access.php10
-rw-r--r--modules/Archive.php10
-rw-r--r--modules/ArchiveProcessing.php10
-rw-r--r--modules/ArchiveProcessing/Period.php10
-rw-r--r--modules/ArchiveProcessing/Record.php10
-rw-r--r--modules/Auth.php10
-rw-r--r--modules/Common.php10
-rwxr-xr-xmodules/Config.php10
-rw-r--r--modules/Controller.php10
-rw-r--r--modules/Cookie.php10
-rw-r--r--modules/DataFiles/Browsers.php10
-rw-r--r--modules/DataFiles/Countries.php10
-rw-r--r--modules/DataFiles/OS.php10
-rw-r--r--modules/DataFiles/SearchEngines.php10
-rw-r--r--modules/DataTable.php10
-rw-r--r--modules/DataTable/Filter.php10
-rw-r--r--modules/DataTable/Filter/AddConstantDetail.php10
-rw-r--r--modules/DataTable/Filter/ColumnCallback.php10
-rw-r--r--modules/DataTable/Filter/ColumnCallbackAddDetail.php10
-rw-r--r--modules/DataTable/Filter/ColumnCallbackReplace.php10
-rw-r--r--modules/DataTable/Filter/DetailCallbackAddDetail.php10
-rw-r--r--modules/DataTable/Filter/Empty.php10
-rw-r--r--modules/DataTable/Filter/ExcludeLowPopulation.php10
-rw-r--r--modules/DataTable/Filter/Limit.php10
-rw-r--r--modules/DataTable/Filter/Pattern.php10
-rw-r--r--modules/DataTable/Filter/PatternRecursive.php10
-rw-r--r--modules/DataTable/Filter/ReplaceColumnNames.php10
-rw-r--r--modules/DataTable/Filter/Sort.php10
-rw-r--r--modules/DataTable/Manager.php10
-rw-r--r--modules/DataTable/Renderer.php10
-rw-r--r--modules/DataTable/Renderer/Console.php10
-rw-r--r--modules/DataTable/Renderer/Csv.php11
-rw-r--r--modules/DataTable/Renderer/Html.php11
-rw-r--r--modules/DataTable/Renderer/Json.php11
-rw-r--r--modules/DataTable/Renderer/Php.php11
-rw-r--r--modules/DataTable/Renderer/Xml.php11
-rw-r--r--modules/DataTable/Row.php10
-rw-r--r--modules/DataTable/Row/DataTableSummary.php10
-rw-r--r--modules/DataTable/Simple.php10
-rw-r--r--modules/Date.php10
-rwxr-xr-xmodules/ErrorHandler.php10
-rw-r--r--modules/ExceptionHandler.php10
-rw-r--r--modules/Form.php10
-rw-r--r--modules/FrontController.php10
-rwxr-xr-xmodules/Log.php10
-rw-r--r--modules/Log/APICall.php10
-rw-r--r--modules/Log/Error.php10
-rw-r--r--modules/Log/Exception.php11
-rw-r--r--modules/Log/Message.php11
-rw-r--r--modules/LogStats.php10
-rw-r--r--modules/LogStats/Action.php10
-rw-r--r--modules/LogStats/Config.php11
-rw-r--r--modules/LogStats/Db.php9
-rw-r--r--modules/LogStats/Generator.php9
-rw-r--r--modules/LogStats/Visit.php10
-rw-r--r--modules/Period.php10
-rwxr-xr-xmodules/Piwik.php10
-rw-r--r--modules/Plugin.php10
-rw-r--r--modules/PluginsManager.php10
-rw-r--r--modules/Site.php10
-rw-r--r--modules/SmartyPlugins/function.url.php10
-rw-r--r--modules/SmartyPlugins/modifier.sumtime.php10
-rw-r--r--modules/TablePartitioning.php10
-rw-r--r--modules/Timer.php10
-rw-r--r--modules/Translate.php10
-rw-r--r--modules/Url.php10
-rw-r--r--modules/View.php12
-rw-r--r--modules/ViewDataTable.php10
-rw-r--r--modules/ViewDataTable/Cloud.php10
-rw-r--r--modules/ViewDataTable/GenerateGraphData.php7
-rw-r--r--modules/ViewDataTable/Graph.php7
-rw-r--r--modules/ViewDataTable/Html.php7
-rw-r--r--modules/Visualization/Chart.php10
-rw-r--r--modules/Visualization/ChartPie.php9
-rw-r--r--modules/Visualization/ChartVerticalBar.php9
-rw-r--r--modules/Visualization/Cloud.php9
-rw-r--r--modules/Visualization/OpenFlashChart.php7
-rw-r--r--modules/iView.php5
-rw-r--r--piwik.php10
-rw-r--r--plugins/API/Controller.php10
-rw-r--r--plugins/Actions.php9
-rw-r--r--plugins/Actions/API.php10
-rw-r--r--plugins/ExamplePlugin.php9
-rw-r--r--plugins/ExamplePlugin/API.php10
-rw-r--r--plugins/ExamplePlugin/Controller.php10
-rw-r--r--plugins/Home/Controller.php10
-rw-r--r--plugins/Home/Controller_OldAPICalls.php443
-rw-r--r--plugins/Installation.php11
-rw-r--r--plugins/Installation/Controller.php10
-rw-r--r--plugins/Installation/FormDatabaseSetup.php10
-rw-r--r--plugins/Installation/FormFirstWebsiteSetup.php10
-rw-r--r--plugins/Installation/FormGeneralSetup.php10
-rw-r--r--plugins/Installation/View.php10
-rw-r--r--plugins/Login.php9
-rw-r--r--plugins/Login/Controller.php10
-rw-r--r--plugins/Login/Form.php10
-rw-r--r--plugins/Logout/Controller.php10
-rw-r--r--plugins/Openads.php9
-rw-r--r--plugins/Openads/Controller.php10
-rw-r--r--plugins/Provider.php9
-rw-r--r--plugins/Provider/API.php10
-rw-r--r--plugins/Referers.php9
-rw-r--r--plugins/Referers/API.php10
-rw-r--r--plugins/SitesManager.php9
-rwxr-xr-xplugins/SitesManager/API.php10
-rw-r--r--plugins/SitesManager/Controller.php10
-rw-r--r--plugins/UserCountry.php9
-rw-r--r--plugins/UserCountry/API.php10
-rw-r--r--plugins/UserSettings.php9
-rw-r--r--plugins/UserSettings/API.php10
-rw-r--r--plugins/UsersManager.php9
-rwxr-xr-xplugins/UsersManager/API.php10
-rw-r--r--plugins/UsersManager/Controller.php10
-rw-r--r--plugins/VisitFrequency.php9
-rw-r--r--plugins/VisitFrequency/API.php10
-rw-r--r--plugins/VisitTime.php9
-rw-r--r--plugins/VisitTime/API.php9
-rw-r--r--plugins/VisitorInterest.php9
-rw-r--r--plugins/VisitorInterest/API.php11
-rw-r--r--plugins/VisitsSummary.php9
-rw-r--r--plugins/VisitsSummary/API.php10
122 files changed, 1054 insertions, 573 deletions
diff --git a/index.php b/index.php
index ccf1f9b65c..6373e7ba19 100755
--- a/index.php
+++ b/index.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
/**
* PHP Configuration init
*/
diff --git a/modules/Access.php b/modules/Access.php
index 0ee747580c..eeef448a24 100755
--- a/modules/Access.php
+++ b/modules/Access.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Class to handle User Access.
* In Piwik there are mainly 4 access levels
diff --git a/modules/Archive.php b/modules/Archive.php
index 6faad7de74..5064529717 100644
--- a/modules/Archive.php
+++ b/modules/Archive.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Architecture
* - *ArchiveProcessing* entity : handle all the computation on an archive / create & delete archive
diff --git a/modules/ArchiveProcessing.php b/modules/ArchiveProcessing.php
index aff91bdc9a..b3dd29fc46 100644
--- a/modules/ArchiveProcessing.php
+++ b/modules/ArchiveProcessing.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* The ArchiveProcessing module is a module that reads the Piwik logs from the DB and
* compute all the reports, which are then stored in the database.
diff --git a/modules/ArchiveProcessing/Period.php b/modules/ArchiveProcessing/Period.php
index 850b4649e5..2c12506983 100644
--- a/modules/ArchiveProcessing/Period.php
+++ b/modules/ArchiveProcessing/Period.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* @package Piwik_ArchiveProcessing
*/
diff --git a/modules/ArchiveProcessing/Record.php b/modules/ArchiveProcessing/Record.php
index 7e95f6b785..4d1bb7db74 100644
--- a/modules/ArchiveProcessing/Record.php
+++ b/modules/ArchiveProcessing/Record.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* A Record is a tuple (name, value) to be saved in the database.
* At its creation, the record registers itself to the RecordManager.
diff --git a/modules/Auth.php b/modules/Auth.php
index c94741a01c..d575ddfc61 100644
--- a/modules/Auth.php
+++ b/modules/Auth.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik
diff --git a/modules/Common.php b/modules/Common.php
index c26073dff0..f28b2b3741 100644
--- a/modules/Common.php
+++ b/modules/Common.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Static class providing functions used by both the CORE of Piwik and the
* visitor logging engine.
diff --git a/modules/Config.php b/modules/Config.php
index 32ebd8ed36..31c76e69aa 100755
--- a/modules/Config.php
+++ b/modules/Config.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik
diff --git a/modules/Controller.php b/modules/Controller.php
index 1e70e3f472..834ee83de8 100644
--- a/modules/Controller.php
+++ b/modules/Controller.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
abstract class Piwik_Controller
{
function getDefaultAction()
diff --git a/modules/Cookie.php b/modules/Cookie.php
index 09f16e4c2a..1b6ea351e1 100644
--- a/modules/Cookie.php
+++ b/modules/Cookie.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Simple class to handle the cookies.
diff --git a/modules/DataFiles/Browsers.php b/modules/DataFiles/Browsers.php
index 53bdb89ec5..cc2820025f 100644
--- a/modules/DataFiles/Browsers.php
+++ b/modules/DataFiles/Browsers.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Browser list
*
diff --git a/modules/DataFiles/Countries.php b/modules/DataFiles/Countries.php
index 38a0b48067..f2fe9ea3a8 100644
--- a/modules/DataFiles/Countries.php
+++ b/modules/DataFiles/Countries.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Country code and continent database
*
diff --git a/modules/DataFiles/OS.php b/modules/DataFiles/OS.php
index b68eafb8cb..cbf1f6e563 100644
--- a/modules/DataFiles/OS.php
+++ b/modules/DataFiles/OS.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Operating systems database
*
diff --git a/modules/DataFiles/SearchEngines.php b/modules/DataFiles/SearchEngines.php
index f8f599d556..72ce063eb3 100644
--- a/modules/DataFiles/SearchEngines.php
+++ b/modules/DataFiles/SearchEngines.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Search Engine database
*
diff --git a/modules/DataTable.php b/modules/DataTable.php
index 9bc28c01ec..5e2632f776 100644
--- a/modules/DataTable.php
+++ b/modules/DataTable.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* Initial Specification
diff --git a/modules/DataTable/Filter.php b/modules/DataTable/Filter.php
index 3b6d421de3..1355141258 100644
--- a/modules/DataTable/Filter.php
+++ b/modules/DataTable/Filter.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* A filter is applied instantly to a given DataTable and can
* - remove rows
diff --git a/modules/DataTable/Filter/AddConstantDetail.php b/modules/DataTable/Filter/AddConstantDetail.php
index 53b3d744e7..6c36ae662c 100644
--- a/modules/DataTable/Filter/AddConstantDetail.php
+++ b/modules/DataTable/Filter/AddConstantDetail.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Add a new detail to the table based on the value resulting
* from a callback function with the parameter being another detail's value
diff --git a/modules/DataTable/Filter/ColumnCallback.php b/modules/DataTable/Filter/ColumnCallback.php
index f01660d38b..4c0b54cf0a 100644
--- a/modules/DataTable/Filter/ColumnCallback.php
+++ b/modules/DataTable/Filter/ColumnCallback.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Delete all rows of when a given function returns false for a given column.
*
diff --git a/modules/DataTable/Filter/ColumnCallbackAddDetail.php b/modules/DataTable/Filter/ColumnCallbackAddDetail.php
index 742892b199..70db6c7039 100644
--- a/modules/DataTable/Filter/ColumnCallbackAddDetail.php
+++ b/modules/DataTable/Filter/ColumnCallbackAddDetail.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Add a new column to the table based on the value resulting
diff --git a/modules/DataTable/Filter/ColumnCallbackReplace.php b/modules/DataTable/Filter/ColumnCallbackReplace.php
index 76f0c0cc81..7bdea900f9 100644
--- a/modules/DataTable/Filter/ColumnCallbackReplace.php
+++ b/modules/DataTable/Filter/ColumnCallbackReplace.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Replace a column value with a new value resulting
* from the function called with the column's value
diff --git a/modules/DataTable/Filter/DetailCallbackAddDetail.php b/modules/DataTable/Filter/DetailCallbackAddDetail.php
index 9c6b50fb6e..81666d4a76 100644
--- a/modules/DataTable/Filter/DetailCallbackAddDetail.php
+++ b/modules/DataTable/Filter/DetailCallbackAddDetail.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Add a new detail to the table based on the value resulting
* from a callback function with the parameter being another detail's value
diff --git a/modules/DataTable/Filter/Empty.php b/modules/DataTable/Filter/Empty.php
index a7462f11ca..c79f9719ae 100644
--- a/modules/DataTable/Filter/Empty.php
+++ b/modules/DataTable/Filter/Empty.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Empty filter template.
*
diff --git a/modules/DataTable/Filter/ExcludeLowPopulation.php b/modules/DataTable/Filter/ExcludeLowPopulation.php
index efa63fcde7..a73b550443 100644
--- a/modules/DataTable/Filter/ExcludeLowPopulation.php
+++ b/modules/DataTable/Filter/ExcludeLowPopulation.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Delete all rows that have a $columnToFilter value less than the $minimumValue
* For example we delete from the countries report table all countries that have less than 3 visits.
diff --git a/modules/DataTable/Filter/Limit.php b/modules/DataTable/Filter/Limit.php
index e3445fb162..dd6261df6a 100644
--- a/modules/DataTable/Filter/Limit.php
+++ b/modules/DataTable/Filter/Limit.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Delete all rows from the table that are not in the offset,offset+limit range
*
diff --git a/modules/DataTable/Filter/Pattern.php b/modules/DataTable/Filter/Pattern.php
index 72c5f44148..ea61e47b10 100644
--- a/modules/DataTable/Filter/Pattern.php
+++ b/modules/DataTable/Filter/Pattern.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Delete all rows for which the given $columnToFilter do not contain the $patternToSearch
* This filter is to be used on columns containing strings.
diff --git a/modules/DataTable/Filter/PatternRecursive.php b/modules/DataTable/Filter/PatternRecursive.php
index a7fbd5ae70..15fd7a245d 100644
--- a/modules/DataTable/Filter/PatternRecursive.php
+++ b/modules/DataTable/Filter/PatternRecursive.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik_DataTable
diff --git a/modules/DataTable/Filter/ReplaceColumnNames.php b/modules/DataTable/Filter/ReplaceColumnNames.php
index 8ae60e50bb..236268f987 100644
--- a/modules/DataTable/Filter/ReplaceColumnNames.php
+++ b/modules/DataTable/Filter/ReplaceColumnNames.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* This filter replaces column names using a mapping table that maps from the old name to the new name.
*
diff --git a/modules/DataTable/Filter/Sort.php b/modules/DataTable/Filter/Sort.php
index 760686e974..63c4eb61e2 100644
--- a/modules/DataTable/Filter/Sort.php
+++ b/modules/DataTable/Filter/Sort.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Sort the DataTable based on the value of column $columnToSort ordered by $order.
*
diff --git a/modules/DataTable/Manager.php b/modules/DataTable/Manager.php
index 9d5cf4ba53..db86979daa 100644
--- a/modules/DataTable/Manager.php
+++ b/modules/DataTable/Manager.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* The DataTable_Manager registers all the instanciated DataTable and provides an
* easy way to access them.
diff --git a/modules/DataTable/Renderer.php b/modules/DataTable/Renderer.php
index 1d61d5270f..a1ef210284 100644
--- a/modules/DataTable/Renderer.php
+++ b/modules/DataTable/Renderer.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* A DataTable Renderer can produce an output given a DataTable object.
* All new Renderers must be copied in DataTable/Renderer and added to the factory() method.
diff --git a/modules/DataTable/Renderer/Console.php b/modules/DataTable/Renderer/Console.php
index f370776561..8a3c8d1a3c 100644
--- a/modules/DataTable/Renderer/Console.php
+++ b/modules/DataTable/Renderer/Console.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Simple output
*
diff --git a/modules/DataTable/Renderer/Csv.php b/modules/DataTable/Renderer/Csv.php
index 4e7a7e4e9c..fda6cb3384 100644
--- a/modules/DataTable/Renderer/Csv.php
+++ b/modules/DataTable/Renderer/Csv.php
@@ -1,5 +1,12 @@
-<?php
-
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* CSV export
*
diff --git a/modules/DataTable/Renderer/Html.php b/modules/DataTable/Renderer/Html.php
index a7f46954ea..27e7f6e409 100644
--- a/modules/DataTable/Renderer/Html.php
+++ b/modules/DataTable/Renderer/Html.php
@@ -1,5 +1,12 @@
-<?php
-
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Simple HTML output
*
diff --git a/modules/DataTable/Renderer/Json.php b/modules/DataTable/Renderer/Json.php
index d3a0d92ba9..df89b8166e 100644
--- a/modules/DataTable/Renderer/Json.php
+++ b/modules/DataTable/Renderer/Json.php
@@ -1,5 +1,12 @@
-<?php
-
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* JSON export. Using the php 5.2 feature json_encode
*
diff --git a/modules/DataTable/Renderer/Php.php b/modules/DataTable/Renderer/Php.php
index 90540b72b8..1f49770ba5 100644
--- a/modules/DataTable/Renderer/Php.php
+++ b/modules/DataTable/Renderer/Php.php
@@ -1,5 +1,12 @@
-<?php
-
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Returns the equivalent PHP array of the DataTable.
* You can specify in the constructor if you want the serialized version.
diff --git a/modules/DataTable/Renderer/Xml.php b/modules/DataTable/Renderer/Xml.php
index 1c1e680a0f..aa88c9688f 100644
--- a/modules/DataTable/Renderer/Xml.php
+++ b/modules/DataTable/Renderer/Xml.php
@@ -1,5 +1,12 @@
-<?php
-
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* XML export. Using the excellent Pear::XML_Serializer.
* We had to fix the PEAR library so that it works under PHP5 STRICT mode.
diff --git a/modules/DataTable/Row.php b/modules/DataTable/Row.php
index f01ed394d3..370faf43f3 100644
--- a/modules/DataTable/Row.php
+++ b/modules/DataTable/Row.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* A DataTable is composed by rows.
* A row is composed by
diff --git a/modules/DataTable/Row/DataTableSummary.php b/modules/DataTable/Row/DataTableSummary.php
index 0dceb67c8f..36a7f7092f 100644
--- a/modules/DataTable/Row/DataTableSummary.php
+++ b/modules/DataTable/Row/DataTableSummary.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* This class creates a row from a given DataTable.
* The row contains
diff --git a/modules/DataTable/Simple.php b/modules/DataTable/Simple.php
index d423a3920f..8f570d592c 100644
--- a/modules/DataTable/Simple.php
+++ b/modules/DataTable/Simple.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* The DataTable_Simple is used to provide a very simple way to create simple DataGrid.
*
diff --git a/modules/Date.php b/modules/Date.php
index 844c8ee855..bb3590a4a1 100644
--- a/modules/Date.php
+++ b/modules/Date.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik
diff --git a/modules/ErrorHandler.php b/modules/ErrorHandler.php
index 0cd836bf9c..e6839eca21 100755
--- a/modules/ErrorHandler.php
+++ b/modules/ErrorHandler.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik
diff --git a/modules/ExceptionHandler.php b/modules/ExceptionHandler.php
index 5161cd5816..46709713f5 100644
--- a/modules/ExceptionHandler.php
+++ b/modules/ExceptionHandler.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik
diff --git a/modules/Form.php b/modules/Form.php
index 48bd813767..111aab7dc6 100644
--- a/modules/Form.php
+++ b/modules/Form.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "HTML/QuickForm.php";
require_once "HTML/QuickForm/Renderer/ArraySmarty.php";
diff --git a/modules/FrontController.php b/modules/FrontController.php
index 86dd99a506..211d7bc20f 100644
--- a/modules/FrontController.php
+++ b/modules/FrontController.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Zend classes
diff --git a/modules/Log.php b/modules/Log.php
index 7e66a45112..f7f3afef2e 100755
--- a/modules/Log.php
+++ b/modules/Log.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
*
diff --git a/modules/Log/APICall.php b/modules/Log/APICall.php
index 05799ea3c4..e87355ae35 100644
--- a/modules/Log/APICall.php
+++ b/modules/Log/APICall.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Class used to log all the API Calls information (class / method / parameters / returned value / time spent)
*
diff --git a/modules/Log/Error.php b/modules/Log/Error.php
index 874ccc882d..02392f2a11 100644
--- a/modules/Log/Error.php
+++ b/modules/Log/Error.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Class used to log an error event.
*
diff --git a/modules/Log/Exception.php b/modules/Log/Exception.php
index 1bd1b501b8..bb71d66c1d 100644
--- a/modules/Log/Exception.php
+++ b/modules/Log/Exception.php
@@ -1,5 +1,12 @@
-<?php
-
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Class used to log an exception event.
*
diff --git a/modules/Log/Message.php b/modules/Log/Message.php
index 78b84196fb..fad546c668 100644
--- a/modules/Log/Message.php
+++ b/modules/Log/Message.php
@@ -1,5 +1,12 @@
-<?php
-
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Class used to log a standard message event.
*
diff --git a/modules/LogStats.php b/modules/LogStats.php
index 5f3f60eb34..9e68ba3462 100644
--- a/modules/LogStats.php
+++ b/modules/LogStats.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* To maximise the performance of the logging module, we use different techniques.
*
diff --git a/modules/LogStats/Action.php b/modules/LogStats/Action.php
index 7a0fb7be29..4fdcc296b0 100644
--- a/modules/LogStats/Action.php
+++ b/modules/LogStats/Action.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Handles an action by the visitor.
diff --git a/modules/LogStats/Config.php b/modules/LogStats/Config.php
index 1319a342cf..4a1270cc8e 100644
--- a/modules/LogStats/Config.php
+++ b/modules/LogStats/Config.php
@@ -1,5 +1,12 @@
-<?php
-
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Simple class to access the configuration file
*
diff --git a/modules/LogStats/Db.php b/modules/LogStats/Db.php
index 2848b84d7e..2f671a3749 100644
--- a/modules/LogStats/Db.php
+++ b/modules/LogStats/Db.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
/**
* Simple database PDO wrapper.
diff --git a/modules/LogStats/Generator.php b/modules/LogStats/Generator.php
index 9d11690f97..4c0a10994b 100644
--- a/modules/LogStats/Generator.php
+++ b/modules/LogStats/Generator.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
/**
* Class used to generate fake visits.
diff --git a/modules/LogStats/Visit.php b/modules/LogStats/Visit.php
index 2696c621ba..da541ddf12 100644
--- a/modules/LogStats/Visit.php
+++ b/modules/LogStats/Visit.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Class used to handle a Visit.
* A visit is either NEW or KNOWN.
diff --git a/modules/Period.php b/modules/Period.php
index de4d21ac24..3cdd7f918a 100644
--- a/modules/Period.php
+++ b/modules/Period.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Creating a new Piwik_Period
*
diff --git a/modules/Piwik.php b/modules/Piwik.php
index bf6caf36cf..aa95424be7 100755
--- a/modules/Piwik.php
+++ b/modules/Piwik.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik
diff --git a/modules/Plugin.php b/modules/Plugin.php
index 17706cf56a..2ac36dc37d 100644
--- a/modules/Plugin.php
+++ b/modules/Plugin.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Abstract class to define a Piwik_Plugin.
diff --git a/modules/PluginsManager.php b/modules/PluginsManager.php
index e134af977b..fa41d73442 100644
--- a/modules/PluginsManager.php
+++ b/modules/PluginsManager.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Plugin specification for a statistics logging plugin
diff --git a/modules/Site.php b/modules/Site.php
index 9ef36c7dc9..306488440f 100644
--- a/modules/Site.php
+++ b/modules/Site.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik
diff --git a/modules/SmartyPlugins/function.url.php b/modules/SmartyPlugins/function.url.php
index a8c345239a..d8363d4c06 100644
--- a/modules/SmartyPlugins/function.url.php
+++ b/modules/SmartyPlugins/function.url.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Smarty plugin
* @package Smarty
diff --git a/modules/SmartyPlugins/modifier.sumtime.php b/modules/SmartyPlugins/modifier.sumtime.php
index 05c6fdd3af..c15986dd3c 100644
--- a/modules/SmartyPlugins/modifier.sumtime.php
+++ b/modules/SmartyPlugins/modifier.sumtime.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Smarty plugin
* @package Smarty
diff --git a/modules/TablePartitioning.php b/modules/TablePartitioning.php
index 5234290d1c..d019a3daa6 100644
--- a/modules/TablePartitioning.php
+++ b/modules/TablePartitioning.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* NB: When a new table is partitionned using this class, we have to update the method
diff --git a/modules/Timer.php b/modules/Timer.php
index 27b9d4c80a..39a0c3177e 100644
--- a/modules/Timer.php
+++ b/modules/Timer.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik
diff --git a/modules/Translate.php b/modules/Translate.php
index 983a9d85d9..fca5c08825 100644
--- a/modules/Translate.php
+++ b/modules/Translate.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik
diff --git a/modules/Url.php b/modules/Url.php
index 2cdcf6771d..bd7869439a 100644
--- a/modules/Url.php
+++ b/modules/Url.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
class Piwik_Url
{
static function getArrayFromCurrentQueryString()
diff --git a/modules/View.php b/modules/View.php
index 180ba29fac..d8b6ee2ee6 100644
--- a/modules/View.php
+++ b/modules/View.php
@@ -1,8 +1,16 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once 'Smarty/Smarty.class.php';
require_once "iView.php";
-class Piwik_View implements iView
+class Piwik_View implements Piwik_iView
{
private $template = '';
private $smarty = false;
diff --git a/modules/ViewDataTable.php b/modules/ViewDataTable.php
index fa6b5c67d0..d813c096a0 100644
--- a/modules/ViewDataTable.php
+++ b/modules/ViewDataTable.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
abstract class Piwik_ViewDataTable
{
protected $dataTableTemplate = null;
diff --git a/modules/ViewDataTable/Cloud.php b/modules/ViewDataTable/Cloud.php
index bcd28d749a..db753ad00a 100644
--- a/modules/ViewDataTable/Cloud.php
+++ b/modules/ViewDataTable/Cloud.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "Visualization/Cloud.php";
class Piwik_ViewDataTable_Cloud extends Piwik_ViewDataTable
{
diff --git a/modules/ViewDataTable/GenerateGraphData.php b/modules/ViewDataTable/GenerateGraphData.php
index 9698ec5560..ed63da1f37 100644
--- a/modules/ViewDataTable/GenerateGraphData.php
+++ b/modules/ViewDataTable/GenerateGraphData.php
@@ -1,4 +1,11 @@
<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
abstract class Piwik_ViewDataTable_GenerateGraphData extends Piwik_ViewDataTable
{
diff --git a/modules/ViewDataTable/Graph.php b/modules/ViewDataTable/Graph.php
index 36d4409716..64fdd243ed 100644
--- a/modules/ViewDataTable/Graph.php
+++ b/modules/ViewDataTable/Graph.php
@@ -1,4 +1,11 @@
<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
abstract class Piwik_ViewDataTable_Graph extends Piwik_ViewDataTable
{
diff --git a/modules/ViewDataTable/Html.php b/modules/ViewDataTable/Html.php
index c590ef87e2..540f4aea60 100644
--- a/modules/ViewDataTable/Html.php
+++ b/modules/ViewDataTable/Html.php
@@ -1,4 +1,11 @@
<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_ViewDataTable_Html extends Piwik_ViewDataTable
{
diff --git a/modules/Visualization/Chart.php b/modules/Visualization/Chart.php
index f07218298f..67d491e2e4 100644
--- a/modules/Visualization/Chart.php
+++ b/modules/Visualization/Chart.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "Visualization/OpenFlashChart.php";
abstract class Piwik_Visualization_Chart extends Piwik_Visualization_OpenFlashChart
{
diff --git a/modules/Visualization/ChartPie.php b/modules/Visualization/ChartPie.php
index 5c6f0fc676..6a19345507 100644
--- a/modules/Visualization/ChartPie.php
+++ b/modules/Visualization/ChartPie.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
require_once "Visualization/Chart.php";
class Piwik_Visualization_ChartPie extends Piwik_Visualization_Chart
{
diff --git a/modules/Visualization/ChartVerticalBar.php b/modules/Visualization/ChartVerticalBar.php
index 4bfc23c5e7..52701a5cbf 100644
--- a/modules/Visualization/ChartVerticalBar.php
+++ b/modules/Visualization/ChartVerticalBar.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
require_once "Visualization/Chart.php";
class Piwik_Visualization_ChartVerticalBar extends Piwik_Visualization_Chart
{
diff --git a/modules/Visualization/Cloud.php b/modules/Visualization/Cloud.php
index efbed67cb0..fb1deeda79 100644
--- a/modules/Visualization/Cloud.php
+++ b/modules/Visualization/Cloud.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
// inspired from Derek Harvey (www.derekharvey.co.uk)
class Piwik_Visualization_Cloud
{
diff --git a/modules/Visualization/OpenFlashChart.php b/modules/Visualization/OpenFlashChart.php
index b3b61a9693..54c9da1e6f 100644
--- a/modules/Visualization/OpenFlashChart.php
+++ b/modules/Visualization/OpenFlashChart.php
@@ -1,4 +1,11 @@
<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
require_once "iView.php";
// Original class provided by Open Flash Chart
abstract class Piwik_Visualization_OpenFlashChart implements iView
diff --git a/modules/iView.php b/modules/iView.php
deleted file mode 100644
index de5cd19411..0000000000
--- a/modules/iView.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-interface iView
-{
- function render();
-} \ No newline at end of file
diff --git a/piwik.php b/piwik.php
index 561e147b07..d0ae53d7c5 100644
--- a/piwik.php
+++ b/piwik.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
* Misc Thoughts about optimization
*
diff --git a/plugins/API/Controller.php b/plugins/API/Controller.php
index 27207f0ca0..43301365fd 100644
--- a/plugins/API/Controller.php
+++ b/plugins/API/Controller.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "API/Request.php";
class Piwik_API_Controller extends Piwik_Controller
diff --git a/plugins/Actions.php b/plugins/Actions.php
index d89e01a07f..4fd90577d8 100644
--- a/plugins/Actions.php
+++ b/plugins/Actions.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_Actions extends Piwik_Plugin
{
diff --git a/plugins/Actions/API.php b/plugins/Actions/API.php
index 6ef2bd7c95..45baaf5eaa 100644
--- a/plugins/Actions/API.php
+++ b/plugins/Actions/API.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "DataFiles/Browsers.php";
require_once "DataFiles/OS.php";
diff --git a/plugins/ExamplePlugin.php b/plugins/ExamplePlugin.php
index 101a174e06..f44014eeaf 100644
--- a/plugins/ExamplePlugin.php
+++ b/plugins/ExamplePlugin.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_ExamplePlugin extends Piwik_Plugin
{
diff --git a/plugins/ExamplePlugin/API.php b/plugins/ExamplePlugin/API.php
index a3e9b68959..b1d11736e4 100644
--- a/plugins/ExamplePlugin/API.php
+++ b/plugins/ExamplePlugin/API.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
class MagicObject
{
function Incredible(){ return 'Incroyable'; }
diff --git a/plugins/ExamplePlugin/Controller.php b/plugins/ExamplePlugin/Controller.php
index 131f3767d8..d20b0387b3 100644
--- a/plugins/ExamplePlugin/Controller.php
+++ b/plugins/ExamplePlugin/Controller.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
class Piwik_ExamplePlugin_Controller extends Piwik_Controller
{
diff --git a/plugins/Home/Controller.php b/plugins/Home/Controller.php
index 87cc262495..d044770ee1 100644
--- a/plugins/Home/Controller.php
+++ b/plugins/Home/Controller.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "API/Request.php";
require_once "ViewDataTable.php";
diff --git a/plugins/Home/Controller_OldAPICalls.php b/plugins/Home/Controller_OldAPICalls.php
deleted file mode 100644
index a68992baca..0000000000
--- a/plugins/Home/Controller_OldAPICalls.php
+++ /dev/null
@@ -1,443 +0,0 @@
-<?php
-
-function main()
-{
- $api = Piwik_API_Proxy::getInstance();
-
-// $api->SitesManager->addSite("t2site2", array("http://localhost44", "http://test123.com"));
-// $api->SitesManager->addSite("2e site33", array("http://localhost52", "http://test123.com"));
-// $api->SitesManager->addSite("te2 site44", array("http://localhost31231", "http://test123.com"));
-// $api->SitesManager->addSite("test name site", array("http://localhost", "http://test.com"));
-// $api->SitesManager->getSiteUrlsFromId(1);
-// $api->UsersManager->deleteUser("login");
-// $api->UsersManager->addUser("login", "password", "email@geage.com");
- require_once "API/Request.php";
-
-// Piwik::log("getResolution");
- $request = new Piwik_API_Request('
- method=UserSettings.getResolution
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=console
- &filter_limit=
- &filter_offset=
- &filter_column=label
- &filter_pattern=
- ');
- print(($request->process()));
-
- exit;
-
- Piwik::log("getOS");
- $request = new Piwik_API_Request('method=UserSettings.getOS
-
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=
- &filter_offset=
- &filter_column=label
- &filter_pattern=
- ');
- dump(htmlentities($request->process()));
-
- Piwik::log("getConfiguration");
- $request = new Piwik_API_Request('
- method=UserSettings.getConfiguration
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=10
- &filter_offset=0
- &filter_column=label
- &filter_pattern=
- ');
- dump(htmlentities($request->process()));
-
- Piwik::log("getBrowser");
- $request = new Piwik_API_Request('
- method=UserSettings.getBrowser
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=
- &filter_offset=
- &filter_column=label
- &filter_pattern=
- ');
- dump(htmlentities($request->process()));
-
- Piwik::log("getBrowserType");
- $request = new Piwik_API_Request('
- method=UserSettings.getBrowserType
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=
- &filter_offset=
- &filter_column=label
- &filter_pattern=
- ');
- dump(htmlentities($request->process()));
-
- Piwik::log("getWideScreen");
- $request = new Piwik_API_Request('
- method=UserSettings.getWideScreen
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=
- &filter_offset=
- &filter_column=label
- &filter_pattern=
- ');
- dump(htmlentities($request->process()));
-
- Piwik::log("getPlugin");
- $request = new Piwik_API_Request('
- method=UserSettings.getPlugin
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=
- &filter_offset=
- &filter_column=label
- &filter_pattern=
- ');
- dump(htmlentities($request->process()));
-
- Piwik::log("getActions");
- $request = new Piwik_API_Request(
- 'method=Actions.getActions
- &idSite=1
- &date=2007-08-25
- &period=month
- &format=html
- &filter_limit=10
- &filter_offset=0
- '
- );
-// echo(($request->process()));
-
- Piwik::log("getActions EXPANDED");
- $request = new Piwik_API_Request(
- 'method=Actions.getActions
- &idSite=1
- &date=2007-08-25
- &period=month
- &format=html
- &expanded=true
- &filter_column=label
- &filter_pattern=a
- &filter_limit=10
- &filter_offset=0
-
- '
- );
-// echo(($request->process()));
-
- Piwik::log("getActions EXPANDED SUBTABLE");
- $request = new Piwik_API_Request(
- 'method=Actions.getActions
- &idSubtable=5477
- &idSite=1
- &date=2007-08-25
- &period=month
- &format=html
- &expanded=false
-
- '
- );
-// echo(($request->process()));
-
- Piwik::log("getDownloads");
- $request = new Piwik_API_Request(
- 'method=Actions.getDownloads
- &idSite=1
- &date=2007-08-25
- &period=month
- &format=xml
- '
- );
-// dump(htmlentities($request->process()));
- Piwik::log("getOutlinks");
- $request = new Piwik_API_Request(
- 'method=Actions.getOutlinks
- &idSite=1
- &date=2007-08-25
- &period=month
- &format=xml
- '
- );
-// dump(htmlentities($request->process()));
- Piwik::log("getProvider");
- $request = new Piwik_API_Request(
- 'method=Provider.getProvider
- &idSite=1
- &date=2007-08-25
- &period=month
- &format=xml
- '
- );
- dump(htmlentities($request->process()));
-
- Piwik::log("getCountry");
- $request = new Piwik_API_Request(
- 'method=UserCountry.getCountry
- &idSite=1
- &date=2007-08-25
- &period=month
- &format=xml
- &filter_limit=10
- &filter_offset=0
- '
- );
- dump(htmlentities($request->process()));
-
- Piwik::log("getContinent");
- $request = new Piwik_API_Request(
- 'method=UserCountry.getContinent
- &idSite=1
- &date=2007-08-25
- &period=month
- &format=xml
- '
- );
- dump(htmlentities($request->process()));
-
-
- Piwik::log("getContinent");
- $request = new Piwik_API_Request(
- 'method=VisitFrequency.getSummary
- &idSite=1
- &date=2007-08-25
- &period=month
- &format=xml
- '
- );
- dump(htmlentities($request->process()));
-
- Piwik::log("getNumberOfVisitsPerVisitDuration");
- $request = new Piwik_API_Request(
- 'method=VisitorInterest.getNumberOfVisitsPerVisitDuration
- &idSite=1
- &date=2007-08-25
- &period=month
- &format=xml
- '
- );
- dump(htmlentities($request->process()));
-
- Piwik::log("getNumberOfVisitsPerPage");
- $request = new Piwik_API_Request(
- 'method=VisitorInterest.getNumberOfVisitsPerPage
- &idSite=1
- &date=2007-08-25
- &period=month
- &format=xml
- '
- );
- dump(htmlentities($request->process()));
-
-
-
- Piwik::log("getVisitInformationPerServerTime");
- $request = new Piwik_API_Request(
- 'method=VisitTime.getVisitInformationPerServerTime
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- '
- );
- dump(htmlentities($request->process()));
-
-
- Piwik::log("getRefererType");
- $request = new Piwik_API_Request(
- 'method=Referers.getRefererType
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- '
- );
- dump(htmlentities($request->process()));
-
- Piwik::log("getKeywords");
- $request = new Piwik_API_Request(
- 'method=Referers.getKeywords
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=10
- &filter_offset=0
- '
- );
- dump(htmlentities($request->process()));
- Piwik::log("getSearchEnginesFromKeywordId");
- $request = new Piwik_API_Request(
- 'method=Referers.getSearchEnginesFromKeywordId
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &idSubtable=1886
- &filter_limit=10
- &filter_offset=0
- '
- );
- dump(htmlentities($request->process()));
-
- Piwik::log("getSearchEngines");
- $request = new Piwik_API_Request(
- 'method=Referers.getSearchEngines
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=10
- &filter_offset=0
- '
- );
- dump(htmlentities($request->process()));
-
-
- Piwik::log("getKeywordsFromSearchEngineId");
- $request = new Piwik_API_Request(
- 'method=Referers.getKeywordsFromSearchEngineId
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=10
- &filter_offset=0
- &idSubtable=1779
- '
- );
- dump(htmlentities($request->process()));
-
-
-
- Piwik::log("getCampaigns");
- $request = new Piwik_API_Request(
- 'method=Referers.getCampaigns
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=10
- &filter_offset=0
- '
- );
- dump(htmlentities($request->process()));
-
-
-
- Piwik::log("getKeywordsFromCampaignId");
- $request = new Piwik_API_Request(
- 'method=Referers.getKeywordsFromCampaignId
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=10
- &filter_offset=0
- &idSubtable=2251
- '
- );
- dump(htmlentities($request->process()));
-
-
- Piwik::log("getWebsites");
- $request = new Piwik_API_Request(
- 'method=Referers.getWebsites
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=10
- &filter_offset=0
- '
- );
- dump(htmlentities($request->process()));
-
-
-
- Piwik::log("getUrlsFromWebsiteId");
- $request = new Piwik_API_Request(
- 'method=Referers.getUrlsFromWebsiteId
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=10
- &filter_offset=0
- &idSubtable=2432
- '
- );
- dump(htmlentities($request->process()));
-
- Piwik::log("getPartners");
- $request = new Piwik_API_Request(
- 'method=Referers.getPartners
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=10
- &filter_offset=0
- '
- );
- dump(htmlentities($request->process()));
-
-
-
- Piwik::log("getUrlsFromPartnerId");
- $request = new Piwik_API_Request(
- 'method=Referers.getUrlsFromPartnerId
- &idSite=1
- &date=2007-08-25
- &period=week
- &format=xml
- &filter_limit=10
- &filter_offset=0
- &idSubtable=3090
- ');
- dump(htmlentities($request->process()));
-
-
- $referersNumeric=array(
- 'getNumberOfDistinctSearchEngines',
- 'getNumberOfDistinctKeywords',
- 'getNumberOfDistinctCampaigns',
- 'getNumberOfDistinctWebsites',
- 'getNumberOfDistinctWebsitesUrls',
- 'getNumberOfDistinctPartners',
- 'getNumberOfDistinctPartnersUrls',
- );
- foreach($referersNumeric as $name)
- {
- Piwik::log("$name");
- $request = new Piwik_API_Request(
- "method=Referers.$name
- &idSite=1
- &date=2007-08-20
- &period=day
- &format=xml
- &filter_limit=10
- &filter_offset=0
- "
- );
- dump(htmlentities($request->process()));
- }
-
-} \ No newline at end of file
diff --git a/plugins/Installation.php b/plugins/Installation.php
index 9e8e1137a5..4ac17ac0c2 100644
--- a/plugins/Installation.php
+++ b/plugins/Installation.php
@@ -1,4 +1,13 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
+
require_once "Installation/Controller.php";
class Piwik_Installation extends Piwik_Plugin
{
diff --git a/plugins/Installation/Controller.php b/plugins/Installation/Controller.php
index 370f8a68f8..aa323c17a8 100644
--- a/plugins/Installation/Controller.php
+++ b/plugins/Installation/Controller.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "View.php";
require_once "Installation/View.php";
class Piwik_Installation_Controller extends Piwik_Controller
diff --git a/plugins/Installation/FormDatabaseSetup.php b/plugins/Installation/FormDatabaseSetup.php
index 4feb4d3eec..95ed887ec3 100644
--- a/plugins/Installation/FormDatabaseSetup.php
+++ b/plugins/Installation/FormDatabaseSetup.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "modules/Form.php";
class Piwik_Installation_FormDatabaseSetup extends Piwik_Form
{
diff --git a/plugins/Installation/FormFirstWebsiteSetup.php b/plugins/Installation/FormFirstWebsiteSetup.php
index 4460b58a15..5f25100318 100644
--- a/plugins/Installation/FormFirstWebsiteSetup.php
+++ b/plugins/Installation/FormFirstWebsiteSetup.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "modules/Form.php";
class Piwik_Installation_FormFirstWebsiteSetup extends Piwik_Form
{
diff --git a/plugins/Installation/FormGeneralSetup.php b/plugins/Installation/FormGeneralSetup.php
index 7806751191..cd2c407f17 100644
--- a/plugins/Installation/FormGeneralSetup.php
+++ b/plugins/Installation/FormGeneralSetup.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "modules/Form.php";
class Piwik_Installation_FormGeneralSetup extends Piwik_Form
{
diff --git a/plugins/Installation/View.php b/plugins/Installation/View.php
index d7876b578a..acbd338d05 100644
--- a/plugins/Installation/View.php
+++ b/plugins/Installation/View.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
class Piwik_Install_View extends Piwik_View
{
protected $mainTemplate = 'Installation/templates/structure.tpl';
diff --git a/plugins/Login.php b/plugins/Login.php
index e4db6e8dc1..425cdd5340 100644
--- a/plugins/Login.php
+++ b/plugins/Login.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
require "Login/Controller.php";
require "Cookie.php";
diff --git a/plugins/Login/Controller.php b/plugins/Login/Controller.php
index d4608b8c9d..ec70cf34f7 100644
--- a/plugins/Login/Controller.php
+++ b/plugins/Login/Controller.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "UsersManager/API.php";
require_once "Login/Form.php";
require_once "View.php";
diff --git a/plugins/Login/Form.php b/plugins/Login/Form.php
index 8d5304abdb..566cfa2c4e 100644
--- a/plugins/Login/Form.php
+++ b/plugins/Login/Form.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "modules/Form.php";
class Piwik_Login_Form extends Piwik_Form
{
diff --git a/plugins/Logout/Controller.php b/plugins/Logout/Controller.php
index fc25a2fe6e..3739330cb3 100644
--- a/plugins/Logout/Controller.php
+++ b/plugins/Logout/Controller.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
class Piwik_Logout_Controller extends Piwik_Controller
{
function index()
diff --git a/plugins/Openads.php b/plugins/Openads.php
index 70f5caf597..fded77674f 100644
--- a/plugins/Openads.php
+++ b/plugins/Openads.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_Openads extends Piwik_Plugin
{
diff --git a/plugins/Openads/Controller.php b/plugins/Openads/Controller.php
index 4cde8c59b3..f55b48f655 100644
--- a/plugins/Openads/Controller.php
+++ b/plugins/Openads/Controller.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
class Piwik_Openads_Controller extends Piwik_Installation_Controller
{
function __construct()
diff --git a/plugins/Provider.php b/plugins/Provider.php
index 8a9765d344..7069e2d249 100644
--- a/plugins/Provider.php
+++ b/plugins/Provider.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_Provider extends Piwik_Plugin
{
diff --git a/plugins/Provider/API.php b/plugins/Provider/API.php
index 811805dc60..23586be808 100644
--- a/plugins/Provider/API.php
+++ b/plugins/Provider/API.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "DataFiles/Browsers.php";
require_once "DataFiles/OS.php";
diff --git a/plugins/Referers.php b/plugins/Referers.php
index ecd3e052d0..97f318d877 100644
--- a/plugins/Referers.php
+++ b/plugins/Referers.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_Referers extends Piwik_Plugin
{
diff --git a/plugins/Referers/API.php b/plugins/Referers/API.php
index bde0c697f5..00b1dfc225 100644
--- a/plugins/Referers/API.php
+++ b/plugins/Referers/API.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "DataFiles/Browsers.php";
require_once "DataFiles/OS.php";
diff --git a/plugins/SitesManager.php b/plugins/SitesManager.php
index e5ad01a6f5..d2b23f93b2 100644
--- a/plugins/SitesManager.php
+++ b/plugins/SitesManager.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_SitesManager extends Piwik_Plugin
{
diff --git a/plugins/SitesManager/API.php b/plugins/SitesManager/API.php
index 5d0b68eef8..ae445adc1b 100755
--- a/plugins/SitesManager/API.php
+++ b/plugins/SitesManager/API.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php
index 239445d726..0410a4657c 100644
--- a/plugins/SitesManager/Controller.php
+++ b/plugins/SitesManager/Controller.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
class Piwik_SitesManager_Controller extends Piwik_Controller
{
function index()
diff --git a/plugins/UserCountry.php b/plugins/UserCountry.php
index c2f9f37629..a8b6e617e3 100644
--- a/plugins/UserCountry.php
+++ b/plugins/UserCountry.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_UserCountry extends Piwik_Plugin
{
diff --git a/plugins/UserCountry/API.php b/plugins/UserCountry/API.php
index 8c9d8efb2e..e17e027689 100644
--- a/plugins/UserCountry/API.php
+++ b/plugins/UserCountry/API.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "DataFiles/Countries.php";
diff --git a/plugins/UserSettings.php b/plugins/UserSettings.php
index b13a62bb6f..255c4988f7 100644
--- a/plugins/UserSettings.php
+++ b/plugins/UserSettings.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_UserSettings extends Piwik_Plugin
{
diff --git a/plugins/UserSettings/API.php b/plugins/UserSettings/API.php
index 1b7eb55fef..3c2dea4879 100644
--- a/plugins/UserSettings/API.php
+++ b/plugins/UserSettings/API.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
require_once "DataFiles/Browsers.php";
require_once "DataFiles/OS.php";
diff --git a/plugins/UsersManager.php b/plugins/UsersManager.php
index dd56cdf89d..c1e8e5d7c0 100644
--- a/plugins/UsersManager.php
+++ b/plugins/UsersManager.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_UsersManager extends Piwik_Plugin
{
diff --git a/plugins/UsersManager/API.php b/plugins/UsersManager/API.php
index 584a9850f1..131d180618 100755
--- a/plugins/UsersManager/API.php
+++ b/plugins/UsersManager/API.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
/**
*
* @package Piwik
diff --git a/plugins/UsersManager/Controller.php b/plugins/UsersManager/Controller.php
index 4ca6105066..70be63aab9 100644
--- a/plugins/UsersManager/Controller.php
+++ b/plugins/UsersManager/Controller.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
class Piwik_UsersManager_Controller extends Piwik_Controller
{
function index()
diff --git a/plugins/VisitFrequency.php b/plugins/VisitFrequency.php
index 6ecc1ec5a3..bdf1fe38c7 100644
--- a/plugins/VisitFrequency.php
+++ b/plugins/VisitFrequency.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_VisitFrequency extends Piwik_Plugin
{
diff --git a/plugins/VisitFrequency/API.php b/plugins/VisitFrequency/API.php
index b42cb23dfc..02baa9eb7e 100644
--- a/plugins/VisitFrequency/API.php
+++ b/plugins/VisitFrequency/API.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
class Piwik_VisitFrequency_API extends Piwik_Apiable
{
static private $instance = null;
diff --git a/plugins/VisitTime.php b/plugins/VisitTime.php
index b34e1bcacf..baab19e87c 100644
--- a/plugins/VisitTime.php
+++ b/plugins/VisitTime.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_VisitTime extends Piwik_Plugin
{
diff --git a/plugins/VisitTime/API.php b/plugins/VisitTime/API.php
index e7c53ede9c..73e39abf12 100644
--- a/plugins/VisitTime/API.php
+++ b/plugins/VisitTime/API.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_VisitTime_API extends Piwik_Apiable
{
diff --git a/plugins/VisitorInterest.php b/plugins/VisitorInterest.php
index f7eaffd207..1239c2269c 100644
--- a/plugins/VisitorInterest.php
+++ b/plugins/VisitorInterest.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_VisitorInterest extends Piwik_Plugin
{
diff --git a/plugins/VisitorInterest/API.php b/plugins/VisitorInterest/API.php
index d13872bc2b..de87f5fd80 100644
--- a/plugins/VisitorInterest/API.php
+++ b/plugins/VisitorInterest/API.php
@@ -1,4 +1,13 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
+
class Piwik_VisitorInterest_API extends Piwik_Apiable
{
diff --git a/plugins/VisitsSummary.php b/plugins/VisitsSummary.php
index 63cf51625a..3b9b7fd85d 100644
--- a/plugins/VisitsSummary.php
+++ b/plugins/VisitsSummary.php
@@ -1,4 +1,11 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
class Piwik_VisitsSummary extends Piwik_Plugin
{
diff --git a/plugins/VisitsSummary/API.php b/plugins/VisitsSummary/API.php
index 668e4c0282..2594f5f694 100644
--- a/plugins/VisitsSummary/API.php
+++ b/plugins/VisitsSummary/API.php
@@ -1,4 +1,12 @@
-<?php
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ */
+
class Piwik_VisitsSummary_API extends Piwik_Apiable
{
static private $instance = null;