diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-03-31 12:47:57 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-03-31 12:47:57 +0400 |
commit | cca50dd8f5cbff530456932711f079eccaff94f6 (patch) | |
tree | 55541de9be394c5d5c8d4dc992a5582705ff56ff /plugins/SitesManager/Controller.php | |
parent | 715dbbabea9681130fc0299dc1db8b68fc4736cf (diff) |
Fixes #41 Adding URL Query parameters exclude setting, per website, and global. We also by default exclude sessionid, phpsessid, etc.
The query parameters are excluded case insensitive.
Diffstat (limited to 'plugins/SitesManager/Controller.php')
-rw-r--r-- | plugins/SitesManager/Controller.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index 5c01f46e85..0f9889d450 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -24,6 +24,7 @@ class Piwik_SitesManager_Controller extends Piwik_Controller { $site['alias_urls'] = Piwik_SitesManager_API::getInstance()->getSiteUrlsFromId($site['idsite']); $site['excluded_ips'] = str_replace(',','<br/>', $site['excluded_ips']); + $site['excluded_parameters'] = str_replace(',','<br/>', $site['excluded_parameters']); } $view->adminSites = $sites; @@ -38,10 +39,12 @@ class Piwik_SitesManager_Controller extends Piwik_Controller $view->currencies = json_encode(Piwik_SitesManager_API::getInstance()->getCurrencyList()); $view->defaultCurrency = Piwik_SitesManager_API::getInstance()->getDefaultCurrency(); - + $view->utcTime = Piwik_Date::now()->getDatetime(); $excludedIpsGlobal = Piwik_SitesManager_API::getInstance()->getExcludedIpsGlobal(); $view->globalExcludedIps = str_replace(',',"\n", $excludedIpsGlobal); + $excludedQueryParametersGlobal = Piwik_SitesManager_API::getInstance()->getExcludedQueryParametersGlobal(); + $view->globalExcludedQueryParameters = str_replace(',',"\n", $excludedQueryParametersGlobal); $view->currentIpAddress = Piwik_Common::getIpString(); $this->setGeneralVariablesView($view); @@ -57,9 +60,11 @@ class Piwik_SitesManager_Controller extends Piwik_Controller $this->checkTokenInUrl(); $timezone = Piwik_Common::getRequestVar('timezone', false); $excludedIps = Piwik_Common::getRequestVar('excludedIps', false); + $excludedQueryParameters = Piwik_Common::getRequestVar('excludedQueryParameters', false); $currency = Piwik_Common::getRequestVar('currency', false); Piwik_SitesManager_API::getInstance()->setDefaultTimezone($timezone); Piwik_SitesManager_API::getInstance()->setDefaultCurrency($currency); + Piwik_SitesManager_API::getInstance()->setGlobalExcludedQueryParameters($excludedQueryParameters); Piwik_SitesManager_API::getInstance()->setGlobalExcludedIps($excludedIps); $toReturn = $response->getResponse(); } catch(Exception $e ) { |