diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..ee7d6a5 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/README.md b/README.md index b9f160b..f61a8aa 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,32 @@ # WP-Matomo – Suckless WordPress-Matomo integration Features: * **NOT SUITABLE FOR END-USER PEOPLE, MUST BE INSTALLED BY A DEVELOPER** * No crapware * No adware * It's **absolutely blazing fast** plugin * Absolutely secure (there is no interaction with any user, even administrators) * No database options (use your `wp-config.php`) ## Installation 1. Install Matomo somehow (you must know how) 2. Put this plugin in your `/wp-content/plugins`. You must know how. 3. Edit your `wp-config.php` and put there this: ``` define( 'MATOMO_PATH', 'http://your-matomo-installation/' ); define( 'MATOMO_SITE', 1 ); ``` -Know you can activate your plugin. +Now you can activate your plugin. + +## License + +This software is under the [WTFPL license](./LICENSE.txt). + +Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. + +You just DO WHAT THE FUCK YOU WANT TO. + + diff --git a/wp-matomo.php b/wp-matomo.php index 3fb136f..c3cf8b3 100644 --- a/wp-matomo.php +++ b/wp-matomo.php @@ -1,63 +1,63 @@ \n"; echo "\n"; printf( '', MATOMO_PATH, MATOMO_SITE ); return; } $path = MATOMO_PATH; $site = MATOMO_SITE; $js = << EOF; echo $js; } ); /* * Register the stat menu link icon */ add_action( 'admin_menu', function () { add_menu_page( 'Matomo Stats', 'Matomo Stats', 'manage_options', 'view_matomo_stats', 'function', 'dashicons-performance' ); } ); add_action( 'admin_init', function () { if( isset( $_GET['page'] ) && $_GET['page'] === 'view_matomo_stats' ) { wp_redirect( MATOMO_PATH ); exit(); } }, 1 );