mirror of
https://github.com/Findus23/plugin-QuickExcludeVisitorIP.git
synced 2024-09-08 03:03:46 +02:00
Matomo 5 compatibility
This commit is contained in:
parent
6d95fdb12b
commit
3aab1f219f
3 changed files with 11 additions and 5 deletions
|
@ -1,10 +1,15 @@
|
|||
## Changelog
|
||||
|
||||
# 0.1.1
|
||||
### 0.2.0
|
||||
|
||||
Matomo 5 compatibility
|
||||
|
||||
release version
|
||||
### 0.1.1
|
||||
|
||||
release version
|
||||
|
||||
|
||||
# 0.1.0
|
||||
### 0.1.0
|
||||
|
||||
first beta version
|
||||
|
|
|
@ -29,7 +29,8 @@ class Controller extends \Piwik\Plugin\Controller
|
|||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
@header('Content-Type: application/json; charset=utf-8');
|
||||
$ip = Common::getRequestVar('ip', null, 'string');
|
||||
$request = \Piwik\Request::fromRequest();
|
||||
$ip = $request->getStringParameter('ip', null);
|
||||
$ignoredIPstr = APISitesManager::getInstance()->getExcludedIpsGlobal();
|
||||
$ignoredIPs = explode(",", $ignoredIPstr);
|
||||
if (in_array($ip, $ignoredIPs)) {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"name": "QuickExcludeVisitorIP",
|
||||
"description": "Adds a button to Visitor Profile to quickly add them to the list of ignored IPs",
|
||||
"version": "0.1.1",
|
||||
"version": "0.2.0",
|
||||
"theme": false,
|
||||
"require": {
|
||||
"piwik": ">=3.10.0,<5.0.0-b1"
|
||||
"matomo": ">=5.0.0-b1,<6.0.0-b1"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue