Skip to content

Commit

Permalink
adjustments for Matomo 4
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Jul 29, 2020
1 parent 982c9c2 commit 4e5ae47
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Files excluded from git packages
tests/ export-ignore
.github/ export-ignore
.gitignore export-ignore
.gitattributes export-ignore
.travis.yml export-ignore
4 changes: 2 additions & 2 deletions Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/

namespace Piwik\Plugins\SecurityInfo;

use PhpSecInfo;
Expand Down
4 changes: 2 additions & 2 deletions Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/

namespace Piwik\Plugins\SecurityInfo;

use Piwik\Menu\MenuAdmin;
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Matomo SecurityInfo Plugin

[![Build Status](https://travis-ci.org/matomo-org/plugin-SecurityInfo.svg?branch=master)](https://travis-ci.org/matomo-org/plugin-SecurityInfo)
[![Build Status](https://travis-ci.org/matomo-org/plugin-SecurityInfo.svg?branch=4.x-dev)](https://travis-ci.org/matomo-org/plugin-SecurityInfo)

## Description

We highly recommend that all Matomo administrators enable the SecurityInfo plugin, and then view the Settings. The plugin is a tool in a multilayered security approach.

Performed checks include for instance usage of latest PHP version, usage of latest Piwik version, usage of PHP ini settings like magic_quotes_gpc and more.
Performed checks include for instance usage of latest PHP version, usage of latest Matomo version, usage of PHP ini settings like magic_quotes_gpc and more.
10 changes: 3 additions & 7 deletions SecurityInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\SecurityInfo;

use Piwik\Config;
use Piwik\Db;
namespace Piwik\Plugins\SecurityInfo;

/**
*/
class SecurityInfo extends \Piwik\Plugin
{
/**
* @see Piwik\Plugin::registerEvents
* @see \Piwik\Plugin::registerEvents
*/
public function registerEvents()
{
Expand All @@ -29,5 +26,4 @@ public function getStylesheetFiles(&$stylesheets)
{
$stylesheets[] = "plugins/SecurityInfo/stylesheets/securityinfo.less";
}

}
6 changes: 3 additions & 3 deletions templates/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<div piwik-content-intro>
<h2>{{ title }}</h2>
<p>{{ 'SecurityInfo_PluginDescription'|translate }}</p>
<p>Learn more: read our guide <a rel='noreferrer' target='_blank' href='https://matomo.org/docs/security/'>Hardening Piwik: How to make Piwik and your web server
<p>Learn more: read our guide <a rel='noreferrer' target='_blank' href='https://matomo.org/docs/security/'>Hardening Matomo: How to make Matomo and your web server
more secure?</a></p>

<p class="alert-info alert">Did you know?
The <a target='_blank' href='https://plugins.piwik.org/ActivityLog' rel="noreferrer noopener">Activity Log plugin for Piwik</a> improves your security and diagnostic
by letting you quickly review the actions performed by members of your organization or clients in your Piwik.
The <a target='_blank' href='https://plugins.matomo.org/ActivityLog' rel="noreferrer noopener">Activity Log plugin for Matomo</a> improves your security and diagnostic
by letting you quickly review the actions performed by members of your organization or clients in your Matomo.
</p>
</div>
{% for i,section in results.test_results %}
Expand Down

0 comments on commit 4e5ae47

Please sign in to comment.