GithubHelp home page GithubHelp logo

ip2location / ip2proxy-matomo Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 264 KB

This is a Matomo plugin that generates a proxy report based on visitor's IP address.

License: GNU General Public License v3.0

PHP 100.00%

ip2proxy-matomo's People

Contributors

ip2location avatar weblate avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

weblate

ip2proxy-matomo's Issues

For newer PHP versions, refactor GetProxyDetails

When running with Matomo 4.13.3, PHP 8.1 I get this deprecation warning:

WARNING: /plugins/IP2Proxy/Reports/GetProxyDetails.php(104): Deprecated - Creation of dynamic property Piwik\Plugins\IP2Proxy\Reports\GetProxyDetails::$columns is deprecated - Matomo 4.13.3 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: CoreAdminHome, Action: home, In CLI mode: false)

Constant FILTER_SANITIZE_STRING is deprecated

Having thousands of this lines in my logs:

WARNING IP2Proxy 2023-10-20 00:01:41 UTC 44 /app/plugins/IP2Proxy/UserSettings.php(31): Deprecated - Constant FILTER_SANITIZE_STRING is deprecated - Matomo 4.15.1

and

/app/plugins/IP2Proxy/UserSettings.php(54): Deprecated - Creation of dynamic property Piwik\Plugins\IP2Proxy\UserSettings::$subscribedToEmailReport is deprecated - Matomo 4.15.1

Undefined offset: 10 - Matomo 4.14.2

WARNING: /plugins/IP2Proxy/lib/IP2Proxy.php(1549): Notice - Undefined offset: 10 - Matomo 4.14.2 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: IP2Proxy, Action: getProxyDetails, Method: IP2Proxy.getProxyDetails, In CLI mode: false)

xx.xx.xx.xx No - 4Shells�Addict Proxies AnchorFree�Astrill VPN�Avas - - - - - - - 2023-04-19 07:35:49 returning 2 20 分 46 秒 direct - 桌面

Matomo 5 compatibility

Dear Matomo Plugin Author,
We are excited that Matomo 5.0.0 is on the horizon, and we would greatly appreciate your assistance in ensuring that your plugin remains compatible with this upcoming release. Maintaining compatibility will enable Matomo users to seamlessly use your plugin after they upgrade to Matomo 5. (If the plugin is not updated to be compatible with Matomo 5, then whenever a user will upgrade to Matomo 5, the plugin would be automatically disabled to prevent issues.)

Updating your plugin to be Matomo 5 compatible is a straightforward process and should not require a significant time investment. You can find more information about updating your plugin at: https://developer.matomo.org/guides/migrate-matomo-4-to-5

Thank you for your ongoing support and commitment to the Matomo community.
Your contribution is really appreciated!

The Matomo Team

PS: we’re also available to help if you have any question about making the plugin compatible.

isPHPVersionMoreRecentThan($version) function is completely broken

This code simply doesn't work and is functionally broken. It will compare 8.0.0 to 7.4.0 and return FALSE when it should return TRUE.

I will work on a PR, but in the meantime as a workaround it is easier to just remove the use of this function from the code if you know you are running a PHP version >8.0.0

	/**
	 * A private methode to save the company details in the DB.
	 *
	 * @param mixed $version
	 *
	 * @return bool
	 */
	private function isPHPVersionMoreRecentThan($version)
	{
		$phpVersion = PHP_VERSION;
		$phpVersionParts = explode('.', $phpVersion);
		$phpMinVersionParts = explode('.', $version);

		if ((int) $phpVersionParts[0] < (int) $phpMinVersionParts[0]) {
			return false;
		} elseif ((int) $phpVersionParts[1] < (int) $phpMinVersionParts[1]) {
			return false;
		} elseif ((int) $phpVersionParts[2] < (int) $phpMinVersionParts[2]) {
			return false;
		}

		return true;
	}

Translations using Weblate

Hello,

see also ip2location/ip2location-piwik#40

Lukas from Matomo team here. We are currently in the process of moving our translations from Transifex to Weblate (matomo-org/matomo#17907).
As Weblate makes it easier to add a git repository as a component and merge back updated translations via pull requests, I thought it would be great if more plugins in Matomo were available in the users languages if someone is interested in translating them.

If you are interested in adding your plugin, simply comment here, and I'll help you with the setup.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.