update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
|
|
@ -8,17 +8,18 @@ define('PIWIK_ENABLE_DISPATCH', false);
|
|||
define('PIWIK_ENABLE_ERROR_HANDLER', false);
|
||||
define('PIWIK_ENABLE_SESSION_START', false);
|
||||
|
||||
// if you prefer not to include 'index.php', you must also define here PIWIK_DOCUMENT_ROOT
|
||||
// and include "libs/upgradephp/upgrade.php" and "core/Loader.php"
|
||||
require_once PIWIK_INCLUDE_PATH . "/index.php";
|
||||
require_once PIWIK_INCLUDE_PATH . "/core/API/Request.php";
|
||||
|
||||
$environment = new \Piwik\Application\Environment(null);
|
||||
$environment->init();
|
||||
|
||||
FrontController::getInstance()->init();
|
||||
|
||||
// This inits the API Request with the specified parameters
|
||||
$request = new Request('
|
||||
module=API
|
||||
&method=UserSettings.getResolution
|
||||
&method=Resolution.getResolution
|
||||
&idSite=7
|
||||
&date=yesterday
|
||||
&period=week
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue