diff --git a/wp-content/plugins/wp-piwik/LICENSE b/wp-content/plugins/wp-piwik/LICENSE old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/README.md b/wp-content/plugins/wp-piwik/README.md old mode 100644 new mode 100755 index e9464bf7251fea4736fe8d1d633edfb6e96d3257..6fdc77bfe00a5f78beaa2f9fbfc2d2cdfd2ae5b2 --- a/wp-content/plugins/wp-piwik/README.md +++ b/wp-content/plugins/wp-piwik/README.md @@ -1,9 +1,9 @@ -# WP-Piwik +# WP-Matomo (former WP-Piwik) -This [WordPress](https://wordpress.org) plugin adds a [Piwik](http://piwik.org) stats site to your blog's dashboard. It's also able to add the Piwik tracking code to your blog. +This [WordPress](https://wordpress.org) plugin adds a [Matomo](http://matomo.org) stats site to your blog's dashboard. It's also able to add the Matomo tracking code to your blog. ## How to use this plugin -To use this plugin you will need your own Piwik instance. If you do not already have a Piwik setup, you have two simple options: use either [self-hosted](http://piwik.org/) or [cloud-hosted](http://piwik.org/hosting/). +To use this plugin you will need your own Matomo instance. If you do not already have a Matomo setup, you have two simple options: use either [self-hosted](http://matomo.org/) or [cloud-hosted](http://matomo.org/hosting/). -This repository was created to develop and maintain WP-Piwik. Please see the WordPress plugin directory if you like to use this plugin: https://wordpress.org/plugins/wp-piwik/ +This repository was created to develop and maintain WP-Matomo (WP-Piwik). Please see the WordPress plugin directory if you like to use this plugin: https://wordpress.org/plugins/wp-piwik/ diff --git a/wp-content/plugins/wp-piwik/bitcoin.png b/wp-content/plugins/wp-piwik/bitcoin.png old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/cache/.htaccess b/wp-content/plugins/wp-piwik/cache/.htaccess deleted file mode 100644 index 3a42882788717c9ed1d5c2fcc3277d21ec13152b..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/cache/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/wp-content/plugins/wp-piwik/cache/index.php b/wp-content/plugins/wp-piwik/cache/index.php deleted file mode 100644 index 9b3347dc327ee0179b3df406f1d910c861c05d3a..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/cache/index.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php - // Nothing to see... \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/classes/.htaccess b/wp-content/plugins/wp-piwik/classes/.htaccess old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin/Network.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin/Network.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin/Settings.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin/Settings.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin/Sitebrowser.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin/Sitebrowser.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin/Statistics.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin/Statistics.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Logger.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Logger.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Logger/Dummy.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Logger/Dummy.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Logger/File.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Logger/File.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Logger/Screen.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Logger/Screen.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Php.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Php.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Rest.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Rest.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Settings.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Settings.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Shortcode.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Shortcode.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Template.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Template.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Template/MetaBoxCustomVars.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Template/MetaBoxCustomVars.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/TrackingCode.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/TrackingCode.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/BrowserDetails.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/BrowserDetails.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Browsers.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Browsers.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Chart.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Chart.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Country.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Country.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Ecommerce.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Ecommerce.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Items.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Items.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/ItemsCategory.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/ItemsCategory.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Keywords.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Keywords.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Noresult.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Noresult.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/OptOut.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/OptOut.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Overview.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Overview.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Pages.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Pages.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Plugins.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Plugins.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Post.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Post.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Referrers.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Referrers.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Screens.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Screens.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Search.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Search.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Seo.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Seo.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/SystemDetails.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/SystemDetails.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Systems.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Systems.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Visitors.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Visitors.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik_Logger.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik_Logger.php deleted file mode 100644 index 9a0928815dad307c4a7db41241adde6dd9373aaa..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/classes/WP_Piwik_Logger.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php - - abstract class WP_Piwik_Logger { - - private $loggerName = 'unnamed'; - private $loggerContent = array(); - private $startMicrotime = null; - - abstract function loggerOutput($loggerTime, $loggerMessage); - - public function __construct($loggerName) { - $this->setName($loggerName); - $this->setStartMicrotime(microtime(true)); - $this->log('Logging started -------------------------------'); - } - - public function __destruct() { - $this->log('Logging finished ------------------------------'); - } - - public function log($loggerMessage) { - $this->loggerOutput($this->getElapsedMicrotime(), $loggerMessage); - } - - private function setName($loggerName) { - $this->loggerName = $loggerName; - } - - public function getName() { - return $this->loggerName; - } - - private function setStartMicrotime($startMicrotime) { - $this->startMicrotime = $startMicrotime; - } - - public function getStartMicrotime() { - return $this->startMicrotime; - } - - public function getElapsedMicrotime() { - return microtime(true) - $this->getStartMicrotime(); - } - - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik_Logger_Dummy.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik_Logger_Dummy.php deleted file mode 100644 index f962105f3c3438116fffb1b56d14b3968bdb244b..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/classes/WP_Piwik_Logger_Dummy.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php - - require_once('WP_Piwik_Logger.php'); - - class WP_Piwik_Logger_Dummy extends WP_Piwik_Logger { - - public function loggerOutput($loggerTime, $loggerMessage) {} - - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik_Logger_File.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik_Logger_File.php deleted file mode 100644 index 0c9c93e465465aa4fcf97b882859d220fd6d5fb2..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/classes/WP_Piwik_Logger_File.php +++ /dev/null @@ -1,48 +0,0 @@ -<?php - - require_once('WP_Piwik_Logger.php'); - - class WP_Piwik_Logger_File extends WP_Piwik_Logger { - - private $loggerFile = null; - - private function encodeFilename($fileName) { - $fileName = str_replace (' ', '_', $fileName); - preg_replace('/[^0-9^a-z^_^.]/', '', $fileName); - return $fileName; - } - - private function setFilename() { - $this->loggerFile = dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'logs'.DIRECTORY_SEPARATOR. - date('Ymd').'_'.$this->encodeFilename($this->getName()).'.log'; - } - - private function getFilename() { - return $this->loggerFile; - } - - private function openFile() { - if (!$this->loggerFile) - $this->setFilename(); - return fopen($this->getFilename(), 'a'); - } - - private function closeFile($fileHandle) { - fclose($fileHandle); - } - - private function writeFile($fileHandle, $fileContent) { - fwrite($fileHandle, $fileContent."\n"); - } - - private function formatMicrotime($loggerTime) { - return sprintf('[%6s sec]',number_format($loggerTime,3)); - } - - public function loggerOutput($loggerTime, $loggerMessage) { - if ($fileHandle = $this->openFile()) { - $this->writeFile($fileHandle, $this->formatMicrotime($loggerTime).' '.$loggerMessage); - $this->closeFile($fileHandle); - } - } - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik_MetaBox_PerPost_Stats.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik_MetaBox_PerPost_Stats.php deleted file mode 100644 index 1189a77dd0d90e76f794a38dafb28bd975eb04a7..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/classes/WP_Piwik_MetaBox_PerPost_Stats.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php - - require_once('WP_Piwik_Template.php'); - - class WP_Piwik_MetaBox_PerPost_Stats extends WP_Piwik_Template { - - function addMetabox() { - add_meta_box( - 'wp-piwik_post_perpoststats', - __('Piwik Statistics (last 30 days)', 'wp-piwik'), - array(&$this, 'showStats'), - 'post', - 'side', - 'default' - ); - } - - private function getStats($range = false) { - global $post; - $postURL = get_permalink($post->ID); - $range = ($range?$range:$this->getRangeLast30()); - self::$logger->log('Load per post statistics: '.$postURL); - return self::$wpPiwik->callPiwikAPI('Actions.getPageUrl', 'range', $range, null, false, false, 'PHP', $postURL, false); - } - - function showStats() { - $data = $this->getStats(); - if (!isset($data[0])) return; - echo '<table>'; - $this->tabRow(__('Visitors', 'wp-piwik').':',$data[0]['nb_visits']); - $this->tabRow(__('Unique visitors', 'wp-piwik').':', $data[0]['sum_daily_nb_uniq_visitors']); - $this->tabRow(__('Page views', 'wp-piwik').':', $data[0]['nb_hits']); - $this->tabRow(__('Time/visit', 'wp-piwik').':', $data[0]['avg_time_on_page']); - $this->tabRow(__('Bounce count', 'wp-piwik').':', $this->output($data[0], 'entry_bounce_count', 0).' ('.$data[0]['bounce_rate'].')'); - $this->tabRow(__('Exit count', 'wp-piwik').':', $this->output($data[0], 'exit_nb_visits', 0).' ('.$data[0]['exit_rate'].')'); - if (isset($data[0]['avg_time_generation'])) - $this->tabRow(__('Avg. generation time', 'wp-piwik').':', $data[0]['avg_time_generation']); - echo '</table>'; - } - - function getValue($range, $key) { - $data = $this->getStats($range); - if (!isset($data[0]) || !isset($data[0][$key])) return '-'; - else return $data[0][$key]; - } - - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik_Settings.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik_Settings.php deleted file mode 100644 index 81c0f3b1d5e3cbfdb1e46ef24bee4022250cb906..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/classes/WP_Piwik_Settings.php +++ /dev/null @@ -1,163 +0,0 @@ -<?php - - class WP_Piwik_Settings { - - private static $logger, $defaultSettings; - - private $globalSettings = array( - 'revision' => 90921, - 'plugin_display_name' => 'WP-Piwik', - 'add_tracking_code' => false, - 'last_settings_update' => 0, - 'piwik_token' => '', - 'piwik_url' => '', - 'piwik_path' => '', - 'piwik_mode' => 'http', - 'piwik_useragent' => 'php', - 'piwik_useragent_string' => 'WP-Piwik', - 'connection_timeout' => 5, - 'dashboard_widget' => false, - 'dashboard_chart' => false, - 'dashboard_seo' => false, - 'stats_seo' => false, - 'capability_stealth' => array(), - 'capability_read_stats' => array('administrator' => true), - 'piwik_shortcut' => false, - 'default_date' => 'yesterday', - 'auto_site_config' => true, - 'track_404' => false, - 'track_search' => false, - 'track_mode' => 0, - 'track_post' => false, - 'track_proxy' => false, - 'track_admin' => false, - 'track_feed' => false, - 'track_feed_goal' => '', - 'track_feed_revenue' => '', - 'track_feed_campaign' => 'feed', - 'track_feed_addcampaign' => 'false', - 'track_cdnurlssl' => '', - 'track_noscript' => false, - 'track_nojavascript' => false, - 'track_codeposition' => 'footer', - 'track_datacfasync' => false, - 'track_across' => false, - 'track_across_alias' => false, - 'limit_cookies' => false, - 'limit_cookies_visitor' => 1209600, - 'limit_cookies_session' => 0, - 'add_post_annotations' => false, - 'add_customvars_box' => true, - 'disable_timelimit' => false, - 'disable_ssl_verify' => false, - 'disable_cookies' => false, - 'toolbar' => false, - 'shortcodes' => false, - 'cache' => true, - 'perpost_stats' => false - ), - $settings = array( - 'name' => '', - 'tracking_code' => '', - 'site_id' => NULL, - 'last_tracking_code_update' => 0, - 'dashboard_revision' => 0, - 'noscript_code' => '' - ), - $settingsChanged = false; - - public function __construct($objLogger) { - self::$logger = $objLogger; - self::$logger->log('Store default settings'); - self::$defaultSettings = array('globalSettings' => $this->globalSettings, 'settings' => $this->settings); - self::$logger->log('Load settings'); - $this->globalSettings = ($this->checkNetworkActivation()? - get_site_option('wp-piwik_global-settings', $this->globalSettings): - get_option('wp-piwik_global-settings', $this->globalSettings) - ); - $this->settings = get_option('wp-piwik_settings',$this->settings); - } - - public function save() { - if (!$this->settingsChanged) { - self::$logger->log('No settings changed yet'); - return; - } - self::$logger->log('Save settings'); - if (is_plugin_active_for_network('wp-piwik/wp-piwik.php')) - update_site_option('wp-piwik_global-settings', $this->globalSettings); - else - update_option('wp-piwik_global-settings', $this->globalSettings); - update_option('wp-piwik_settings', $this->settings); - global $wp_roles; - if (!is_object($wp_roles)) - $wp_roles = new WP_Roles(); - if (!is_object($wp_roles)) die("STILL NO OBJECT"); - foreach($wp_roles->role_names as $strKey => $strName) { - $objRole = get_role($strKey); - foreach (array('stealth', 'read_stats') as $strCap) { - $aryCaps = $this->getGlobalOption('capability_'.$strCap); - if (isset($aryCaps[$strKey]) && $aryCaps[$strKey]) - $objRole->add_cap('wp-piwik_'.$strCap); - else $objRole->remove_cap('wp-piwik_'.$strCap); - } - } - $this->settingsChanges = false; - } - - public function getGlobalOption($key) { - return isset($this->globalSettings[$key])?$this->globalSettings[$key]:self::$defaultSettings['globalSettings'][$key]; - } - - public function getOption($key) { - return isset($this->settings[$key])?$this->settings[$key]:self::$defaultSettings['settings'][$key]; - } - - public function setGlobalOption($key, $value) { - $this->settingsChanged = true; - self::$logger->log('Changed global option '.$key.': '.(is_array($value)?serialize($value):$value)); - $this->globalSettings[$key] = $value; - } - - public function setOption($key, $value) { - $this->settingsChanged = true; - self::$logger->log('Changed option '.$key.': '.$value); - $this->settings[$key] = $value; - } - - public function resetSettings($bolFull = false) { - self::$logger->log('Reset WP-Piwik settings'); - global $wpdb; - $keepSettings = array( - 'piwik_token' => $this->getGlobalOption('piwik_token'), - 'piwik_url' => $this->getGlobalOption('piwik_url'), - 'piwik_path' => $this->getGlobalOption('piwik_path'), - 'piwik_mode' => $this->getGlobalOption('piwik_mode') - ); - if (is_plugin_active_for_network('wp-piwik/wp-piwik.php')) { - delete_site_option('wp-piwik_global-settings'); - $aryBlogs = $wpdb->get_results('SELECT blog_id FROM '.$wpdb->blogs.' ORDER BY blog_id'); - foreach ($aryBlogs as $aryBlog) - delete_blog_option($aryBlog->blog_id, 'wp-piwik_settings'); - if (!$bolFull) update_site_option('wp-piwik_global-settings', $keepSettings); - } else { - delete_option('wp-piwik_global-settings'); - delete_option('wp-piwik_settings'); - } - $this->globalSettings = self::$defaultSettings['globalSettings']; - $this->settings = self::$defaultSettings['settings']; - if (!$bolFull) { - self::$logger->log('Restore connection settings'); - foreach ($keepSettings as $key => $value) - $this->setGlobalOption($key, $value); - } - $this->save(); - } - - public function checkNetworkActivation() { - if (!function_exists("is_plugin_active_for_network")) { - require_once(ABSPATH.'wp-admin/includes/plugin.php'); - } - return is_plugin_active_for_network('wp-piwik/wp-piwik.php'); - } - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/classes/WP_Piwik_Template.php b/wp-content/plugins/wp-piwik/classes/WP_Piwik_Template.php deleted file mode 100644 index 69ddbcb31055b09c24ee7796c8881781160457b7..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/classes/WP_Piwik_Template.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php - - class WP_Piwik_Template { - - public static $logger, $settings, $wpPiwik; - - public function __construct($config) { - self::$logger = $config['logger']; - self::$settings = $config['settings']; - self::$wpPiwik = $config['wp_piwik']; - } - - public function output($array, $key, $default = '') { - if (isset($array[$key])) - return $array[$key]; - else - return $default; - } - - public function tabRow($name, $value) { - echo '<tr><td>'.$name.'</td><td>'.$value.'</td></tr>'; - } - - public function getRangeLast30() { - $diff = (self::$settings->getGlobalOption('default_date') == 'yesterday') ? -86400 : 0; - $end = time() + $diff; - $start = time() - 2592000 + $diff; - return date('Y-m-d', $start).','.date('Y-m-d', $end); - - } - - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/classes/index.php b/wp-content/plugins/wp-piwik/classes/index.php deleted file mode 100644 index 9b3347dc327ee0179b3df406f1d910c861c05d3a..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/classes/index.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php - // Nothing to see... \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/config.php b/wp-content/plugins/wp-piwik/config.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/css/index.php b/wp-content/plugins/wp-piwik/css/index.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/css/wp-piwik-spark.css b/wp-content/plugins/wp-piwik/css/wp-piwik-spark.css old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/css/wp-piwik.css b/wp-content/plugins/wp-piwik/css/wp-piwik.css old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/dashboard/.htaccess b/wp-content/plugins/wp-piwik/dashboard/.htaccess deleted file mode 100644 index 3a42882788717c9ed1d5c2fcc3277d21ec13152b..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/wp-content/plugins/wp-piwik/dashboard/browserdetails.php b/wp-content/plugins/wp-piwik/dashboard/browserdetails.php deleted file mode 100644 index c9d5aea35c72de67ecafec46cd1cad1c8c3ec1fa..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/browserdetails.php +++ /dev/null @@ -1,68 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:BrowserDetails -**********************************/ - - $aryConf['data'] = $this->callPiwikAPI( - 'UserSettings.getBrowserVersion', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['title'] = __('Browser Details', 'wp-piwik'); - $strValues = ''; - $intCount = 0; $intMore = 0; $intSum = 0; - if (isset($aryConf['data']['result']) && $aryConf['data']['result'] ='error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['message'], ENT_QUOTES, 'utf-8'); - else { - if (is_array($aryConf['data'])) - foreach ($aryConf['data'] as $key => $aryValues) { - $intCount++; - if ($intCount <= 9) $strValues .= '["'.$aryValues['label'].'",'.$aryValues['nb_uniq_visitors'].'],'; - else $intMore += $aryValues['nb_uniq_visitors']; - $intSum += $aryValues['nb_uniq_visitors']; - } - if ($intMore) $strValues .= '["'.__('Others', 'wp-piwik').'",'.$intMore.'],'; - $strValues = substr($strValues, 0, -1); - if ($intSum) { -/***************************************************************************/ ?> -<div class="wp-piwik-graph-wide"> - <div id="wp-piwik_stats_browserdetails_graph" style="height:310px;width:100%"></div> -</div> -<?php /************************************************************************/ - } -/***************************************************************************/ ?> -<div class="table"> - <table class="widefat wp-piwik-table"> - <thead> - <tr> - <th><?php _e('Browser', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Unique', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Percent', 'wp-piwik'); ?></th> - </tr> - </thead> - <tbody> -<?php /************************************************************************/ - if ($intSum) - foreach ($aryConf['data'] as $aryValues) - echo '<tr><td>'. - $aryValues['label']. - '</td><td class="n">'. - $aryValues['nb_uniq_visitors']. - '</td><td class="n">'. - number_format($aryValues['nb_uniq_visitors']/$intSum*100, 2). - '%</td></tr>'; - else echo '<tr><td colspan="3">'.__('No data available.', 'wp-piwik').'</td></tr>'; - unset($aryTmp); -/***************************************************************************/ ?> - </tbody> - </table> -</div> -<script type="text/javascript"> -$plotBrowsers = $j.jqplot('wp-piwik_stats_browserdetails_graph', [[<?php echo $strValues; ?>]], { - seriesDefaults:{renderer:$j.jqplot.PieRenderer, rendererOptions:{sliceMargin:8}}, - legend:{show:true} -}); -</script> -<?php - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/browsers.php b/wp-content/plugins/wp-piwik/dashboard/browsers.php deleted file mode 100644 index 7affa594fcadff94e3dd83edff1e9194acde21c0..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/browsers.php +++ /dev/null @@ -1,69 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:Browser -**********************************/ - - $aryConf['data'] = $this->callPiwikAPI( - 'UserSettings.getBrowser', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - - $aryConf['title'] = __('Browser', 'wp-piwik'); - $strValues = ''; - $intCount = 0; $intMore = 0; $intSum = 0; - if (isset($aryConf['data']['result']) && $aryConf['data']['result'] ='error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['message'], ENT_QUOTES, 'utf-8'); - else { - if (is_array($aryConf['data'])) - foreach ($aryConf['data'] as $key => $aryValues) { - $intCount++; - if ($intCount <= 9) $strValues .= '["'.$aryValues['label'].'",'.$aryValues['nb_uniq_visitors'].'],'; - else $intMore += $aryValues['nb_uniq_visitors']; - $intSum += $aryValues['nb_uniq_visitors']; - } - if ($intMore) $strValues .= '["'.__('Others', 'wp-piwik').'",'.$intMore.'],'; - $strValues = substr($strValues, 0, -1); - if ($intSum) { -/***************************************************************************/ ?> -<div class="wp-piwik-graph-wide"> - <div id="wp-piwik_stats_browsers_graph" style="height:310px;width:100%"></div> -</div> -<?php /************************************************************************/ - } -/***************************************************************************/ ?> -<div class="table"> - <table class="widefat wp-piwik-table"> - <thead> - <tr> - <th><?php _e('Browser', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Unique', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Percent', 'wp-piwik'); ?></th> - </tr> - </thead> - <tbody> -<?php /************************************************************************/ - if ($intSum) - foreach ($aryConf['data'] as $aryValues) - echo '<tr><td>'. - $aryValues['label']. - '</td><td class="n">'. - $aryValues['nb_uniq_visitors']. - '</td><td class="n">'. - number_format($aryValues['nb_uniq_visitors']/$intSum*100, 2). - '%</td></tr>'; - else echo '<tr><td colspan="3">'.__('No data available.', 'wp-piwik').'</td></tr>'; - unset($aryTmp); -/***************************************************************************/ ?> - </tbody> - </table> -</div> -<script type="text/javascript"> -$plotBrowsers = $j.jqplot('wp-piwik_stats_browsers_graph', [[<?php echo $strValues; ?>]], { - seriesDefaults:{renderer:$j.jqplot.PieRenderer, rendererOptions:{sliceMargin:8}}, - legend:{show:true} -}); -</script> -<?php - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/index.php b/wp-content/plugins/wp-piwik/dashboard/index.php deleted file mode 100644 index 9b3347dc327ee0179b3df406f1d910c861c05d3a..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/index.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php - // Nothing to see... \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/keywords.php b/wp-content/plugins/wp-piwik/dashboard/keywords.php deleted file mode 100644 index 10d8da34edfcde732d75f85f4a0f4dfb3cb89312..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/keywords.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:Keywords -**********************************/ - - $aryConf['data'] = $this->callPiwikAPI( - 'Referers.getKeywords', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['title'] = __('Keywords', 'wp-piwik'); - if (isset($aryConf['data']['result']) && $aryConf['data']['result'] = 'error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['message'], ENT_QUOTES, 'utf-8'); - else { -/***************************************************************************/ ?> -<table class="widefat"> - <thead> - <tr><th><?php _e('Keyword', 'wp-piwik'); ?></th><th><?php _e('Unique', 'wp-piwik'); ?></th></tr> - </thead> - <tbody> -<?php /************************************************************************/ - if (is_array($aryConf['data'])) foreach ($aryConf['data'] as $aryValues) - echo '<tr><td>'.$aryValues['label'].'</td><td>'.$aryValues['nb_uniq_visitors'].'</td></tr>'; - else echo '<tr><td colspan="2">'.__('No data available.', 'wp-piwik').'</td></tr>'; -/***************************************************************************/ ?> - </tbody> -</table> -<?php /************************************************************************/ - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/noresult.php b/wp-content/plugins/wp-piwik/dashboard/noresult.php deleted file mode 100644 index c6551ef91b0c37bba66eb593cf5ecf07674ba23a..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/noresult.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:SiteSearchNoResults -**********************************/ - - $aryConf['data'] = $this->callPiwikAPI( - 'Actions.getSiteSearchNoResultKeywords', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['title'] = __('Site Search without Results', 'wp-piwik'); - if (isset($aryConf['data']['result']) && $aryConf['data']['result'] = 'error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['message'], ENT_QUOTES, 'utf-8'); - else { -/***************************************************************************/ ?> -<table class="widefat"> - <thead> - <tr><th><?php _e('Keyword', 'wp-piwik'); ?></th><th><?php _e('Requests', 'wp-piwik'); ?></th><th><?php _e('Bounced', 'wp-piwik'); ?></th></tr> - </thead> - <tbody> -<?php /************************************************************************/ - if (is_array($aryConf['data'])) foreach ($aryConf['data'] as $aryValues) - echo '<tr><td>'.$aryValues['label'].'</td><td>'.$aryValues['nb_visits'].'</td><td>'.$aryValues['bounce_rate'].'</td></tr>'; - else echo '<tr><td colspan="2">'.__('No data available.', 'wp-piwik').'</td></tr>'; -/***************************************************************************/ ?> - </tbody> -</table> -<?php /************************************************************************/ - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/overview.php b/wp-content/plugins/wp-piwik/dashboard/overview.php deleted file mode 100644 index e9c8cb331018daf02102439d788bf72a1637db24..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/overview.php +++ /dev/null @@ -1,70 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:Overview -**********************************/ - $aryTmp = array( - 'bounce_count' => 0, - 'max_actions' => 0, - 'nb_actions' => 0, - 'nb_uniq_visitors' => 0, - 'nb_visits' => 0, - 'nb_visits_converted' => 0, - 'sum_visit_length' => 0, - 'bounce_rate' => 0, - 'nb_actions_per_visit' => 0, - 'avg_time_on_site' => 0 - ); - $aryConf['data'] = $this->callPiwikAPI( - 'VisitsSummary.get', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['title'] = __('Overview', 'wp-piwik'); - - if (isset($aryConf['data']['result']) && $aryConf['data']['result'] ='error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['message'], ENT_QUOTES, 'utf-8'); - else { - if ($aryConf['params']['date'] == 'last30') { - $intValCnt = 0; - if (is_array($aryConf['data'])) - foreach ($aryConf['data'] as $aryDay) - foreach ($aryDay as $strKey => $strValue) { - $intValCnt++; - if (!in_array($strKey, array('max_actions','bounce_rate','nb_actions_per_visit','avg_time_on_site'))) - $aryTmp[$strKey] += $strValue; - elseif ($aryTmp[$strKey] < $strValue) - $aryTmp[$strKey] = $strValue; - } - $aryConf['data'] = $aryTmp; - if ($intValCnt > 1 && $aryConf['data']['nb_visits'] >0) $aryConf['data']['bounce_rate'] = round($aryConf['data']['bounce_count']/$aryConf['data']['nb_visits']*100).'%'; - } - if (empty($aryConf['data'])) $aryConf['data'] = $aryTmp; -/***************************************************************************/ ?> -<div class="table"> - <table class="widefat"> - <tbody> -<?php /************************************************************************/ - $strTime = - floor($aryConf['data']['sum_visit_length']/3600).'h '. - floor(($aryConf['data']['sum_visit_length'] % 3600)/60).'m '. - floor(($aryConf['data']['sum_visit_length'] % 3600) % 60).'s'; - $strAvgTime = - floor($aryConf['data']['avg_time_on_site']/3600).'h '. - floor(($aryConf['data']['avg_time_on_site'] % 3600)/60).'m '. - floor(($aryConf['data']['avg_time_on_site'] % 3600) % 60).'s'; - echo '<tr><td>'.__('Visitors', 'wp-piwik').':</td><td>'.$aryConf['data']['nb_visits'].'</td></tr>'; - echo '<tr><td>'.__('Unique visitors', 'wp-piwik').':</td><td>'.$aryConf['data']['nb_uniq_visitors'].'</td></tr>'; - echo '<tr><td>'.__('Page views', 'wp-piwik').':</td><td>'.$aryConf['data']['nb_actions'].' (Ø '.$aryConf['data']['nb_actions_per_visit'].')</td></tr>'; - echo '<tr><td>'.__('Max. page views in one visit', 'wp-piwik').':</td><td>'.$aryConf['data']['max_actions'].'</td></tr>'; - echo '<tr><td>'.__('Total time spent', 'wp-piwik').':</td><td>'.$strTime.'</td></tr>'; - echo '<tr><td>'.__('Time/visit', 'wp-piwik').':</td><td>'.$strAvgTime.'</td></tr>'; - echo '<tr><td>'.__('Bounce count', 'wp-piwik').':</td><td>'.$aryConf['data']['bounce_count'].' ('.$aryConf['data']['bounce_rate'].')</td></tr>'; - if (self::$settings->getGlobalOption('piwik_shortcut')) - echo '<tr><td>'.__('Shortcut', 'wp-piwik').':</td><td><a href="'.self::$settings->getGlobalOption('piwik_url').'">Piwik</a>'.(isset($aryConf['inline']) && $aryConf['inline']?' - <a href="?page=wp-piwik_stats">WP-Piwik</a>':'').'</td></tr>'; -/***************************************************************************/ ?> - </tbody> - </table> -</div> -<?php /************************************************************************/ - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/pages.php b/wp-content/plugins/wp-piwik/dashboard/pages.php deleted file mode 100644 index 682c57e6b480c9d2669b6a81403e4cf679902bda..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/pages.php +++ /dev/null @@ -1,57 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:Pages -**********************************/ - - $aryConf['data'] = $this->callPiwikAPI( - 'Actions.getPageTitles', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $intMax = 9; - $aryConf['title'] = __('Pages', 'wp-piwik'); - - if (isset($aryConf['data']['result']) && $aryConf['data']['result'] = 'error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['message'], ENT_QUOTES, 'utf-8'); - else { -/***************************************************************************/ ?> -<div class="table"> - <table class="widefat wp-piwik-table"> - <thead> - <tr> - <th><?php _e('Page', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Unique', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Visits', 'wp-piwik'); ?></th> - </tr> - </thead> - <tbody> -<?php /************************************************************************/ - $intCount = 0; $aryOthers = array('u' => 0, 'v' => 0); - if (is_array($aryConf['data'])) foreach ($aryConf['data'] as $aryValues) { - $intCount++; - if ($intCount > $intMax) { - $aryOthers['u'] += (isset($aryValues['nb_uniq_visitors'])?$aryValues['nb_uniq_visitors']:0); - $aryOthers['v'] += (isset($aryValues['nb_visits'])?$aryValues['nb_visits']:0); - } else echo '<tr><td>'. - $aryValues['label']. - '</td><td class="n">'. - $aryValues['nb_uniq_visitors']. - '</td><td class="n">'. - $aryValues['nb_visits']. - '</td></tr>'; - } else echo '<tr><td colspan="3">'.__('No data available.', 'wp-piwik').'</td></tr>'; - if (!empty($aryOthers['v'])) echo '<tr><td>'. - __('Others', 'wp-piwik'). - '</td><td class="n">'. - $aryOthers['u']. - '</td><td class="n">'. - $aryOthers['v']. - '</td></tr>'; - -/***************************************************************************/ ?> - </tbody> - </table> -</div> -<?php /************************************************************************/ - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/plugins.php b/wp-content/plugins/wp-piwik/dashboard/plugins.php deleted file mode 100644 index 2313cdfe69da8c8c3eff9d0d215b51d874e238ec..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/plugins.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:Plugins -**********************************/ - - $aryConf['data'] = $this->callPiwikAPI( - 'UserSettings.getPlugin', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['title'] = __('Plugins', 'wp-piwik'); - - $aryOverview = $this->callPiwikAPI( - 'VisitsSummary.get', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - - $intTotalVisits = (isset($aryOverview['nb_visits'])?$aryOverview['nb_visits']:0); - - unset($aryOverview); - - if (isset($aryConf['data']['result']) && $aryConf['data']['result'] = 'error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['message'], ENT_QUOTES, 'utf-8'); - else { -/***************************************************************************/ ?> -<div class="table"> - <table class="widefat wp-piwik-table"> - <thead> - <tr> - <th><?php _e('Plugins', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Visits', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Percent', 'wp-piwik'); ?></th> - </tr> - </thead> - <tbody> -<?php /************************************************************************/ - if (is_array($aryConf['data'])) foreach ($aryConf['data'] as $aryValues) - echo '<tr><td>'. - $aryValues['label']. - '</td><td class="n">'. - $aryValues['nb_visits']. - '</td><td class="n">'. - ($intTotalVisits != 0? - number_format(($aryValues['nb_visits']/$intTotalVisits*100),2): - '0.00%' - ). - '%</td></tr>'; - else echo '<tr><td colspan="3">'.__('No data available.', 'wp-piwik').'</td></tr>'; - unset($aryTmp); -/***************************************************************************/ ?> - </tbody> - </table> -</div> -<?php /************************************************************************/ - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/screens.php b/wp-content/plugins/wp-piwik/dashboard/screens.php deleted file mode 100644 index 3ac61fc796c7aaba99634ec1c40e0426335375ac..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/screens.php +++ /dev/null @@ -1,68 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:Screens -**********************************/ - - $aryConf['data'] = $this->callPiwikAPI( - 'UserSettings.getResolution', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['title'] = __('Resolution', 'wp-piwik'); - $strValues = ''; - $intCount = 0; $intMore = 0; $intSum = 0; - if (isset($aryConf['data']['result']) && $aryConf['data']['result'] ='error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['message'], ENT_QUOTES, 'utf-8'); - else { - if (is_array($aryConf['data'])) - foreach ($aryConf['data'] as $key => $aryValues) { - $intCount++; - if ($intCount <= 9) $strValues .= '["'.$aryValues['label'].'",'.$aryValues['nb_uniq_visitors'].'],'; - else $intMore += $aryValues['nb_uniq_visitors']; - $intSum += $aryValues['nb_uniq_visitors']; - } - if ($intMore) $strValues .= '["'.__('Others', 'wp-piwik').'",'.$intMore.'],'; - $strValues = substr($strValues, 0, -1); - if ($intSum) { -/***************************************************************************/ ?> -<div class="wp-piwik-graph-wide"> - <div id="wp-piwik_stats_screens_graph" style="height:310px;width:100%"></div> -</div> -<?php /************************************************************************/ - } -/***************************************************************************/ ?> -<div class="table"> - <table class="widefat wp-piwik-table"> - <thead> - <tr> - <th><?php _e('Resolution', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Unique', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Percent', 'wp-piwik'); ?></th> - </tr> - </thead> - <tbody> -<?php /************************************************************************/ - if ($intSum) - foreach ($aryConf['data'] as $aryValues) - echo '<tr><td>'. - $aryValues['label']. - '</td><td class="n">'. - $aryValues['nb_uniq_visitors']. - '</td><td class="n">'. - number_format($aryValues['nb_uniq_visitors']/$intSum*100, 2). - '%</td></tr>'; - else echo '<tr><td colspan="3">'.__('No data available.', 'wp-piwik').'</td></tr>'; - unset($aryTmp); -/***************************************************************************/ ?> - </tbody> - </table> -</div> -<script type="text/javascript"> -$plotScreens = $j.jqplot('wp-piwik_stats_screens_graph', [[<?php echo $strValues; ?>]], { - seriesDefaults:{renderer:$j.jqplot.PieRenderer, rendererOptions:{sliceMargin:8}}, - legend:{show:true} -}); -</script> -<?php - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/search.php b/wp-content/plugins/wp-piwik/dashboard/search.php deleted file mode 100644 index e115063d2dcd4239ce251df51eb2dcc2d91c18b9..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/search.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:SiteSearch -**********************************/ - - $aryConf['data'] = $this->callPiwikAPI( - 'Actions.getSiteSearchKeywords', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['title'] = __('Site Search Keywords', 'wp-piwik'); - if (isset($aryConf['data']['result']) && $aryConf['data']['result'] = 'error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['message'], ENT_QUOTES, 'utf-8'); - else { -/***************************************************************************/ ?> -<table class="widefat"> - <thead> - <tr><th><?php _e('Keyword', 'wp-piwik'); ?></th><th><?php _e('Requests', 'wp-piwik'); ?></th><th><?php _e('Bounced', 'wp-piwik'); ?></th></tr> - </thead> - <tbody> -<?php /************************************************************************/ - if (is_array($aryConf['data'])) foreach ($aryConf['data'] as $aryValues) - echo '<tr><td>'.$aryValues['label'].'</td><td>'.$aryValues['nb_visits'].'</td><td>'.$aryValues['bounce_rate'].'</td></tr>'; - else echo '<tr><td colspan="2">'.__('No data available.', 'wp-piwik').'</td></tr>'; -/***************************************************************************/ ?> - </tbody> -</table> -<?php /************************************************************************/ - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/seo.php b/wp-content/plugins/wp-piwik/dashboard/seo.php deleted file mode 100644 index aa44663fa80f5c1e598f0e1171a9058db2a95da1..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/seo.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:SEO -**********************************/ - $aryConf['data'] = $GLOBALS['wp_piwik']->callPiwikAPI( - 'SEO.getRank', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'], - false, - false, - 'csv' - ); - - if (substr($aryConf['data'], 0, 6) == 'Error:') { - $strMessage = str_replace('Error:', '', $aryConf['data']); - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($strMessage, ENT_QUOTES, 'utf-8'); - } else { - - $aryConf['title'] = __('SEO', 'wp-piwik'); - $aryLines = explode("\n", $aryConf['data']); - foreach ($aryLines as $strLine) - $aryData[] = explode(',', $strLine); - unset($aryData[0]); -/***************************************************************************/ ?> -<div class="table"> - <table class="widefat"> - <tbody> - <?php foreach ($aryData as $aryVal) { ?> - <tr><td><?php echo $aryVal[0]; ?></td><td><?php echo $aryVal[1]; ?></td></tr> - <?php } ?> - </tbody> - </table> -</div> -<?php /************************************************************************/ - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/systems.php b/wp-content/plugins/wp-piwik/dashboard/systems.php deleted file mode 100644 index c0beb1762d6ce2ac8ba0f50ce72ec5eaa215afb0..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/systems.php +++ /dev/null @@ -1,69 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:Systems -**********************************/ - - $aryConf['data'] = $this->callPiwikAPI( - 'UserSettings.getOS', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['title'] = __('Operating System', 'wp-piwik'); - $strValues = ''; - $intCount = 0; $intMore = 0; $intSum = 0; - if (isset($aryConf['data']['result']) && $aryConf['data']['result'] ='error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['message'], ENT_QUOTES, 'utf-8'); - else { - if (is_array($aryConf['data'])) - foreach ($aryConf['data'] as $key => $aryValues) { - $intCount++; - if ($intCount <= 9) $strValues .= '["'.$aryValues['label'].'",'.$aryValues['nb_uniq_visitors'].'],'; - else $intMore += $aryValues['nb_uniq_visitors']; - $intSum += $aryValues['nb_uniq_visitors']; - } - if ($intMore) $strValues .= '["'.__('Others', 'wp-piwik').'",'.$intMore.'],'; - $strValues = substr($strValues, 0, -1); - - if ($intSum) { -/***************************************************************************/ ?> -<div class="wp-piwik-graph-wide"> - <div id="wp-piwik_stats_systems_graph" style="height:310px;width:100%"></div> -</div> -<?php /************************************************************************/ - } -/***************************************************************************/ ?> -<div class="table"> - <table class="widefat wp-piwik-table"> - <thead> - <tr> - <th><?php _e('Operating System', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Unique', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Percent', 'wp-piwik'); ?></th> - </tr> - </thead> - <tbody> -<?php /************************************************************************/ - if ($intSum) - foreach ($aryConf['data'] as $aryValues) - echo '<tr><td>'. - $aryValues['label']. - '</td><td class="n">'. - $aryValues['nb_uniq_visitors']. - '</td><td class="n">'. - number_format($aryValues['nb_uniq_visitors']/$intSum*100, 2). - '%</td></tr>'; - else echo '<tr><td colspan="3">'.__('No data available.', 'wp-piwik').'</td></tr>'; - unset($aryTmp); -/***************************************************************************/ ?> - </tbody> - </table> -</div> -<script type="text/javascript"> -$plotSystems = $j.jqplot('wp-piwik_stats_systems_graph', [[<?php echo $strValues; ?>]], { - seriesDefaults:{renderer:$j.jqplot.PieRenderer, rendererOptions:{sliceMargin:8}}, - legend:{show:true} -}); -</script> -<?php -} \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/visitors.php b/wp-content/plugins/wp-piwik/dashboard/visitors.php deleted file mode 100644 index 1747dec6837d253b01ebb4adf450291a0ab9679c..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/visitors.php +++ /dev/null @@ -1,99 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:Vistors -**********************************/ - - $aryConf['data']['Visitors'] = $this->callPiwikAPI( - 'VisitsSummary.getVisits', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['data']['Unique'] = $this->callPiwikAPI( - 'VisitsSummary.getUniqueVisitors', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['data']['Bounced'] = $this->callPiwikAPI( - 'VisitsSummary.getBounceCount', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['data']['Actions'] = $this->callPiwikAPI( - 'VisitsSummary.getActions', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - - if (isset($aryConf['data']['Visitors']['result']) && $aryConf['data']['Visitors']['result'] ='error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['Visitors']['message'], ENT_QUOTES, 'utf-8'); - else { - $strValues = $strLabels = $strBounced = $strValuesU = $strCounter = ''; - $intUSum = $intCount = 0; - if (is_array($aryConf['data']['Visitors'])) - foreach ($aryConf['data']['Visitors'] as $strDate => $intValue) { - $intCount++; - $strValues .= $intValue.','; - $strValuesU .= $aryConf['data']['Unique'][$strDate].','; - $strBounced .= $aryConf['data']['Bounced'][$strDate].','; - $strLabels .= '['.$intCount.',"'.substr($strDate,-2).'"],'; - $intUSum += $aryConf['data']['Unique'][$strDate]; - } - else {$strValues = '0,'; $strLabels = '[0,"-"],'; $strValuesU = '0,'; $strBounced = '0,'; } - $intAvg = round($intUSum/30,0); - $strValues = substr($strValues, 0, -1); - $strValuesU = substr($strValuesU, 0, -1); - $strLabels = substr($strLabels, 0, -1); - $strBounced = substr($strBounced, 0, -1); - $strCounter = substr($strCounter, 0, -1); - -/***************************************************************************/ ?> -<div class="wp-piwik-graph-wide" title="<?php _e('The graph contains the values shown in the table below (visitors / unique / bounces). The red line show a linear trendline (unique).', 'wp-piwik'); ?>"> - <div id="wp-piwik_stats_vistors_graph" style="height:220px;<?php if (!isset($aryConf['inline']) || $aryConf['inline'] != true) { ?>width:100%<?php } ?>"></div> -</div> -<?php if (!isset($aryConf['inline']) || $aryConf['inline'] != true) { ?> -<div class="table"> - <table class="widefat wp-piwik-table"> - <thead> - <tr> - <th><?php _e('Date', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Visits', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Unique', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Bounced', 'wp-piwik'); ?></th> - <th class="n"><?php _e('Page Views', 'wp-piwik'); ?></th> - </tr> - </thead> - <tbody style="cursor:pointer;"> -<?php /************************************************************************/ - if (is_array($aryConf['data']['Visitors'])) { - $aryTmp = array_reverse($aryConf['data']['Visitors']); - foreach ($aryTmp as $strDate => $intValue) - echo '<tr onclick="javascript:datelink(\''.urlencode('wp-piwik_stats').'\',\''.str_replace('-', '', $strDate).'\',\''.(isset($_GET['wpmu_show_stats'])?(int) $_GET['wpmu_show_stats']:'').'\');"><td>'.$strDate.'</td><td class="n">'. - $intValue.'</td><td class="n">'. - $aryConf['data']['Unique'][$strDate]. - '</td><td class="n">'. - $aryConf['data']['Bounced'][$strDate]. - '</td><td class="n">'. - $aryConf['data']['Actions'][$strDate]. - '</td></tr>'."\n"; - } - echo '<tr><td class="n" colspan="4"><strong>'.__('Unique TOTAL', 'wp-piwik').'</strong> '.__('Sum', 'wp-piwik').': '.$intUSum.' '.__('Avg', 'wp-piwik').': '.$intAvg.'</td></tr>'; - unset($aryTmp); -/***************************************************************************/ ?> - </tbody> - </table> -</div> -<?php } ?> -<script type="text/javascript"> -$plotVisitors = $j.jqplot('wp-piwik_stats_vistors_graph', [[<?php echo $strValues; ?>],[<?php echo $strValuesU; ?>],[<?php echo $strBounced;?>]], -{ - axes:{yaxis:{min:0, tickOptions:{formatString:'%.0f'}},xaxis:{min:1,max:30,ticks:[<?php echo $strLabels; ?>]}}, - seriesDefaults:{showMarker:false,lineWidth:1,fill:true,fillAndStroke:true,fillAlpha:0.9,trendline:{show:false,color:'#C00',lineWidth:1.5,type:'exp'}}, - series:[{color:'#90AAD9',fillColor:'#D4E2ED'},{color:'#A3BCEA',fillColor:'#E4F2FD',trendline:{show:true,label:'Unique visitor trend'}},{color:'#E9A0BA',fillColor:'#FDE4F2'}], -}); -</script> -<?php - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/dashboard/websites.php b/wp-content/plugins/wp-piwik/dashboard/websites.php deleted file mode 100644 index 46df51635dae8ab20465ce070274d9dac08f862c..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/dashboard/websites.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php -/********************************* - WP-Piwik::Stats:Websites -**********************************/ - - $aryConf['data'] = $this->callPiwikAPI( - 'Referers.getWebsites', - $aryConf['params']['period'], - $aryConf['params']['date'], - $aryConf['params']['limit'] - ); - $aryConf['title'] = __('Websites', 'wp-piwik'); - - if (isset($aryConf['data']['result']) && $aryConf['data']['result'] = 'error') - echo '<strong>'.__('Piwik error', 'wp-piwik').':</strong> '.htmlentities($aryConf['data']['message'], ENT_QUOTES, 'utf-8'); - else { -/***************************************************************************/ ?> -<table class="widefat"> - <thead> - <tr> - <th><?php _e('Website', 'wp-piwik'); ?></th> - <th><?php _e('Unique', 'wp-piwik'); ?></th> - </tr> - </thead> - <tbody> -<?php /************************************************************************/ - if (is_array($aryConf['data'])) foreach ($aryConf['data'] as $aryValues) - echo '<tr><td>'.$aryValues['label'].'</td><td>'.$aryValues['nb_uniq_visitors'].'</td></tr>'; - else echo '<tr><td colspan="2">'.__('No data available.', 'wp-piwik').'</td></tr>'; -/***************************************************************************/ ?> - </tbody> -</table> -<?php /************************************************************************/ - } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/debug/.htaccess b/wp-content/plugins/wp-piwik/debug/.htaccess deleted file mode 100644 index 3a42882788717c9ed1d5c2fcc3277d21ec13152b..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/debug/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/wp-content/plugins/wp-piwik/debug/testscript.php b/wp-content/plugins/wp-piwik/debug/testscript.php deleted file mode 100644 index d40693d3217e77bd6e464482635a97a2ae8163f5..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/debug/testscript.php +++ /dev/null @@ -1,86 +0,0 @@ -<?php -/** - * WP-Piwik - * Piwik API call test script revision 4 - */ - -/***************** - * CONFIGURATION * - *****************/ - -// PIWIK URL, e.g. http://www.website.example/piwik -$strPiwikURL = self::$settings->getGlobalOption('piwik_url'); -// PIWIK AUTH TOKEN, e.g. 1234a5cd6789e0a12345b678cd9012ef -$strPiwikAuthToken = self::$settings->getGlobalOption('piwik_token'); -// YOUR BLOG'S URL, e.g. http://www.website.example -$strPiwikYourBlogURL = get_bloginfo('url'); -// User agent -$strUA = self::$settings->getGlobalOption('piwik_useragent')=='php'?ini_get('user_agent'):self::$settings->getGlobalOption('piwik_useragent_string'); - -/* That's all, stop editing! */ - -/** - * Get remote file - * - * @param String $strURL Remote file URL - */ -function getRemoteFile($strURL, $strToken, $bolSSL, $strUA) { - // Use cURL if available - if (function_exists('curl_init')) { - // Init cURL - $c = curl_init($strURL.$strToken); - // Configure cURL CURLOPT_RETURNTRANSFER = 1 - curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); - // Verbose = 1 - curl_setopt($c, CURLOPT_VERBOSE, 1); - // Configure cURL CURLOPT_HEADER = 1 & CURLINFO_HEADER_OUT = 1 - curl_setopt($c, CURLOPT_HEADER, 1); - curl_setopt($c, CURLINFO_HEADER_OUT, 1); - // Configure SSL peer verification - curl_setopt($c, CURLOPT_SSL_VERIFYPEER, $bolSSL); - // Set user agent - curl_setopt($c, CURLOPT_USERAGENT, $strUA); - // Get result - $strResult = curl_exec($c); - // Close connection - curl_close($c); - // cURL not available but url fopen allowed - } elseif (ini_get('allow_url_fopen')) - // Get file using file_get_contents - $strResult = file_get_contents($strURL.$strToken); - // Error: Not possible to get remote file - else $strResult = serialize(array( - 'result' => 'error', - 'message' => 'Remote access to Piwik not possible. Enable allow_url_fopen or CURL.' - )); - // Return result - return $strResult; -} - -if (substr($strPiwikURL, -1, 1) != '/' && substr($strPiwikURL, -10, 10) != '/index.php') - $strPiwikURL .= '/'; - -$aryURLs = array(); -$aryURLs['SitesManager.getSitesWithAtLeastViewAccess'] = $strPiwikURL.'?module=API&method=SitesManager.getSitesWithAtLeastViewAccess&format=XML'; -$aryURLs['SitesManager.getSitesIdFromSiteUrl'] = $strPiwikURL.'?module=API&method=SitesManager.getSitesIdFromSiteUrl&url='.urlencode($strPiwikYourBlogURL).'&format=XML'; -$strToken = '&token_auth='.$strPiwikAuthToken; -$intTest = 0; -?> -<textarea readonly="readonly" rows="13" cols="100"> -<?php -foreach ($aryURLs as $strMethod => $strURL) { - $intTest++; - echo '*** Test '.$intTest.'/'.count($aryURLs).': '.$strMethod.' ***'."\n"; - echo 'Using: '.(function_exists('curl_init')?'cURL':'fopen')."\n"; - echo 'SSL peer verification: '.(function_exists('curl_init') && !self::$settings->getGlobalOption('disable_ssl_verify')?'enabled':'disabled')."\n"; - echo 'User Agent: '.$strUA."\n"; - echo 'Call: '.$strURL.'&token_auth= + TOKEN'."\n"; - $x = microtime(true); - $strResult = getRemoteFile($strURL,$strToken,!self::$settings->getGlobalOption('disable_ssl_verify'),$strUA); - $x = microtime(true) - $x; - echo 'Result:'."\n"; - echo htmlentities($strResult)."\n"; - echo 'Time: '.round($x,2).'s'.($intTest < count($aryURLs)?"\n\n":''); -} -?> -</textarea> \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/debug/testscript_standalone.php b/wp-content/plugins/wp-piwik/debug/testscript_standalone.php deleted file mode 100644 index 60b7a58b39b3ae7b61705045a6b3004ed3d85630..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/debug/testscript_standalone.php +++ /dev/null @@ -1,88 +0,0 @@ -<?php -/** - * WP-Piwik - * Piwik API call test script revision 4 - */ - -/***************** - * CONFIGURATION * - *****************/ - -// PIWIK URL, e.g. http://www.website.example/piwik -$strPiwikURL = ""; -// PIWIK AUTH TOKEN, e.g. 1234a5cd6789e0a12345b678cd9012ef -$strPiwikAuthToken = ""; -// YOUR BLOG'S URL, e.g. http://www.website.example -$strPiwikYourBlogURL = ""; -// User agent -$strUA = ini_get('user_agent'); -// SSL peer verification -$bolDisableSSLVer = false; - -/* That's all, stop editing! */ - -/** - * Get remote file - * - * @param String $strURL Remote file URL - */ -function getRemoteFile($strURL, $strToken, $bolSSL, $strUA) { - // Use cURL if available - if (function_exists('curl_init')) { - // Init cURL - $c = curl_init($strURL.$strToken); - // Configure cURL CURLOPT_RETURNTRANSFER = 1 - curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); - // Verbose = 1 - curl_setopt($c, CURLOPT_VERBOSE, 1); - // Configure cURL CURLOPT_HEADER = 1 & CURLINFO_HEADER_OUT = 1 - curl_setopt($c, CURLOPT_HEADER, 1); - curl_setopt($c, CURLINFO_HEADER_OUT, 1); - // Configure SSL peer verification - curl_setopt($c, CURLOPT_SSL_VERIFYPEER, $bolSSL); - // Set user agent - curl_setopt($c, CURLOPT_USERAGENT, $strUA); - // Get result - $strResult = curl_exec($c); - // Close connection - curl_close($c); - // cURL not available but url fopen allowed - } elseif (ini_get('allow_url_fopen')) - // Get file using file_get_contents - $strResult = file_get_contents($strURL.$strToken); - // Error: Not possible to get remote file - else $strResult = serialize(array( - 'result' => 'error', - 'message' => 'Remote access to Piwik not possible. Enable allow_url_fopen or CURL.' - )); - // Return result - return $strResult; -} - -if (substr($strPiwikURL, -1, 1) != '/' && substr($strPiwikURL, -10, 10) != '/index.php') - $strPiwikURL .= '/'; - -$aryURLs = array(); -$aryURLs['SitesManager.getSitesWithAtLeastViewAccess'] = $strPiwikURL.'?module=API&method=SitesManager.getSitesWithAtLeastViewAccess&format=XML'; -$aryURLs['SitesManager.getSitesIdFromSiteUrl'] = $strPiwikURL.'?module=API&method=SitesManager.getSitesIdFromSiteUrl&url='.urlencode($strPiwikYourBlogURL).'&format=XML'; -$strToken = '&token_auth='.$strPiwikAuthToken; -$intTest = 0; -?> -<textarea readonly="readonly" rows="13" cols="100"> -<?php -foreach ($aryURLs as $strMethod => $strURL) { - $intTest++; - echo '*** Test '.$intTest.'/'.count($aryURLs).': '.$strMethod.' ***'."\n"; - echo 'Using: '.(function_exists('curl_init')?'cURL':'fopen')."\n"; - echo 'SSL peer verification: '.(function_exists('curl_init') && !$bolDisableSSLVer?'enabled':'disabled')."\n"; - echo 'User Agent: '.$strUA."\n"; - echo 'Call: '.$strURL.'&token_auth= + TOKEN'."\n"; - $x = microtime(true); - $strResult = getRemoteFile($strURL,$strToken,!$bolDisableSSLVer,$strUA); - $x = microtime(true) - $x; - echo 'Result:'."\n"; - echo htmlentities($strResult)."\n"; - echo 'Time: '.round($x,2).'s'.($intTest < count($aryURLs)?"\n\n":''); -} -?> -</textarea> \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/gpl-3.0.html b/wp-content/plugins/wp-piwik/gpl-3.0.html old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/index.php b/wp-content/plugins/wp-piwik/index.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/index.php b/wp-content/plugins/wp-piwik/js/index.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/IMPORTANT_NOTICE.txt b/wp-content/plugins/wp-piwik/js/jqplot/IMPORTANT_NOTICE.txt old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/MIT-LICENSE.txt b/wp-content/plugins/wp-piwik/js/jqplot/MIT-LICENSE.txt old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/README.txt b/wp-content/plugins/wp-piwik/js/jqplot/README.txt old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/changes.txt b/wp-content/plugins/wp-piwik/js/jqplot/changes.txt old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/copyright.txt b/wp-content/plugins/wp-piwik/js/jqplot/copyright.txt old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/excanvas.min.js b/wp-content/plugins/wp-piwik/js/jqplot/excanvas.min.js old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/gpl-2.0.txt b/wp-content/plugins/wp-piwik/js/jqplot/gpl-2.0.txt old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/index.php b/wp-content/plugins/wp-piwik/js/jqplot/index.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/jquery.jqplot.min.css b/wp-content/plugins/wp-piwik/js/jqplot/jquery.jqplot.min.css old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/jquery.jqplot.min.js b/wp-content/plugins/wp-piwik/js/jqplot/jquery.jqplot.min.js old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/plugins/jqplot.pieRenderer.min.js b/wp-content/plugins/wp-piwik/js/jqplot/plugins/jqplot.pieRenderer.min.js old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/plugins/jqplot.trendline.min.js b/wp-content/plugins/wp-piwik/js/jqplot/plugins/jqplot.trendline.min.js old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/usage.txt b/wp-content/plugins/wp-piwik/js/jqplot/usage.txt old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/jqplot/wp-piwik.jqplot.js b/wp-content/plugins/wp-piwik/js/jqplot/wp-piwik.jqplot.js old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/sparkline/index.php b/wp-content/plugins/wp-piwik/js/sparkline/index.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/sparkline/jquery.sparkline.js b/wp-content/plugins/wp-piwik/js/sparkline/jquery.sparkline.js old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/sparkline/jquery.sparkline.min.js b/wp-content/plugins/wp-piwik/js/sparkline/jquery.sparkline.min.js old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/js/wp-piwik.js b/wp-content/plugins/wp-piwik/js/wp-piwik.js old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/.htaccess b/wp-content/plugins/wp-piwik/languages/.htaccess old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/.tx/config b/wp-content/plugins/wp-piwik/languages/.tx/config old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/index.php b/wp-content/plugins/wp-piwik/languages/index.php deleted file mode 100644 index 9b3347dc327ee0179b3df406f1d910c861c05d3a..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/languages/index.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php - // Nothing to see... \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/languages/update.sh b/wp-content/plugins/wp-piwik/languages/update.sh old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-az_AZ.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-az_AZ.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-az_AZ.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-az_AZ.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-cs_CZ.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-cs_CZ.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-cs_CZ.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-cs_CZ.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-de_CH.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-de_CH.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-de_CH.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-de_CH.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-el.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-el.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-el.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-el.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-el_GR.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-el_GR.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-el_GR.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-el_GR.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-es_ES.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-es_ES.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-es_ES.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-es_ES.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-fa_IR.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-fa_IR.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-fa_IR.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-fa_IR.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-fr_FR.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-fr_FR.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-fr_FR.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-fr_FR.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-hi.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-hi.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-hi.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-hi.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-hu_HU.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-hu_HU.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-hu_HU.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-hu_HU.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-id.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-id.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-id.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-id.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-it_IT.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-it_IT.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-it_IT.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-it_IT.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-lb.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-lb.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-lb.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-lb.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-lt_LT.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-lt_LT.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-lt_LT.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-lt_LT.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-nb_NO.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-nb_NO.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-nb_NO.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-nb_NO.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-nl_NL.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-nl_NL.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-nl_NL.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-nl_NL.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-pl_PL.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-pl_PL.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-pl_PL.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-pl_PL.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-pt_BR.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-pt_BR.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-pt_BR.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-pt_BR.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-ro_RO.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-ro_RO.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-ro_RO.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-ro_RO.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-ru_RU.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-ru_RU.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-ru_RU.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-ru_RU.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-sl_SI.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-sl_SI.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-sl_SI.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-sl_SI.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-sv_SE.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-sv_SE.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-sv_SE.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-sv_SE.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-tr_TR.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-tr_TR.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-tr_TR.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-tr_TR.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-ua_UA.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-ua_UA.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-ua_UA.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-ua_UA.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-uk_UA.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-uk_UA.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-uk_UA.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-uk_UA.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-zh_CN.mo b/wp-content/plugins/wp-piwik/languages/wp-piwik-zh_CN.mo old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik-zh_CN.po b/wp-content/plugins/wp-piwik/languages/wp-piwik-zh_CN.po old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/languages/wp-piwik.pot b/wp-content/plugins/wp-piwik/languages/wp-piwik.pot old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/logs/.htaccess b/wp-content/plugins/wp-piwik/logs/.htaccess old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/logs/index.php b/wp-content/plugins/wp-piwik/logs/index.php deleted file mode 100644 index 9b3347dc327ee0179b3df406f1d910c861c05d3a..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/logs/index.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php - // Nothing to see... \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/piwik.php b/wp-content/plugins/wp-piwik/piwik.php deleted file mode 100644 index 8c0341f263bb5aa7e6c8349fb7dcde7b6bb2db67..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/piwik.php +++ /dev/null @@ -1,126 +0,0 @@ -<?php - - require('../../../wp-load.php'); - require_once('classes/WP_Piwik_Settings.php'); - require_once('classes/WP_Piwik_Logger_Dummy.php'); - - $logger = new WP_Piwik_Logger_Dummy(__CLASS__); - $settings = new WP_Piwik_Settings($logger); - -/* PIWIK PROXY SCRIPT */ - -/* == Description == - This script allows to track statistics using Piwik, without revealing the - Piwik Server URL. This is useful for users who track multiple websites - in the same Piwik server, but don't want to show in the source code of all tracked - websites the Piwik server URL. - - == Requirements == - To run this properly you will need - - Piwik server latest version - - One or several website(s) to track with this Piwik server, for example http://trackedsite.com - - The website to track must run on a server with PHP5 support - - In your php.ini you must check that the following is set: "allow_url_fopen = On" - - == How to track trackedsite.com in your Piwik without revealing the Piwik server URL? == - - 1) In your Piwik server, login as Super user - 2) create a user, set the login for example: "UserTrackingAPI" - 3) Assign this user "admin" permission on all websites you wish to track without showing the Piwik URL - 4) Copy the "token_auth" for this user, and paste it below in this file, in $TOKEN_AUTH = "xyz" - 5) In this file, below this help test, edit $PIWIK_URL variable and change http://piwik-server.com/piwik/ with the URL to your Piwik server. - 6) Upload this modified piwik.php file in the website root directory, for example at: http://trackedsite.com/piwik.php - This file (http://trackedsite.com/piwik.php) will be called by the Piwik Javascript, - instead of calling directly the (secret) Piwik Server URL (http://piwik-server.com/piwik/). - 7) You now need to add the modified Piwik Javascript Code to the footer of your pages at http://trackedsite.com/ - Go to Piwik > Settings > Websites > Show Javascript Tracking Code. - Copy the Javascript snippet. Then, edit this code and change the last lines to the following: - [...] - (function() { - var u=(("https:" == document.location.protocol) ? "https" : "http") + "://trackedsite.com/"; - _paq.push(["setTrackerUrl", u+"piwik.php"]); - var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; - g.defer=true; g.async=true; g.src=u+"piwik.php"; s.parentNode.insertBefore(g,s); - })(); - </script> - <!-- End Piwik Code --> - - What's changed in this code snippet compared to the normal Piwik code? - A) the (secret) Piwik URL is now replaced by your website URL - B) the "piwik.js" becomes "piwik.php" because this piwik.php proxy script will also display and proxy the Javascript file - C) the <noscript> part of the code at the end is removed, - since it is not currently used by Piwik, and it contains the (secret) Piwik URL which you want to hide. - 8) Paste the modified Piwik Javascript code in your website "trackedsite.com" pages you wish to track. - This modified Javascript Code will then track visits/pages/conversions by calling trackedsite.com/piwik.php - which will then automatically call your (hidden) Piwik Server URL. - 9) Done! - At this stage, example.com should be tracked by your Piwik without showing the Piwik server URL. - Repeat the steps 6), 7) and 8) for each website you wish to track in Piwik. -*/ - -// Edit the line below, and replace http://piwik-server.com/piwik/ -// with your Piwik URL ending with a slash. -// This URL will never be revealed to visitors or search engines. -$PIWIK_URL = $settings->getGlobalOption('piwik_url'); - -// Edit the line below, and replace xyz by the token_auth for the user "UserTrackingAPI" -// which you created when you followed instructions above. -$TOKEN_AUTH = $settings->getGlobalOption('piwik_token'); - -// Maximum time, in seconds, to wait for the Piwik server to return the 1*1 GIF -$timeout = 5; - - - -// DO NOT MODIFY BELOW -// --------------------------- -// 1) PIWIK.JS PROXY: No _GET parameter, we serve the JS file -if(empty($_GET)) -{ - $modifiedSince = false; - if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) - { - $modifiedSince = $_SERVER['HTTP_IF_MODIFIED_SINCE']; - // strip any trailing data appended to header - if (false !== ($semicolon = strpos($modifiedSince, ';'))) - { - $modifiedSince = strtotime(substr($modifiedSince, 0, $semicolon)); - } - } - // Re-download the piwik.js once a day maximum - $lastModified = time()-86400; - - // set HTTP response headers - header('Vary: Accept-Encoding'); - - // Returns 304 if not modified since - if (!empty($modifiedSince) && $modifiedSince < $lastModified) - { - header($_SERVER['SERVER_PROTOCOL'] . ' 304 Not Modified'); - } - else - { - header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); - @header('Content-Type: application/javascript; charset=UTF-8'); - if( $piwikJs = file_get_contents($PIWIK_URL.'piwik.js')) { - echo $piwikJs; - } else { - header($_SERVER['SERVER_PROTOCOL'] . '505 Internal server error'); - } - } - exit; -} - -// 2) PIWIK.PHP PROXY: GET parameters found, this is a tracking request, we redirect it to Piwik -$url = $PIWIK_URL."piwik.php?cip=".@$_SERVER['REMOTE_ADDR']."&token_auth=".$TOKEN_AUTH.'&'; -foreach($_GET as $key=>$value) { - $url .= $key .'='.urlencode($value).'&'; -} -header("Content-Type: image/gif"); -$stream_options = array('http' => array( - 'user_agent' => @$_SERVER['HTTP_USER_AGENT'], - 'header' => "Accept-Language: " . @str_replace(array("\n","\t","\r"), "", $_SERVER['HTTP_ACCEPT_LANGUAGE']) . "\r\n" , - 'timeout' => $timeout -)); -$ctx = stream_context_create($stream_options); -echo file_get_contents($url, 0, $ctx); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/proxy/config.php b/wp-content/plugins/wp-piwik/proxy/config.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/proxy/index.php b/wp-content/plugins/wp-piwik/proxy/index.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/proxy/piwik.php b/wp-content/plugins/wp-piwik/proxy/piwik.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/readme.txt b/wp-content/plugins/wp-piwik/readme.txt old mode 100644 new mode 100755 index eeeecd6cd1d6d56cad078a370f44921f28eda438..23c778adcaa1952f81a487f28ed052b5476d6009 --- a/wp-content/plugins/wp-piwik/readme.txt +++ b/wp-content/plugins/wp-piwik/readme.txt @@ -1,45 +1,45 @@ -=== WP-Piwik === +=== WP-Matomo (WP-Piwik) === Contributors: Braekling Requires at least: 4.0 Tested up to: 4.8.2 Stable tag: 1.0.19 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6046779 -Tags: piwik, tracking, statistics, stats, analytics +Tags: matomo, tracking, statistics, stats, analytics -Adds Piwik statistics to your WordPress dashboard and is also able to add the Piwik Tracking Code to your blog. +Adds Matomo (former Piwik) statistics to your WordPress dashboard and is also able to add the Matomo Tracking Code to your blog. == Description == -This plugin uses the Piwik API to show your Piwik statistics in your WordPress dashboard. It's also able to add the Piwik tracking code to your blog and to do some modifications to the tracking code. Additionally, WP-Piwik supports WordPress networks and manages multiple sites and their tracking codes. +This plugin uses the Matomo API to show your Matomo statistics in your WordPress dashboard. It's also able to add the Matomo tracking code to your blog and to do some modifications to the tracking code. Additionally, WP-Matomo supports WordPress networks and manages multiple sites and their tracking codes. -To use this plugin the Piwik web analytics application is required. If you do not already have a Piwik setup (e.g., provided by your web hosting service), you have two simple options: use either a [self-hosted Piwik](http://piwik.org/) or a [cloud-hosted Piwik by InnoCraft](https://www.innocraft.cloud/?pk_campaign=WP-Piwik). +To use this plugin the Matomo web analytics application is required. If you do not already have a Matomo setup (e.g., provided by your web hosting service), you have two simple options: use either a [self-hosted Matomo](http://matomo.org/) or a [cloud-hosted Matomo by InnoCraft](https://www.innocraft.cloud/?pk_campaign=WP-Piwik). -**Requirements:** PHP 7.0 (or higher), WordPress 4.0 (or higher), Piwik 3.0 (or higher) +**Requirements:** PHP 7.0 (or higher), WordPress 4.0 (or higher), Matomo 3.0 (or higher) **Languages:** English, Albanian, Chinese, Dutch, French, German, Greek, Hungarian, Italian, Polish, Portuguese (Brazil). Partially supported: Azerbaijani, Belarusian, Hindi, Lithuanian, Luxembourgish, Norwegian, Persian, Romanian, Russian, Spanish, Swedish, Turkish, Ukrainian -= What is Piwik? = += What is Matomo? = [youtube https://youtu.be/OslfF_EH81g] -[Learn more.](https://piwik.org/what-is-piwik/) +[Learn more.](https://matomo.org/what-is-matomo/) = First steps = -- Learn how to install your own Piwik instance: [Requirements](https://piwik.org/docs/requirements/), [Installation](https://piwik.org/docs/installation-optimization/). -- If you need support about Piwik, please have a look at the [Piwik forums](https://forum.piwik.org/). -- Finally, you can start [setting up WP-Piwik](https://piwik.org/blog/2015/05/wordpress-integration-wp-piwik-1-0/). +- Learn how to install your own Matomo instance: [Requirements](https://matomo.org/docs/requirements/), [Installation](https://matomo.org/docs/installation-optimization/). +- If you need support about Matomo, please have a look at the [Matomo forums](https://forum.matomo.org/). +- Finally, you can start [setting up WP-Matomo](https://matomo.org/blog/2015/05/wordpress-integration-wp-piwik-1-0/). = Shortcodes = You can use following shortcodes if activated: [wp-piwik module="overview" title="" period="day" date="yesterday"] -Shows overview table like WP-Piwik's overview dashboard. See Piwik API documentation on VisitsSummary.get to get more information on period and day. Multiple data arrays will be cumulated. If you fill the title attribute, its content will be shown in the table's title. +Shows overview table like WP-Matomo's overview dashboard. See Matomo API documentation on VisitsSummary.get to get more information on period and day. Multiple data arrays will be cumulated. If you fill the title attribute, its content will be shown in the table's title. [wp-piwik module="opt-out" language="en" width="100%" height="200px"] -Shows the Piwik opt-out Iframe. You can change the Iframe's language by the language attribute (e.g. de for German language) and its width and height using the corresponding attributes. +Shows the Matomo opt-out Iframe. You can change the Iframe's language by the language attribute (e.g. de for German language) and its width and height using the corresponding attributes. [wp-piwik module="post" range="last30" key="sum_daily_nb_uniq_visitors"] -Shows the chosen keys value related to the current post. You can define a range (format: lastN, previousN or YYYY-MM-DD,YYYY-MM-DD) and the desired value's key (e.g., sum_daily_nb_uniq_visitors, nb_visits or nb_hits - for details see Piwik's API method Actions.getPageUrl using a range). +Shows the chosen keys value related to the current post. You can define a range (format: lastN, previousN or YYYY-MM-DD,YYYY-MM-DD) and the desired value's key (e.g., sum_daily_nb_uniq_visitors, nb_visits or nb_hits - for details see Matomo's API method Actions.getPageUrl using a range). [wp-piwik] is equal to *[wp-piwik module="overview" title="" period="day" date="yesterday"]*. @@ -48,96 +48,96 @@ is equal to *[wp-piwik module="overview" title="" period="day" date="yesterday"] * Graphs powered by [jqPlot](http://www.jqplot.com/) (GPL 2.0 and MIT) and and [jQuery Sparklines](http://omnipotent.net/jquery.sparkline/) (New BSD License). * All translators at the [Transifex translation community](https://www.transifex.com/projects/p/wp-piwik/). -* Donations: Marco L., Rolf W., Tobias U., Lars K., Donna F., Kevin D., Ramos S., Thomas M., John C., Andreas G., Ben M., Myra R. I., Carlos U. R.-S., Oleg I., M. N., Daniel K., James L., Jochen K., Cyril P., Thomas K., Patrik K., Zach, Sebastian W., Peakkom, Patrik K., Kati K., Helmut O., Valerie S., Jochen D., Atlas R., Harald W., Jan M., Addy K., Hans-Georg E.-B., Yvonne K., Andrew D., the Piwik team itself, and all people flattering this. -* All users who send me mails containing criticism, commendation, feature requests and bug reports - you help me to make WP-Piwik much better! +* Donations: Marco L., Rolf W., Tobias U., Lars K., Donna F., Kevin D., Ramos S., Thomas M., John C., Andreas G., Ben M., Myra R. I., Carlos U. R.-S., Oleg I., M. N., Daniel K., James L., Jochen K., Cyril P., Thomas K., Patrik K., Zach, Sebastian W., Peakkom, Patrik K., Kati K., Helmut O., Valerie S., Jochen D., Atlas R., Harald W., Jan M., Addy K., Hans-Georg E.-B., Yvonne K., Andrew D., the Matomo team itself, and all people flattering this. +* All users who send me mails containing criticism, commendation, feature requests and bug reports - you help me to make WP-Matomo much better! Thank you all! == Frequently Asked Questions == -= Where can I find the Piwik URL and the Piwik auth token? = += Where can I find the Matomo URL and the Matomo auth token? = -To use this plugin you will need your own Piwik instance. If you do not already have a Piwik setup, you have two simple options: use either a [self-hosted Piwik](http://piwik.org/) or [cloud-hosted Piwik by InnoCraft](https://www.innocraft.cloud/?pk_campaign=WP-Piwik). +To use this plugin you will need your own Matomo instance. If you do not already have a Matomo setup, you have two simple options: use either a [self-hosted Matomo](http://matomo.org/) or [cloud-hosted Matomo by InnoCraft](https://www.innocraft.cloud/?pk_campaign=WP-Piwik). -As soon as Piwik works, you'll be able to configure WP-Piwik: The Piwik URL is the same URL you use to access your Piwik, e.g. for the demo site: http://demo.piwik.org. The auth token is some kind of a secret password, which allows WP-Piwik to get the necessary data from Piwik. To get your auth token, log in to Piwik, click at the preferences gear icon (top right) and click at "API" (left sidebar menu, near the bottom). +As soon as Matomo works, you'll be able to configure WP-Matomo: The Matomo URL is the same URL you use to access your Matomo, e.g. for the demo site: http://demo.matomo.org. The auth token is some kind of a secret password, which allows WP-Matomo to get the necessary data from Matomo. To get your auth token, log in to Matomo, click at the preferences gear icon (top right) and click at "API" (left sidebar menu, near the bottom). -You can get a more detailed description here: https://piwik.org/blog/2015/05/wordpress-integration-wp-piwik-1-0/ +You can get a more detailed description here: https://matomo.org/blog/2015/05/wordpress-integration-wp-piwik-1-0/ -= I get this message: "WP-Piwik was not able to connect to Piwik using our configuration". How to proceed? = += I get this message: "WP-Matomo (WP-Piwik) was not able to connect to Matomo (Piwik) using our configuration". How to proceed? = -First, please make sure your configuration is valid, e.g., if you are using the right Piwik URL (see description above). Then, go to the "Support" tab and run the test script. This test script will try to get some information from Piwik and shows the full response. Usually, the response output gives a clear hint what's wrong: +First, please make sure your configuration is valid, e.g., if you are using the right Matomo URL (see description above). Then, go to the "Support" tab and run the test script. This test script will try to get some information from Matomo and shows the full response. Usually, the response output gives a clear hint what's wrong: The response output contains... -* **bool(false)** and **HTTP/1.1 403 Forbidden**: WP-Piwik is not allowed to connect to Piwik. Please check your Piwik server's configuration. Maybe you are using a password protection via .htaccess or you are blocking requests from localhost/127.0.0.1. If you aren’t sure about this, please contact your web hoster for support. -* **bool(false)** and **HTTP/1.1 404 Not Found**: The Piwik URL is wrong. Try to copy & paste the URL you use to access Piwik itself via browser. -* **bool(false)** and no further HTTP response code: The Piwik server does not respond. Very often, this is caused by firewall or mod_security settings. Check your server logfiles to get further information. If you aren’t sure about this, please contact your web hoster for support. +* **bool(false)** and **HTTP/1.1 403 Forbidden**: WP-Matomo is not allowed to connect to Matomo. Please check your Matomo server's configuration. Maybe you are using a password protection via .htaccess or you are blocking requests from localhost/127.0.0.1. If you aren’t sure about this, please contact your web hoster for support. +* **bool(false)** and **HTTP/1.1 404 Not Found**: The Matomo URL is wrong. Try to copy & paste the URL you use to access Matomo itself via browser. +* **bool(false)** and no further HTTP response code: The Matomo server does not respond. Very often, this is caused by firewall or mod_security settings. Check your server logfiles to get further information. If you aren’t sure about this, please contact your web hoster for support. -= PHP Compatibility Checker reports PHP7 compatbility issues with WP-Piwik. = += PHP Compatibility Checker reports PHP7 compatbility issues with WP-Matomo. = -The Compatibility Checker shows two false positives. WP-Piwik is 100% PHP7 compatible, you can ignore the report. +The Compatibility Checker shows two false positives. WP-Matomo is 100% PHP7 compatible, you can ignore the report. = Overview shortcode shows no unique visitors using a yearly range. = -See [Piwik FAQ](http://piwik.org/faq/how-to/#faq_113). +See [Matomo FAQ](http://matomo.org/faq/how-to/#faq_113). -= WP-Piwik only shows the first 100 sites of my multisite network. How can I get all other sites? = += WP-Matomo only shows the first 100 sites of my multisite network. How can I get all other sites? = -The Piwik API is limited to 100 sites by default. Add the following line to the section [General] of Piwik's config/config.ini.php file: +The Matomo API is limited to 100 sites by default. Add the following line to the section [General] of Matomo's config/config.ini.php file: API_datatable_default_limit = 1000 = Tracking does not work on HostGator! = -Try to enable the "avoid mod_security" option (WP-Piwik settings, Tracking tab) or create a mod_security whitelist. +Try to enable the "avoid mod_security" option (WP-Matomo settings, Tracking tab) or create a mod_security whitelist. -= Can I contribute to WP-Piwik as a translator? = += Can I contribute to WP-Matomo as a translator? = -You like to contribute to WP-Piwik translations? Please use the [Transifex translation community](https://www.transifex.com/projects/p/wp-piwik/). +You like to contribute to WP-Matomo translations? Please use the [Transifex translation community](https://www.transifex.com/projects/p/wp-piwik/). -Of course, I will add missing languages if requested, and I will also upload the existing language files of older WP-Piwik releases. +Of course, I will add missing languages if requested, and I will also upload the existing language files of older WP-Matomo releases. -If you can't (or don not want to) use transifex, you can also translate languages/wp-piwik.pot delivered with WP-Piwik. +If you can't (or don not want to) use transifex, you can also translate languages/wp-piwik.pot delivered with WP-Matomo. Thank you very much! :-) == Installation == = General Notes = -* First, you have to set up a running Piwik instance. You can get Piwik [here](http://piwik.org/) and its documentation [here](http://piwik.org/docs/). -* If you want to update your Piwik instance, you should set your WordPress blog to maintenance while the update process is running. +* First, you have to set up a running Matomo instance. You can get Matomo [here](http://matomo.org/) and its documentation [here](http://matomo.org/docs/). +* If you want to update your Matomo instance, you should set your WordPress blog to maintenance while the update process is running. -= Install WP-Piwik on a simple WordPress blog = += Install WP-Matomo on a simple WordPress blog = 1. Upload the full `wp-piwik` directory into your `wp-content/plugins` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. -3. Open the new 'Settings/WP-Piwik Settings' menu and follow the instructions to configure your Piwik connection. Save settings. +3. Open the new 'Settings/WP-Matomo (WP-Piwik) Settings' menu and follow the instructions to configure your Matomo connection. Save settings. 4. If you have view access to multiple site stats and did not enable "auto config", choose your blog and save settings again. -5. Look at 'Dashboard/WP-Piwik' to see your site stats. +5. Look at 'Dashboard/WP-Matomo (WP-Piwik)' to see your site stats. -= Install WP-Piwik on a WordPress blog network (WPMU/WP multisite) = += Install WP-Matomo on a WordPress blog network (WPMU/WP multisite) = -There are two differents methods to use WP-Piwik in a multisite environment: +There are two differents methods to use WP-Matomo in a multisite environment: -* As a Site Specific Plugin it behaves like a plugin installed on a simple WordPress blog. Each user can enable, configure and use WP-Piwik on his own. Users can even use their own Piwik instances (and accordingly they have to). -* Using WP-Piwik as a Network Plugin equates to a central approach. A single Piwik instance is used and the site admin configures the plugin completely. Users are just allowed to see their own statistics, site admins can see each blog's stats. +* As a Site Specific Plugin it behaves like a plugin installed on a simple WordPress blog. Each user can enable, configure and use WP-Matomo on his own. Users can even use their own Matomo instances (and accordingly they have to). +* Using WP-Matomo as a Network Plugin equates to a central approach. A single Matomo instance is used and the site admin configures the plugin completely. Users are just allowed to see their own statistics, site admins can see each blog's stats. *Site Specific Plugin* -Just add WP-Piwik to your /wp-content/plugins folder and enable the Plugins page for individual site administrators. Each user has to enable and configure WP-Piwik on his own if he want to use the plugin. +Just add WP-Matomo to your /wp-content/plugins folder and enable the Plugins page for individual site administrators. Each user has to enable and configure WP-Matomo on his own if he want to use the plugin. *Network Plugin* The Network Plugin support is still experimental. Please test it on your own (e.g. using a local copy of your WP multisite) before you use it in an user context. -Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin](http://codex.wordpress.org/Create_A_Network#WordPress_Plugins). Users can access their own statistics, site admins can access each blog's statistics and the plugin's configuration. +Add WP-Matomo to your /wp-content/plugins folder and enable it as [Network Plugin](http://codex.wordpress.org/Create_A_Network#WordPress_Plugins). Users can access their own statistics, site admins can access each blog's statistics and the plugin's configuration. == Screenshots == -1. WP-Piwik settings. -2. WP-Piwik statistics page. +1. WP-Matomo settings. +2. WP-Matomo statistics page. 3. Closer look to a pie chart. 4. WordPress toolbar graph. -5. Piwik: Here you'll find your auth token. +5. Matomo: Here you'll find your auth token. == Changelog == @@ -151,16 +151,16 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin = 1.0.17 = * Header issue solved which caused incompatibilities with other plugins like Yoast SEO -* Update of InnoCraft cloud links (InnoCraft is the team behind Piwik) -* Bugfix: Avoid a broken page if Piwik is misconfigured and WordPress debugging enabled +* Update of InnoCraft cloud links (InnoCraft is the team behind Matomo) +* Bugfix: Avoid a broken page if Matomo is misconfigured and WordPress debugging enabled = 1.0.16 = -* Added InnoCraft Cloud support (the new service created by the people behind Piwik). Piwik.pro is still usable via HTTP mode, the configuration will be updated automatically. +* Added InnoCraft Cloud support (the new service created by the people behind Matomo). Piwik.pro is still usable via HTTP mode, the configuration will be updated automatically. * Added search functionality to site browser -* Added preload DNS option, see https://piwik.org/blog/2017/04/important-performance-optimizations-load-piwik-javascript-tracker-faster/ +* Added preload DNS option, see https://matomo.org/blog/2017/04/important-performance-optimizations-load-piwik-javascript-tracker-faster/ * Added option to set link and download classes (expert settings) * Added option to choose which post types should be considered for annotations -* Bugfix: Opening Piwik stats of a specific network site does not lead to the sitebrowser anymore +* Bugfix: Opening Matomo stats of a specific network site does not lead to the sitebrowser anymore * Bugfix: Avoid unnecessary notices * Bugfix: Avoid a warning in proxy script * Bugfix: NoScript code is working again @@ -170,19 +170,19 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Allow to modify the tracked user ID using the filter "wp-piwik_tracking_user_id" * Bugfix: Output of "post" shortcode was incorrectly placed, see https://wordpress.org/support/topic/post-shortcode-values-are-incorrectly-placed/ * Bugfix: Usage of WP_PROXY_BYPASS_HOSTS, see https://wordpress.org/support/topic/bug-considering-wp_proxy_bypass_hosts-in-proxy-setups/ -* Bugfix: Proxy script did not work with cURL, see https://github.com/braekling/WP-Piwik/issues/48 +* Bugfix: Proxy script did not work with cURL, see https://github.com/braekling/WP-Matomo/issues/48 * Bugfix: RSS feed tracking did not use proxy URL = 1.0.14 = -* Action "wp-piwik_site_created" was extended by a site ID parameter, so it will deliver the Piwik site ID of the created site -* Bugfix: Fixed an issue with Piwik site creation -* Bugfix: Allow changes of a manually defined tracking code on networks, see https://github.com/braekling/WP-Piwik/issues/46 +* Action "wp-piwik_site_created" was extended by a site ID parameter, so it will deliver the Matomo site ID of the created site +* Bugfix: Fixed an issue with Matomo site creation +* Bugfix: Allow changes of a manually defined tracking code on networks, see https://github.com/braekling/WP-Matomo/issues/46 = 1.0.13 = * Language updates * Readme typo fixes (thx to ujdhesa) * Perform your own code after site creation by using the action "wp-piwik_site_created" -* Improved caching ID to avoid interferences, see https://github.com/braekling/WP-Piwik/issues/42 +* Improved caching ID to avoid interferences, see https://github.com/braekling/WP-Matomo/issues/42 = 1.0.12 = * Removed notices and warnings @@ -201,25 +201,25 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin = 1.0.9 = * Language updates -* Bugfix: Deprecated get_currentuserinfo() replace. Thx to the infinity, see https://github.com/braekling/WP-Piwik/pull/21 +* Bugfix: Deprecated get_currentuserinfo() replace. Thx to the infinity, see https://github.com/braekling/WP-Matomo/pull/21 * Bugfix: Overview widget will show proper values even if a period > 1 day is selected, see https://wordpress.org/support/topic/weird-numbers-im-wp-piwik = 1.0.8 = * Feature: Show "per post stats" and the "custom variable meta box" also on page and custom post edit * Bugfix: Fixed user tracking (moved the user tracking changes from general modifications to runtime modifications) -* Bugfix: Fixed namespace error. Thx to thelfensdrfer, see https://github.com/braekling/WP-Piwik/pull/18 +* Bugfix: Fixed namespace error. Thx to thelfensdrfer, see https://github.com/braekling/WP-Matomo/pull/18 * Bugfix: Warning on blog name change, see https://wordpress.org/support/topic/wp-piwik-triggers-warning-when-changing-blog-name = 1.0.7 = -* Feature: User ID Tracking. Thx to Danw33, see https://github.com/braekling/WP-Piwik/pull/16 -* Feature: Site ID parameter added to opt-out shortcode. Thx to christianhennen, see https://github.com/braekling/WP-Piwik/pull/17 +* Feature: User ID Tracking. Thx to Danw33, see https://github.com/braekling/WP-Matomo/pull/16 +* Feature: Site ID parameter added to opt-out shortcode. Thx to christianhennen, see https://github.com/braekling/WP-Matomo/pull/17 * Feature: Allow a local config file to affect the proxy script, see https://wordpress.org/support/topic/proxy-config-require-wp-loadphp-path * Bugfix: No script tag is not auto-inserted if the tracking code is manually defined. = 1.0.6 = * Language updates * Encoding & gettext fixes -* Better error messages. Thx to mcguffin, see https://github.com/braekling/WP-Piwik/pull/14 +* Better error messages. Thx to mcguffin, see https://github.com/braekling/WP-Matomo/pull/14 = 1.0.5 = * Several language updates. @@ -228,15 +228,15 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin = 1.0.4 = * Several language updates. * Feature: Offer setDownloadExtensions option (see expert settings). -* Feature: Consider configured HHTP connection method in proxy script. +* Feature: Consider configured HTTP connection method in proxy script. * Widget: Visitor country added. * Bugfix: Annotations on scheduled posts will work. * Bugfix: Donation button will work again. = 1.0.3 = * Several language updates. -* Switch to JSON renderer (Piwik 3 compatibility preparation) -* Workaround: PHP API will work with Piwik 2.14+, see https://github.com/piwik/piwik/issues/8311 for further information. +* Switch to JSON renderer (Matomo 3 compatibility preparation) +* Workaround: PHP API will work with Matomo 2.14+, see https://github.com/matomo-org/piwik/issues/8311 for further information. * Feature: Heartbeat timer support * Feature: Expanded token & URL/path input fields * Bugfix: Site duplication fix. @@ -252,14 +252,14 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Feature: Choose between POST and GET (expert settings). * Widget: System details added. * Widget: SEO widget re-enabled. -* Update: Replaced deprecated Piwik API calls. +* Update: Replaced deprecated Matomo API calls. * Bugfix: Settings link (toolbar, network mode) fixed. * Bugfix: Encode blog titles in PHP mode. * Bugfix: Pie charts won't show to long legends if more than 10 items are available. = 1.0.1 = * Several language updates, amongst others Portuges (Brazil) finished. See https://www.transifex.com/organization/piwik/dashboard/wp-piwik for further information. -* Bugfix: If WP-Piwik is not configured properly or the connection to Piwik could not be established, the toolbar graph won't cause a JavaScript error anymore. +* Bugfix: If WP-Matomo is not configured properly or the connection to Matomo could not be established, the toolbar graph won't cause a JavaScript error anymore. = 1.0.0 = * Feature: Expand "other" values on click @@ -291,8 +291,8 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Typo fixes = 0.10.0.6 = -* Bugfix: Option storage bug if WP-Piwik is used as single site plugin on blog networks -* Bugfix: WP-Piwik will work without Piwik superuser access, again +* Bugfix: Option storage bug if WP-Matomo is used as single site plugin on blog networks +* Bugfix: WP-Matomo will work without Matomo superuser access, again * Bugfix: Choosing the site without auto config works again = 0.10.0.5 = @@ -302,11 +302,11 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin = 0.10.0.4 = * Bugfix: Settings link in admin notices fixed * Bugfix: Shortcode result will appear where expected -* Bugfix: 0.9.9.18 settings will be kept (if WP-Piwik was not reconfigured after updating to 0.10.0.3, yet) -* Feature: If Piwik returns an error instead of a tracking code, this error will be visible +* Bugfix: 0.9.9.18 settings will be kept (if WP-Matomo was not reconfigured after updating to 0.10.0.3, yet) +* Feature: If Matomo returns an error instead of a tracking code, this error will be visible = 0.10.0.3 = -* Public beta of WP-Piwik 1.0 +* Public beta of WP-Matomo 1.0 * Full refactored code * Feature: Limit referral cookie lifetime * Feature: Enable content tracking @@ -314,11 +314,11 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin = 0.9.9.18 = * Improvement: Define additional file extensions for tracking downloads * Improvement: Added a POT file to support translators (Note: 1.0 will change a lot, so please don't spend too much time in translating the current version, e.g., by creating an all new translation. With 1.0 I will also offer a translation platform to support your work.) -* Improvement: If necessary, you can force Piwik to use HTTP or HTTPS now (e.g., to avoid redirections from http to https) +* Improvement: If necessary, you can force Matomo to use HTTP or HTTPS now (e.g., to avoid redirections from http to https) * Avoided a naming collision with Woo Theme = 0.9.9.17 = -* Improvement: Updated the Piwik proxy script and added cURL support if url_fopen is not available +* Improvement: Updated the Matomo proxy script and added cURL support if url_fopen is not available * Bugfix: Setup bug, see https://wordpress.org/support/topic/piwik-urlpath-not-saved * Bugfix: CDN URL notice, see https://wordpress.org/support/topic/tracking-cdn-blank-gives-php-notice-which-breaks-the-trackback-js-code * Bugfix: Fixed zlib compression notice, see https://wordpress.org/support/topic/v09914-is-bad @@ -342,9 +342,9 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin = 0.9.9.13 = * Improvement: Only activate/ load admin components if an admin page is actually loaded. Thanks to Michael! -* Bugfix: Proxy tracking will work again. Piwik 2.7 or higher is recommended. +* Bugfix: Proxy tracking will work again. Matomo 2.7 or higher is recommended. * Bugfix: Avoid a PHP notice in dashboard -* NOTE: If you update Piwik and use the "add tracking code" feature, please also update your WP-Piwik tracking code: Just open the WP-Piwik tracking code settings and save them again. +* NOTE: If you update Matomo and use the "add tracking code" feature, please also update your WP-Matomo tracking code: Just open the WP-Matomo tracking code settings and save them again. = 0.9.9.12 = * Bugfix: Avoid forced relogin on site change (WP network) @@ -356,7 +356,7 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Bugfix: PHP API causes plain text output issue, see http://wordpress.org/support/topic/bug-cant-access-to-tabs-in-setting-after-configuration * Bugfix: PHP API causes WordPress multisite login issue, see http://wordpress.org/support/topic/causes-multisite-superadmin-subsite-login-problem * Bugfix: Removed PHP warning if annotations are enabled and annotations will work again, see http://wordpress.org/support/topic/warning-message-everywhere-in-the-backend-call_user_func_array-expects -* Feature: "Track visitors across all subdomains" script changes are done by Piwik now, see http://wordpress.org/support/topic/track-across-subdomains-wp-on-subdomain?replies=2 +* Feature: "Track visitors across all subdomains" script changes are done by Matomo now, see http://wordpress.org/support/topic/track-across-subdomains-wp-on-subdomain?replies=2 * Update: Flattr API update = 0.9.9.10 = @@ -365,8 +365,8 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Feature: Show page views (actions) in "visitors last 30" = 0.9.9.9 = -* Update: PHP API will use namespaces (Piwik 2.x compatibility) -* Update: Piwik URL isn't necessary to use PHP API anymore. +* Update: PHP API will use namespaces (Matomo 2.x compatibility) +* Update: Matomo URL isn't necessary to use PHP API anymore. * Feature: Limit cookie lifetime * Feature: Track visitors across all subdomains * Feature: Disable custom var box if necessary @@ -399,7 +399,7 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin = 0.9.9.4 = * Use Transients API (one week caching) -* Option: Track visitors without JavaScript, see http://piwik.org/faq/how-to/#faq_176 +* Option: Track visitors without JavaScript, see http://matomo.org/faq/how-to/#faq_176 = 0.9.9.3 = * Sparkline script update (IE 10 compatibility) @@ -407,7 +407,7 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin = 0.9.9.2 = * Bugfix regarding tracking code changes in proxy mode, see http://wordpress.org/support/topic/problem-with-https-in-proxy-mode -* Feature: Change text "WP-Piwik" in menu items and dashboard widgets +* Feature: Change text "WP-Matomo" in menu items and dashboard widgets * Code cleanup ("new" first step) * Debugging: Logger added * Avoid double slash (//) in tracking code @@ -417,8 +417,8 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Made <noscript> code optional. Move <noscript> code to site footer. = 0.9.9.0 = -* Piwik 1.11 compatibility fixes (Piwik 1.11 required now!) -* Depending on Piwik 1.11 WP-Piwik will use async tracking now +* Matomo 1.11 compatibility fixes (Matomo 1.11 required now!) +* Depending on Matomo 1.11 WP-Matomo will use async tracking now * CDN support added, see http://wordpress.org/support/topic/request-cdn-support-1 = 0.9.8.1 = @@ -429,7 +429,7 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin = 0.9.8 = * WordPress 3.5 compatibility fix: http://wordpress.org/support/topic/v35-errors-fix?replies=5 (Thanks Christian Foellmann!) -* Advanced Search Result Analytics, see http://piwik.org/docs/javascript-tracking/#toc-tracking-internal-search-keywords-categories-and-no-result-search-keywords +* Advanced Search Result Analytics, see http://matomo.org/docs/javascript-tracking/#toc-tracking-internal-search-keywords-categories-and-no-result-search-keywords * Site Search stats added * Use js/index.php: Replaces piwik.js and piwik.php by js/ (instead of piwik.js only) * Connection timeout setting added @@ -437,20 +437,20 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Uninstall script added * Stats metaboxes: Date formatted * Use proxy settings defined in wp-config.php -* Piwik.php proxy script added (see http://piwik.org/faq/how-to/#faq_132) -* Bugfix: After upgrade, Piwik automatically places cookies again (http://wordpress.org/support/topic/after-upgrade-piwik-automatically-places-cookies-again) +* Matomo.php proxy script added (see http://matomo.org/faq/how-to/#faq_132) +* Bugfix: After upgrade, Matomo automatically places cookies again (http://wordpress.org/support/topic/after-upgrade-piwik-automatically-places-cookies-again) = 0.9.7 = * Shortcodes added -* WP-Piwik will rename sites in Piwik if site name changes in WordPress -* Bugfix: Tracking code changes should stay active after WP-Piwik updates +* WP-Matomo will rename sites in Matomo if site name changes in WordPress +* Bugfix: Tracking code changes should stay active after WP-Matomo updates = 0.9.6.3 = -* Piwik 1.9+ compatibility fix (Piwik 1.9 required!) +* Matomo 1.9+ compatibility fix (Matomo 1.9 required!) * Browser version details added = 0.9.6.2 = -* Bugfix: ["Create Piwik site" link (network dashboard)](http://wordpress.org/support/topic/plugin-wp-piwik-you-attempted-to-access-the-networks-dashboard-but-you-do-not) +* Bugfix: ["Create Matomo site" link (network dashboard)](http://wordpress.org/support/topic/plugin-wp-piwik-you-attempted-to-access-the-networks-dashboard-but-you-do-not) = 0.9.6.1 = * Toolbar graph bugfix @@ -463,18 +463,18 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Bugfix: Sparkline script only loaded if required * Stats site supports up to 3 columns * Network admin stats: Choose site using a paged table (instead of a select box). -* Feature: [Custom variables](http://piwik.org/docs/javascript-tracking/#toc-custom-variables), using [custom post meta boxes](http://wp.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wordpress/). +* Feature: [Custom variables](http://matomo.org/docs/javascript-tracking/#toc-custom-variables), using [custom post meta boxes](http://wp.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wordpress/). * Some minor bugfixes = 0.9.5 = * WordPress 3.4 compatible (workaround) = 0.9.4 = -* Requires at least Piwik 1.8.2! +* Requires at least Matomo 1.8.2! * Choose between HTTP API or PHP API * Show graph on WordPress Toolbar * Add option to disable cookies - Thanks to Mathias T.! -* Update bugfix: Upgrading from WP-Piwik 0.8.7 or less will work again +* Update bugfix: Upgrading from WP-Matomo 0.8.7 or less will work again * Some minor bugfixes = 0.9.3 = @@ -487,7 +487,7 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Bugfix: New network sites without title will be created * Bugfix: Upgrading from old versions will work again * Tabbed settings -* Debug tools added (testscript, site configuration overview and WP-Piwik reset) +* Debug tools added (testscript, site configuration overview and WP-Matomo reset) * Support forum RSS feed * Language updates * Optionally use of set_time_limit(0) on stats page time out @@ -523,12 +523,12 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * WP 3.2 compatible, metabox support = 0.8.8 = -* Bugfix: Will also work with index.php in Piwik path +* Bugfix: Will also work with index.php in Matomo path * Bugfix: last30 dashboard widget - show correct bounce rate = 0.8.7 = * New language files (Azerbaijani, Greek, Russian) -* Fixed hardcoded database prefix (WPMU-Piwik) +* Fixed hardcoded database prefix (WPMU-Matomo) * Minor bugfixes: avoid some PHP warnings = 0.8.6 = @@ -550,7 +550,7 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Code clean up (not finished) = 0.8.3 = -* Piwik 1.1+ compatibility fix +* Matomo 1.1+ compatibility fix = 0.8.2 = * Bugfix: [WPMU URL update bug](http://wordpress.org/support/topic/plugin-wp-piwik-jscode-not-updated-when-saving-new-url-in-wpmu-mode) @@ -579,7 +579,7 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Visitor chart: Added a red unique visitor average line * Visitor table: Added a TOTAL stats line * Pie charts: Show top 9 + "others", new color range -* Option: Show Piwik shortcut in overview box +* Option: Show Matomo shortcut in overview box * Some performance optimization = 0.6.4 = @@ -608,7 +608,7 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Plugin stats = 0.3.2 = -* If allow_url_fopen is disabled in php.ini, WP-Piwik tries to use CURL instead of file_get_contents +* If allow_url_fopen is disabled in php.ini, WP-Matomo tries to use CURL instead of file_get_contents = 0.3.1 = * WordPress 2.8 compatible @@ -617,7 +617,7 @@ Add WP-Piwik to your /wp-content/plugins folder and enable it as [Network Plugin * Partly optimized code = 0.3.0 = -* WP-Piwik dashboard widgetized +* WP-Matomo dashboard widgetized * Stats-boxes sortable and closeable * German language file added * Browser stats and bounced visitors diff --git a/wp-content/plugins/wp-piwik/screenshot-1.gif b/wp-content/plugins/wp-piwik/screenshot-1.gif old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/screenshot-2.gif b/wp-content/plugins/wp-piwik/screenshot-2.gif old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/screenshot-3.gif b/wp-content/plugins/wp-piwik/screenshot-3.gif old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/screenshot-4.gif b/wp-content/plugins/wp-piwik/screenshot-4.gif old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/screenshot-5.gif b/wp-content/plugins/wp-piwik/screenshot-5.gif old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/settings/.htaccess b/wp-content/plugins/wp-piwik/settings/.htaccess deleted file mode 100644 index 3a42882788717c9ed1d5c2fcc3277d21ec13152b..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/settings/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/wp-content/plugins/wp-piwik/settings/credits.php b/wp-content/plugins/wp-piwik/settings/credits.php deleted file mode 100644 index 13b8db2216deda89c76f53f46692e9a69e1c3882..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/settings/credits.php +++ /dev/null @@ -1,31 +0,0 @@ -<tr> - <td> - <strong><?php _e('Thank you very much for your donation', 'wp-piwik'); ?>:</strong> Marco L., Rolf W., Tobias U., Lars K., Donna F., Kevin D., Ramos S., Thomas M., John C., Andreas G., Ben M., Myra R. I., Carlos U. R.-S., Oleg I., M. N., Daniel K., James L., Jochen K., <?php _e('the Piwik team itself','wp-piwik');?><?php _e(', and all people flattering this','wp-piwik'); ?>! - </td> -</tr> -<tr> - <td> - <?php _e('Graphs powered by <a href="http://www.jqplot.com/">jqPlot</a> (License: GPL 2.0 and MIT) and <a href="http://omnipotent.net/jquery.sparkline/">jQuery Sparklines</a> (License: New BSD License).','wp-piwik'); ?> - </td> -</tr> -<tr> - <td> - <?php _e('Metabox support inspired by', 'wp-piwik'); echo ' <a href="http://www.code-styling.de/english/how-to-use-wordpress-metaboxes-at-own-plugins">Heiko Rabe\'s metabox demo plugin</a>.';?> - <?php _e('Tabbed settings page suggested by the', 'wp-piwik'); echo' <a href="http://wp.smashingmagazine.com/2011/10/20/create-tabs-wordpress-settings-pages/">Smashing Magazine</a>.';?> - </td> -</tr> -<tr> - <td> - <?php _e('Thank you very much','wp-piwik'); ?>, <a href="http://blogu.programeshqip.org/">Besnik Bleta</a>, <a href="http://www.fatcow.com/">FatCow</a>, <a href="http://www.pamukkaleturkey.com/">Rene</a>, Fab, <a href="http://ezbizniz.com/">EzBizNiz</a>, Gormer, Natalya, <a href="www.aggeliopolis.gr">AggelioPolis</a><?php _e(', and', 'wp-piwik'); ?> <a href="http://wwww.webhostinggeeks.com">Web Hosting Geeks</a>, <a href="http://www.webhostingrating.com">Web Hosting Rating</a>, <a href="http://www.webhostinghub.com">Nata Strazda (Web Hosting Hub)</a>, <a href="http://www.libreoffice.ir">Hossein, LibreOffice localization team</a>, <a href="http://www.vogliaditerra.com">Ste</a> & Chris <?php _e('for your translation work','wp-piwik'); ?>! - </td> -</tr> -<tr> - <td> - <?php _e('Thank you very much, all users who send me mails containing criticism, commendation, feature requests and bug reports! You help me to make WP-Piwik much better.','wp-piwik'); ?> - </td> -</tr> -<tr> - <td> - <?php _e('Thank <strong>you</strong> for using my plugin. It is the best commendation if my piece of code is really used!','wp-piwik'); ?> - </td> -</tr> \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/settings/homepage.php b/wp-content/plugins/wp-piwik/settings/homepage.php deleted file mode 100644 index 919b6f96d3147b14c4ba2e52cda4b96724273d07..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/settings/homepage.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php -$strVersion = $this->callPiwikAPI('API.getPiwikVersion'); -// http://wordpress.org/support/rss/tags/wp-piwik -?><tr><td><strong><?php _e('Thanks for using WP-Piwik!', 'wp-piwik'); ?></strong></td></tr> -<tr><td><?php -if (is_array($strVersion) && $strVersion['result'] == 'error') self::showErrorMessage($strVersion['message']); -elseif (empty($strVersion)) self::showErrorMessage('Piwik did not answer. Please check your entered Piwik URL.'); -else echo __('You are using Piwik','wp-piwik').' '.$strVersion.' '.__('and', 'wp-piwik').' WP-Piwik '.self::$strVersion.(is_plugin_active_for_network('wp-piwik/wp-piwik.php')?' '.__('in network mode', 'wp-piwik'):'').'.'; -?></td></tr> -<tr><td><?php _e('Auto site configuration is','wp-piwik'); ?> <strong><?php echo (self::$settings->getGlobalOption('auto_site_config')?__('enabled','wp-piwik'):__('disabled','wp-piwik')); ?>.</strong></td></tr> -<tr><td><?php _e('Tracking code insertion is','wp-piwik'); ?> <strong><?php echo (self::$settings->getGlobalOption('add_tracking_code')?__('enabled','wp-piwik'):__('disabled','wp-piwik')); ?>.</strong></td></tr> \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/settings/index.php b/wp-content/plugins/wp-piwik/settings/index.php deleted file mode 100644 index 9b3347dc327ee0179b3df406f1d910c861c05d3a..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/settings/index.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php - // Nothing to see... \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/settings/piwik.php b/wp-content/plugins/wp-piwik/settings/piwik.php deleted file mode 100644 index 62d3a614225b59f3b21ebd17d565fef3f2e51c0e..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/settings/piwik.php +++ /dev/null @@ -1,123 +0,0 @@ -<?php -$bolCURL = function_exists('curl_init'); -$bolFOpen = ini_get('allow_url_fopen'); -if (!$bolFOpen && !$bolCURL) { -?><tr> - <td colspan="2"> - <strong><?php _e('Error: cURL is not enabled and fopen is not allowed to open URLs. WP-Piwik won\'t be able to connect to Piwik.'); ?></strong> - </td> -</tr><?php } else { ?><tr> - <td colspan="2"> - <?php _e('To enable Piwik statistics, please enter', 'wp-piwik'); ?>: - <ol> - <li><?php _e('your Piwik base URL (like http://mydomain.com/piwik) or your Piwik server path (like /var/www/mydomain.com/httpdocs/piwik/)', 'wp-piwik'); ?></li> - <li><?php _e('your personal Piwik authentification token. You can get the token on the API page inside your Piwik interface. It looks like "1234a5cd6789e0a12345b678cd9012ef".', 'wp-piwik'); ?></li> - </ol> - <?php _e('No idea what I\'m talking about?', 'wp-piwik'); ?> <a href="http://peepbo.de/board/viewtopic.php?f=5&t=10"><?php _e('Get help.', 'wp-piwik'); ?></a> - <?php if (!is_plugin_active_for_network('wp-piwik/wp-piwik.php')) { ?> - <p><?php _e('<strong>Important note:</strong> If you do not host this blog on your own, your site admin is able to get your auth token from the database.', 'wp-piwik'); ?></p> - <?php } ?> - </td> -</tr><tr> - <th><?php _e('Piwik URL', 'wp-piwik'); ?> (REST API):</th> - <td> - <input type="radio" name="wp-piwik_mode" onchange="javascript:$j('#wp-piwik_path,#wp-piwik_url').toggleClass('wp-piwik-input-hide');" value="http" <?php echo (self::$settings->getGlobalOption('piwik_mode')=='http'?'checked="checked" ':''); ?>/> - <input <?php echo (self::$settings->getGlobalOption('piwik_mode')=='php'?'class="wp-piwik-input-hide" ':''); ?>id="wp-piwik_url" name="wp-piwik_url" type="text" value="<?php echo self::$settings->getGlobalOption('piwik_url'); ?>" /> - </td> -</tr><tr> - <th><?php _e('Piwik path', 'wp-piwik'); ?> (PHP API, beta):</th> - <td> - <input type="radio" name="wp-piwik_mode" onchange="javascript:$j('#wp-piwik_path,#wp-piwik_url').toggleClass('wp-piwik-input-hide');" value="php" <?php echo (self::$settings->getGlobalOption('piwik_mode')=='php'?'checked="checked" ':''); ?>/> - <input <?php echo (self::$settings->getGlobalOption('piwik_mode')!='php'?'class="wp-piwik-input-hide" ':''); ?>id="wp-piwik_path" name="wp-piwik_path" type="text" value="<?php echo self::$settings->getGlobalOption('piwik_path'); ?>" /> - <?php - if (isset($_POST['wp-piwik_path']) && !empty($_POST['wp-piwik_path']) && realpath($_POST['wp-piwik_path']) === false) - echo '<p class="wp-piwik-eyecatcher">'.__('Invalid path. Please enter the file path to Piwik.', 'wp-piwik').'</p>'; - ?> - </td> -</tr><tr> - <th><?php _e('Auth token', 'wp-piwik'); ?>:</th> - <td> - <input name="wp-piwik_token" id="wp-piwik_token" type="text" value="<?php echo self::$settings->getGlobalOption('piwik_token'); ?>" /> - <label for="wp-piwik_token"></label> - </td> -</tr><tr><th><?php _e('Enable cache', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_cache" name="wp-piwik_cache"<?php echo (self::$settings->getGlobalOption('cache')?' checked="checked"':''); ?> /> - <label for="wp-piwik_cache"><?php _e('Cache API calls, which not contain today\'s values, for a week', 'wp-piwik'); ?>.</label> -</td></tr> - -<?php if (!is_plugin_active_for_network('wp-piwik/wp-piwik.php')) { ?><tr> - <th><?php _e('Auto config', 'wp-piwik'); ?>:</th> - <td> - <input name="wp-piwik_auto_site_config" id="wp-piwik_auto_site_config" value="1" type="checkbox"<?php echo (self::$settings->getGlobalOption('auto_site_config')?' checked="checked"':'') ?>/> - <label for="wp-piwik_auto_site_config"><?php _e('Check this to automatically choose your blog from your Piwik sites by URL. If your blog is not added to Piwik yet, WP-Piwik will add a new site.', 'wp-piwik') ?></label> - </td> -</tr> -<?php -if (self::$settings->getGlobalOption('piwik_url') && self::$settings->getGlobalOption('piwik_token')) { - $aryData = $this->callPiwikAPI('SitesManager.getSitesWithAtLeastViewAccess'); - if (empty($aryData)) { - echo '<tr><td colspan="2">'; - self::showErrorMessage(__('Please check URL and auth token. You need at least view access to one site.', 'wp-piwik')); - echo '</td></tr>'; - } - elseif (isset($aryData['result']) && $aryData['result'] == 'error') { - echo '<tr><td colspan="2">'; - self::showErrorMessage($aryData['message']); - echo '</td></tr>'; - } elseif (!self::$settings->getGlobalOption('auto_site_config')) { - echo '<tr><th>'.__('Choose site', 'wp-piwik').':</th><td>'; - echo '<select name="wp-piwik_siteid" id="wp-piwik_siteid">'; - $aryOptions = array(); - foreach ($aryData as $arySite) - $aryOptions[$arySite['name'].'#'.$arySite['idsite']] = '<option value="'.$arySite['idsite']. - '"'.($arySite['idsite']==self::$settings->getOption('site_id')?' selected="selected"':''). - '>'.htmlentities($arySite['name'], ENT_QUOTES, 'utf-8'). - '</option>'; - ksort($aryOptions); - foreach ($aryOptions as $strOption) echo $strOption; - echo '</select></td></tr>'; - } else { - if (!self::$settings->getOption('site_id')) - $this->addPiwikSite(); - echo '<tr><th>'.__('Determined site', 'wp-piwik').':</th><td>'; - echo '<div class="input-text-wrap">'; - $siteId = self::$settings->getOption('site_id'); - if (is_array($siteId) && $siteId['result'] == 'error') - self::showErrorMessage($siteId['message']); - else foreach ($aryData as $arySite) - if ($arySite['idsite'] == $siteId) {echo '<em>'.htmlentities($arySite['name'], ENT_QUOTES, 'utf-8').'</em>'; break;} - echo '<input type="hidden" name="wp-piwik_siteid" id="wp-piwik_siteid" value="'.(int)$siteId.'" /></td></tr>'; - } -} -}} -// Expert settings (cURL only) -?><tr> - <th colspan="2"><strong><?php _e('Expert Settings', 'wp-piwik'); ?>:</strong></th> -</tr><tr> - <th><label><?php _e('Connection timeout', 'wp-piwik'); ?>:</label></th> - <td> - <input style="width:50px;" type="text" name="wp-piwik_timeout" value="<?php echo self::$settings->getGlobalOption('connection_timeout'); ?>" /> - </td> -</tr> -<?php if (function_exists('curl_init')) { ?> -<tr> - <th><label <?php echo (self::$settings->getGlobalOption('piwik_mode')=='php'?'class="wp-piwik-input-hide" ':''); ?>id="wp-piwik_disable_ssl_verify-label"><?php _e('Disable SSL peer verification', 'wp-piwik'); ?>:</label></th> - <td> - <input <?php echo (self::$settings->getGlobalOption('piwik_mode')=='php'?'class="wp-piwik-input-hide" ':''); ?>id="wp-piwik_disable_ssl_verify" name="wp-piwik_disable_ssl_verify" type="checkbox"<?php echo (self::$settings->getGlobalOption('disable_ssl_verify')?'checked="checked"':''); ?> /> (<?php _e('not recommended','wp-piwik'); ?>) - </td> -</tr><tr> - <th><label><?php _e('User agent', 'wp-piwik'); ?>:</label></th> - <td> - <input type="radio" onchange="javascript:$j('#wp-piwik-useragent').toggleClass('readonly="readonly"');" name="wp-piwik_useragent" value="php" <?php echo (self::$settings->getGlobalOption('piwik_useragent')=='php'?'checked="checked" ':''); ?>/> PHP default (<?php echo ini_get('user_agent'); ?>) - </td> -</tr><tr> - <th></th> - <td> - <input type="radio" onchange="javascript:$j('#wp-piwik-useragent').toggleClass('wp-piwik-useragent-disable');" name="wp-piwik_useragent" value="own" <?php echo (self::$settings->getGlobalOption('piwik_useragent')=='own'?'checked="checked" ':''); ?>/> <input type="text" id="wp-piwik-useragent" name="wp-piwik_useragent_string" value="<?php echo self::$settings->getGlobalOption('piwik_useragent_string'); ?>" /> - </td> -</tr> -<?php } else { ?> -<tr> - <td colspan="2"><?php _e('Further expert settings require cURL. See <a href="http://www.php.net/manual/curl.setup.php">PHP manual</a>', 'wp-piwik'); ?>.</td> -</tr> -<?php } \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/settings/sitebrowser.php b/wp-content/plugins/wp-piwik/settings/sitebrowser.php deleted file mode 100644 index ffac8d0940278fdaf13b9845ebad3e6d2a1027f9..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/settings/sitebrowser.php +++ /dev/null @@ -1,99 +0,0 @@ -<?php -$bolCURL = function_exists('curl_init'); -$bolFOpen = ini_get('allow_url_fopen'); -if (!$bolFOpen && !$bolCURL) { -?><tr> - <td colspan="2"> - <strong><?php _e('Error: cURL is not enabled and fopen is not allowed to open URLs. WP-Piwik won\'t be able to connect to Piwik.'); ?></strong> - </td> -</tr><?php } else { ?> -</table> -<?php -if (!class_exists('WP_List_Table')) - require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); - -if (isset($_GET['wpmu_show_stats']) && ($_GET['wpmu_show_stats'] == (int) $_GET['wpmu_show_stats'])) { - $this->addPiwikSite(); -} - -// See wpengineer.com/2426/wp_list_table-a-step-by-step-guide/ -class SiteBrowser extends WP_List_Table { - - var $aryData = array(); - - function get_columns(){ - $columns = array( - 'id' => __('ID','wp-piwik'), - 'name' => __('Title','wp-piwik'), - 'siteurl' => __('URL','wp-piwik'), - 'piwikid' => __('Site ID (Piwik)','wp-piwik') - ); - return $columns; - } - - function prepare_items($bolNetwork = false) { - $current_page = $this->get_pagenum(); - $per_page = 10; - global $blog_id; - global $wpdb; - global $pagenow; - if (is_plugin_active_for_network('wp-piwik/wp-piwik.php')) { - $total_items = $wpdb->get_var('SELECT COUNT(*) FROM '.$wpdb->blogs); - $aryBlogs = $wpdb->get_results($wpdb->prepare('SELECT blog_id FROM '.$wpdb->blogs.' ORDER BY blog_id LIMIT %d,%d',(($current_page-1)*$per_page),$per_page)); - foreach ($aryBlogs as $aryBlog) { - $objBlog = get_blog_details($aryBlog->blog_id, true); - $this->aryData[] = array( - 'name' => $objBlog->blogname, - 'id' => $objBlog->blog_id, - 'siteurl' => $objBlog->siteurl, - 'piwikid' => WP_Piwik::getSiteID($objBlog->blog_id) - ); - } - } else { - $objBlog = get_bloginfo(); - $this->aryData[] = array( - 'name' => get_bloginfo('name'), - 'id' => '-', - 'siteurl' => get_bloginfo('url'), - 'piwikid' => WP_Piwik::getSiteID() - ); - $total_items = 1; - } - $columns = $this->get_columns(); - $hidden = array(); - $sortable = array(); - $this->_column_headers = array($columns, $hidden, $sortable); - $this->set_pagination_args(array( - 'total_items' => $total_items, - 'per_page' => $per_page - )); - if ($bolNetwork) $pagenow = 'settings.php'; - foreach ($this->aryData as $intKey => $aryDataset) { - if (empty($aryDataset['piwikid']) || !is_int($aryDataset['piwikid'])) - $this->aryData[$intKey]['piwikid'] = '<a href="'.admin_url(($pagenow == 'settings.php'?'network/':'')).$pagenow.'?page=wp-piwik/wp-piwik.php&tab=sitebrowser'.($aryDataset['id'] != '-'?'&wpmu_show_stats='.$aryDataset['id']:'').'">Create Piwik site</a>'; - if ($bolNetwork) - $this->aryData[$intKey]['name'] = '<a href="?page=wp-piwik_stats&wpmu_show_stats='.$aryDataset['id'].'">'.$aryDataset['name'].'</a>'; - } - $this->items = $this->aryData; - return count($this->items); - } - - function column_default( $item, $column_name ) { - switch( $column_name ) { - case 'id': - case 'name': - case 'siteurl': - case 'piwikid': - return $item[$column_name]; - default: - return print_r($item,true); - } - } -} -$objSiteBrowser = new SiteBrowser(); -$intCnt = $objSiteBrowser->prepare_items($this->bolNetwork); -if ($intCnt > 0) $objSiteBrowser->display(); -else echo '<p>No site configured yet.</p>' -?> -<table> -<?php } ?> \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/settings/support.php b/wp-content/plugins/wp-piwik/settings/support.php deleted file mode 100644 index 3c6af523ea988d0a3b00578dd2988b28dbe5fa22..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/settings/support.php +++ /dev/null @@ -1,60 +0,0 @@ -<tr> - <td><a href="http://wordpress.org/tags/wp-piwik?forum_id=10"><?php _e('WordPress.org forum about WP-Piwik','wp-piwik'); ?></a></td> -</tr> -<tr> - <td><?php _e('Please don\'t forget to vote the compatibility at the','wp-piwik'); ?> <a href="http://wordpress.org/extend/plugins/wp-piwik/">WordPress.org Plugin Directory</a>.</td> -</tr> -<tr> - <td> - <h3><?php _e('Debugging', 'wp-piwik'); ?></h3> - <p><?php _e('Either allow_url_fopen has to be enabled <em>or</em> cURL has to be available:', 'wp-piwik'); ?></p> - <ol> - <li><?php - _e('cURL is','wp-piwik'); - echo ' <strong>'.(function_exists('curl_init')?'':__('not','wp-piwik')).' '; - _e('available','wp-piwik'); - ?></strong>.</li> - <li><?php - _e('allow_url_fopen is','wp-piwik'); - echo ' <strong>'.(ini_get('allow_url_fopen')?'':__('not','wp-piwik')).' '; - _e('enabled','wp-piwik'); - ?></strong>.</li> - </ol> -<?php if (self::$settings->getGlobalOption('piwik_token') && self::$settings->getGlobalOption('piwik_url')) { ?> -<?php - if (isset($_GET['mode'])) { - switch ($_GET['mode']) { - case 'testscript': - echo '<p><strong>'.__('Test script result','wp-piwik').'</strong></p>'; - self::loadTestscript(); - break; - case 'reset': - echo '<p class="wp-piwik-eyecatcher"><strong class="wp-piwik-error">'.__('Please confirm your reset request','wp-piwik').':</strong> <a href="?page=wp-piwik/wp-piwik.php&tab=support&mode=resetconfirmed">'.__('YES, please reset <strong>all</strong> WP-Piwik settings <strong>except</strong> auth token and Piwi URL.', 'wp-piwik').'</a></p>'; - break; - case 'resetconfirmed': - // Increase time limit before resetting - set_time_limit(0); - self::$settings->resetSettings((isset($_GET['full']) && $_GET['full'])); - echo '<p class="wp-piwik-eyecatcher"><strong>'.__('WP-Piwik reset done','wp-piwik').'</strong></p>'; - default: - } - } -?> - <p><strong><?php _e('Get more debug information', 'wp-piwik'); ?>:</strong></p> - <ol> - <li><a href="?page=wp-piwik/wp-piwik.php&tab=support&mode=testscript"><?php _e('Run test script','wp-piwik'); ?></a></li> - <li><a href="?page=wp-piwik/wp-piwik.php&tab=sitebrowser"><?php _e('Get site configuration details','wp-piwik'); ?></a></li> - <li><a href="?page=wp-piwik/wp-piwik.php&tab=support&mode=reset"><?php _e('Reset WP-Piwik settings except auth token and Piwik URL','wp-piwik'); ?></a> (<?php _e('This will not affect Piwik itself. Resetting large networks may take some minutes.', 'wp-piwik'); ?>)</li> - </ol> -<?php } else echo '<p>'.__('You have to enter your auth token and the Piwik URL before you can access more debug functions.', 'wp-piwik').'</p>'; ?> - </td> -</tr> -<tr><td><h3><?php _e('Latest support threads on WordPress.org', 'wp-piwik'); ?></h3> -<?php - $arySupportThreads = self::readRSSFeed('http://wordpress.org/support/rss/plugin/wp-piwik'); - if (!empty($arySupportThreads)) { - echo '<ol>'; - foreach ($arySupportThreads as $arySupportThread) echo '<li><a href="'.$arySupportThread['url'].'">'.$arySupportThread['title'].'</a></li>'; - echo '</ol>'; - } -?></td></tr> \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/settings/tracking.php b/wp-content/plugins/wp-piwik/settings/tracking.php deleted file mode 100644 index d0b2f52f81b6cbee71b0b29d94cf74909890cdf6..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/settings/tracking.php +++ /dev/null @@ -1,157 +0,0 @@ -<?php -$bolCURL = function_exists('curl_init'); -$bolFOpen = ini_get('allow_url_fopen'); -if (!$bolFOpen && !$bolCURL) { -?><tr> - <td colspan="2"> - <strong><?php _e('Error: cURL is not enabled and fopen is not allowed to open URLs. WP-Piwik won\'t be able to connect to Piwik.'); ?></strong> - </td> -</tr><?php } else { ?> -<tr><td colspan="2"><?php _e('Add tracking code', 'wp-piwik'); ?>: - <input - onchange="javascript:$j('#wp-piwik-tracking-settings').toggleClass('wp-piwik-form-table-hide');" - type="checkbox" value="1" id="wp-piwik_addjs" name="wp-piwik_addjs"<?php echo (self::$settings->getGlobalOption('add_tracking_code')?' checked="checked"':''); ?> /> - <label for="wp-piwik_addjs"><?php _e('If your template uses wp_footer(), WP-Piwik can automatically add the Piwik javascript code to your blog.', 'wp-piwik'); ?></label> -</td></tr> -</table> -<?php -if (self::$settings->getGlobalOption('add_tracking_code')) { - $strJavaScript = $this->callPiwikAPI('SitesManager.getJavascriptTag'); - if (is_array($strJavaScript)) { - if (isset($strJavaScript['result']) && $strJavaScript['result'] == 'error') - self::showErrorMessage(__($strJavaScript['message'],'wp-piwik')); - } else { - // Save javascript code - self::$settings->setOption('tracking_code', $strJavaScript); - } - self::$settings->save(); -} -?> -<table id="wp-piwik-tracking-settings" class="wp-piwik-form-table form-table<?php echo (!self::$settings->getGlobalOption('add_tracking_code')?' wp-piwik-form-table-hide':''); ?>"> -<tr><th><?php _e('Tracking code preview', 'wp-piwik'); ?>:</th><td> -<textarea id="wp-piwik_jscode" name="wp-piwik_jscode" readonly="readonly" rows="13" cols="80"> -<?php echo (is_plugin_active_for_network('wp-piwik/wp-piwik.php')?'*** SITE SPECIFIC EXAMPLE CODE ***'."\n":'').htmlentities(self::$settings->getOption('tracking_code')); ?> -</textarea> -</td></tr> - -<tr><th><?php _e('<noscript> code preview', 'wp-piwik'); ?>:</th><td> -<textarea id="wp-piwik_nocode" name="wp-piwik_nocode" readonly="readonly" rows="2" cols="80"> -<?php echo (is_plugin_active_for_network('wp-piwik/wp-piwik.php')?'*** SITE SPECIFIC EXAMPLE CODE ***'."\n":'').htmlentities(self::$settings->getOption('noscript_code')); ?> -</textarea> -</td></tr> - -<tr><th><?php _e('Default tracking', 'wp-piwik'); ?>:</th><td> - <input type="radio" value="0" id="wp-piwik_default" name="wp-piwik_trackingmode"<?php echo (self::$settings->getGlobalOption('track_mode')==0?' checked="checked"':''); ?> /> - <label for="wp-piwik_compress"><?php _e('WP-Piwik uses the Piwik default tracking code.', 'wp-piwik'); ?> <a href="http://demo.piwik.org/js/README">js/README</a>.</label> -</td></tr> - -<tr><th><?php _e('Use js/index.php', 'wp-piwik'); ?>:</th><td> - <input type="radio" value="1" id="wp-piwik_compress" name="wp-piwik_trackingmode"<?php echo (self::$settings->getGlobalOption('track_mode')==1?' checked="checked"':''); ?> /> - <label for="wp-piwik_compress"><?php _e('WP-Piwik can automatically use js/index.php instead of piwik.js and piwik.php. See', 'wp-piwik'); ?> <a href="http://demo.piwik.org/js/README">js/README</a>.</label> -</td></tr> - -<tr><th><?php _e('Use proxy script', 'wp-piwik'); ?>:</th><td> - <input type="radio" value="2" id="wp-piwik_proxy" name="wp-piwik_trackingmode"<?php echo (self::$settings->getGlobalOption('track_mode')==2?' checked="checked"':''); ?> /> - <label for="wp-piwik_compress"><?php _e('WP-Piwik will use the piwik.php proxy script. See', 'wp-piwik'); ?> <a href="http://piwik.org/faq/how-to/#faq_132">Piwik FAQ</a>.</label> -</td></tr> - -<tr><th><?php _e('JavaScript code position', 'wp-piwik'); ?>:</th><td> - <select id="wp-piwik_codeposition" name="wp-piwik_codeposition"<?php echo (self::$settings->getGlobalOption('track_codeposition')?' checked="checked"':''); ?>> - <option value="footer"<?php echo (self::$settings->getGlobalOption('track_codeposition') == 'footer'?' selected="selected"':''); ?>><?php _e('Footer', 'wp-piwik'); ?></option> - <option value="header"<?php echo (self::$settings->getGlobalOption('track_codeposition') == 'header'?' selected="selected"':''); ?>><?php _e('Header', 'wp-piwik'); ?></option> - </select> - <label for="wp-piwik_codeposition"><?php echo _e('Choose whether the JavaScript code is added to the footer or the header.', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Add <noscript>', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_noscript" name="wp-piwik_noscript"<?php echo (self::$settings->getGlobalOption('track_noscript')?' checked="checked"':''); ?> /> - <label for="wp-piwik_noscript"><?php echo _e('Adds the <noscript> code to your footer.', 'wp-piwik'); ?> <?php _e('Disabled in proxy mode.', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Add rec parameter to noscript code', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_nojavascript" name="wp-piwik_nojavascript"<?php echo (self::$settings->getGlobalOption('track_nojavascript')?' checked="checked"':''); ?> /> - <label for="wp-piwik_nojavascript"><?php echo _e('Enable tracking for visitors without JavaScript (not recommended). See', 'wp-piwik'); ?> <a href="http://piwik.org/faq/how-to/#faq_176">Piwik FAQ</a>. <?php _e('Disabled in proxy mode.', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Disable cookies', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_disable_cookies" name="wp-piwik_disable_cookies"<?php echo (self::$settings->getGlobalOption('disable_cookies')?' checked="checked"':''); ?> /> - <label for="wp-piwik_disable_cookies"><?php echo _e('Disable all tracking cookies for a visitor.', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Limit cookie lifetime', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_limit_cookies" name="wp-piwik_limit_cookies"<?php echo (self::$settings->getGlobalOption('limit_cookies')?' checked="checked"':''); ?> /> - <label for="wp-piwik_limit_cookies"><?php echo _e('Limit cookie lifetime as follows', 'wp-piwik'); ?>:</label><br /> - <?php echo _e('Visitor timeout (seconds)', 'wp-piwik'); ?>: <input type="text" name="wp-piwik_limit_cookies_visitor" value="<?php echo self::$settings->getGlobalOption('limit_cookies_visitor'); ?>"><br /><?php echo _e('Session timeout (seconds)', 'wp-piwik'); ?>: <input type="text" name="wp-piwik_limit_cookies_session" value="<?php echo self::$settings->getGlobalOption('limit_cookies_session'); ?>"></td></tr> - -<tr><th><?php _e('Track visitors across all subdomains', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_track_across" name="wp-piwik_track_across"<?php echo (self::$settings->getGlobalOption('track_across')?' checked="checked"':''); ?> /> - <label for="wp-piwik_track_across"><?php echo _e('Adds *.-prefix to cookie domain.', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Track visitors across all alias URLs', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_track_across_alias" name="wp-piwik_track_across_alias"<?php echo (self::$settings->getGlobalOption('track_across_alias')?' checked="checked"':''); ?> /> - <label for="wp-piwik_track_across_alias"><?php echo _e('Adds *.-prefix to tracked domain.', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Track search', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_search" name="wp-piwik_search"<?php echo (self::$settings->getGlobalOption('track_search')?' checked="checked"':''); ?> /> - <label for="wp-piwik_search"><?php echo _e('Use Piwik\'s advanced Site Search Analytics feature. See', 'wp-piwik'); ?> <a href="http://piwik.org/docs/javascript-tracking/#toc-tracking-internal-search-keywords-categories-and-no-result-search-keywords">Piwik Docs</a>.</label> -</td></tr> - -<tr><th><?php _e('Track 404', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_404" name="wp-piwik_404"<?php echo (self::$settings->getGlobalOption('track_404')?' checked="checked"':''); ?> /> - <label for="wp-piwik_404"><?php echo _e('WP-Piwik can automatically add a 404-category to track 404-page-visits.', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Add annotation on new post', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_annotations" name="wp-piwik_annotations"<?php echo (self::$settings->getGlobalOption('add_post_annotations')?' checked="checked"':''); ?> /> - <label for="wp-piwik_annotations"><?php echo _e('Add a Piwik annotation on each new post, see', 'wp-piwik'); ?> <a href="http://piwik.org/docs/annotations/">Piwik Docs</a>.</label> -</td></tr> - -<tr><th><?php _e('Show custom variables box', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_customvars" name="wp-piwik_customvars"<?php echo (self::$settings->getGlobalOption('add_customvars_box')?' checked="checked"':''); ?> /> - <label for="wp-piwik_customvars"><?php echo _e('Show a custom vars edit box on post edit page.', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Avoid mod_security', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_reqpost" name="wp-piwik_reqpost"<?php echo (self::$settings->getGlobalOption('track_post')?' checked="checked"':''); ?> /> - <label for="wp-piwik_reqpost"><?php _e('WP-Piwik can automatically force the Tracking Code to sent data in POST. See', 'wp-piwik'); ?> <a href="http://piwik.org/faq/troubleshooting/#faq_100">Piwik FAQ</a>. <?php _e('Disabled in proxy mode.', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Add data-cfasync=false', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_datacfasync" name="wp-piwik_datacfasync"<?php echo (self::$settings->getGlobalOption('track_datacfasync')?' checked="checked"':''); ?> /> - <label for="wp-piwik_datacfasync"><?php _e('Adds data-cfasync=false to the script tag, e.g., to ask Rocket Loader to ignore the script.', 'wp-piwik'); ?> -</td></tr> - -<tr><th><?php _e('CDN URL', 'wp-piwik'); ?>:</th><td> - http://<input type="text" value="<?php echo self::$settings->getGlobalOption('track_cdnurl'); ?>" id="wp-piwik_cdnurl" name="wp-piwik_cdnurl" /> https://<input type="text" value="<?php echo self::$settings->getGlobalOption('track_cdnurlssl'); ?>" id="wp-piwik_cdnurlssl" name="wp-piwik_cdnurlssl" /><br /> - <label for="wp-piwik_reqpost"><?php _e('Leave blank if you do not want to define a CDN URL or you do not know what this is.', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Track admin pages', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_trackadmin" name="wp-piwik_trackadmin"<?php echo (self::$settings->getGlobalOption('track_admin')?' checked="checked"':''); ?> /> - <label for="wp-piwik_trackadmin"><?php _e('Enable to track users on admin pages (remember to configure the tracking filter appropriately).', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Track RSS feeds', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_trackfeed" name="wp-piwik_trackfeed"<?php echo (self::$settings->getGlobalOption('track_feed')?' checked="checked"':''); ?> /> - <label for="wp-piwik_trackfeed"><?php _e('Enable to track posts in feeds via tracking pixel.', 'wp-piwik'); ?></label> -</td></tr> - -<tr><th><?php _e('Track RSS feed links as campaign', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_trackfeed_addcampaign" name="wp-piwik_trackfeed_addcampaign"<?php echo (self::$settings->getGlobalOption('track_feed_addcampaign')?' checked="checked"':''); ?> /> - <label for="wp-piwik_trackfeed_addcampaign"><?php _e('This will add Piwik campaign parameters to the RSS feed links.', 'wp-piwik'); ?> (<a href="https://piwik.org/docs/tracking-campaigns/">Piwik: Tracking campaign</a>)</label><br /> - <?php _e('Campaign', 'wp-piwik'); ?>: <input type="text" value="<?php echo self::$settings->getGlobalOption('track_feed_campaign'); ?>" id="wp-piwik_trackfeed_campaign" name="wp-piwik_trackfeed_campaign"> <?php _e('Keyword: post name.', 'wp-piwik'); ?> -</td></tr> - -<tr><th><?php _e('Tracking filter', 'wp-piwik'); ?>:</th><td> -<?php - global $wp_roles; - $aryFilter = self::$settings->getGlobalOption('capability_stealth'); - foreach($wp_roles->role_names as $strKey => $strName) { - echo '<input type="checkbox" '.(isset($aryFilter[$strKey]) && $aryFilter[$strKey]?'checked="checked" ':'').'value="1" name="wp-piwik_filter['.$strKey.']" /> '.$strName.' '; - } -?><br><?php _e('Choose users by user role you do <strong>not</strong> want to track.','wp-piwik'); ?></td></tr> -</table> -<table class="wp-piwik-form-table form-table"> -<?php } ?> \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/settings/views.php b/wp-content/plugins/wp-piwik/settings/views.php deleted file mode 100644 index 70469416eb00184926b9910610e6337b420adf0f..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/settings/views.php +++ /dev/null @@ -1,65 +0,0 @@ -<?php -$bolCURL = function_exists('curl_init'); -$bolFOpen = ini_get('allow_url_fopen'); -if (!$bolFOpen && !$bolCURL) { -?><tr> - <td colspan="2"> - <strong><?php _e('Error: cURL is not enabled and fopen is not allowed to open URLs. WP-Piwik won\'t be able to connect to Piwik.'); ?></strong> - </td> -</tr><?php } else { ?> -<tr><th><?php _e('WP-Piwik display name', 'wp-piwik'); ?>:</th><td> - <input type="text" id="wp-piwik_displayname" name="wp-piwik_displayname" value="<?php echo self::$settings->getGlobalOption('plugin_display_name'); ?>" /> - <label for="wp-piwik_displayname"><?php echo _e('Plugin name shown in WordPress.', 'wp-piwik'); ?></label> -</td></tr> -<tr><th>Piwik <?php _e('Default date', 'wp-piwik'); ?>:</th><td> - <select id="wp-piwik_default_date" name="wp-piwik_default_date"> - <option value="yesterday"<?php echo (self::$settings->getGlobalOption('default_date') == 'yesterday'?' selected="selected"':'');?>> <?php _e('yesterday', 'wp-piwik');?></option> - <option value="today"<?php echo (self::$settings->getGlobalOption('default_date') == 'today'?' selected="selected"':'');?>> <?php _e('today', 'wp-piwik');?></option> - </select> - <label for="wp-piwik_default_date"><?php echo _e('Default date shown on statistics page.', 'wp-piwik'); ?></label> -</td></tr> -<tr><th><?php _e('Home Dashboard', 'wp-piwik'); ?>:</th><td> - <select id="wp-piwik_dbwidget" name="wp-piwik_dbwidget"> - <option value="0"'<?php echo (!self::$settings->getGlobalOption('dashboard_widget')?' selected="selected"':''); ?>><?php _e('Hide overview', 'wp-piwik'); ?></option> - <option value="yesterday"<?php echo (self::$settings->getGlobalOption('dashboard_widget') == 'yesterday'?' selected="selected"':''); ?>><?php echo __('Show overview','wp-piwik').' ('.__('yesterday', 'wp-piwik').')'; ?></option> - <option value="today"<?php echo (self::$settings->getGlobalOption('dashboard_widget') == 'today'?' selected="selected"':''); ?>><?php echo __('Show overview','wp-piwik').' ('.__('today', 'wp-piwik').')'; ?></option> - <option value="last30"<?php echo (self::$settings->getGlobalOption('dashboard_widget') == 'last30'?' selected="selected"':''); ?>><?php echo __('Show overview','wp-piwik').' ('.__('last 30 days','wp-piwik').')'; ?></option> - </select> - <input type="checkbox" value="1" name="wp-piwik_dbchart" id="wp-piwik_dbchart"<?php echo (self::$settings->getGlobalOption('dashboard_chart')?' checked="checked"':""); ?>/> <?php _e('Chart', 'wp-piwik'); ?> - <input type="checkbox" value="1" name="wp-piwik_dbseo" id="wp-piwik_dbseo"<?php echo (self::$settings->getGlobalOption('dashboard_seo')?' checked="checked"':""); ?>/> <?php _e('SEO <em>(slow!)</em>', 'wp-piwik'); ?> - <br><?php _e('Configure WP-Piwik widgets to be shown on your WordPress Home Dashboard.', 'wp-piwik'); ?> -</td></tr> -<tr><th><?php _e('Show graph on WordPress Toolbar', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_toolbar" name="wp-piwik_toolbar"<?php echo (self::$settings->getGlobalOption('toolbar')?' checked="checked"':''); ?> /> - <label for="wp-piwik_toolbar"><?php echo _e('Display the last 30 days visitor stats on WordPress Toolbar.', 'wp-piwik'); ?></label> -</td></tr> -<tr><th><?php _e('SEO data', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_statsseo" name="wp-piwik_statsseo"<?php echo (self::$settings->getGlobalOption('stats_seo')?' checked="checked"':''); ?> /> - <label for="wp-piwik_statsseo"><?php echo _e('Display SEO ranking data on statistics page. <em>(Slow!)</em>', 'wp-piwik'); ?></label> -</td></tr> -<tr><th>Piwik <?php _e('Shortcut', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_piwiklink" name="wp-piwik_piwiklink"<?php echo (self::$settings->getGlobalOption('piwik_shortcut')?' checked="checked"':''); ?> /> - <label for="wp-piwik_piwiklink"><?php echo _e('Display a shortcut to Piwik itself.', 'wp-piwik'); ?></label> -</td></tr> -<tr><th>Piwik <?php _e('Display to', 'wp-piwik'); ?>:</th><td> -<?php - global $wp_roles; - $aryCapability = self::$settings->getGlobalOption('capability_read_stats'); - foreach($wp_roles->role_names as $strKey => $strName) - echo '<input name="wp-piwik_displayto['.$strKey.']" type="checkbox" value="1"'.(isset($aryCapability[$strKey]) && $aryCapability[$strKey]?' checked="checked"':'').'/> '.$strName.' '; -?> - <br><?php echo _e('Choose user roles allowed to see the statistics page.', 'wp-piwik'); ?> -</td></tr> -<tr><th><?php _e('Disable time limit', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_disabletimelimit" name="wp-piwik_disabletimelimit"<?php echo (self::$settings->getGlobalOption('disable_timelimit')?' checked="checked"':''); ?> /> - <label for="wp-piwik_disabletimelimit"><?php echo _e('Use set_time_limit(0) if stats page causes a time out.', 'wp-piwik'); ?></label> -</td></tr> -<tr><th><?php _e('Show per post stats', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_perpost" name="wp-piwik_perpost"<?php echo (self::$settings->getGlobalOption('perpost_stats')?' checked="checked"':''); ?> /> - <label for="wp-piwik_perpost"><?php echo _e('Show stats about single posts at the post edit admin page.', 'wp-piwik'); ?></label> -</td></tr> -<tr><th><?php _e('Enable shortcodes', 'wp-piwik'); ?>:</th><td> - <input type="checkbox" value="1" id="wp-piwik_shortcodes" name="wp-piwik_shortcodes"<?php echo (self::$settings->getGlobalOption('shortcodes')?' checked="checked"':''); ?> /> - <label for="wp-piwik_shortcodes"><?php echo _e('Enable shortcodes in post or page content.', 'wp-piwik'); ?></label> -</td></tr> -<?php } ?> \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/shortcodes/index.php b/wp-content/plugins/wp-piwik/shortcodes/index.php deleted file mode 100644 index 9b3347dc327ee0179b3df406f1d910c861c05d3a..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/shortcodes/index.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php - // Nothing to see... \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/shortcodes/overview.php b/wp-content/plugins/wp-piwik/shortcodes/overview.php deleted file mode 100644 index 5a3987383c1907c0f005cab9d827d07146faa137..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/shortcodes/overview.php +++ /dev/null @@ -1,48 +0,0 @@ -<?php -/********************************* - WP-Piwik::Short:Overview -**********************************/ -$aryData = $this->callPiwikAPI('VisitsSummary.get', - $this->aryAttributes['period'], - $this->aryAttributes['date'], - $this->aryAttributes['limit'] -); - -$this->strResult = '<table><tr><th colspan="2">'.__('Overview', 'wp-piwik').($this->aryAttributes['title']?' '.$this->aryAttributes['title']:'').'</th></tr>'; - -function summize($aryData) { - $aryTmp = array(); - foreach ($aryData as $aryValues) - foreach($aryValues as $strKey => $intValue) - if (isset($aryTmp[$strKey])) $aryTmp[$strKey] += $intValue; - else $aryTmp[$strKey] = $intValue; - $aryTmp['bounce_rate'] = ($aryTmp['nb_uniq_visitors']==0?0:round($aryTmp['bounce_count']/$aryTmp['nb_visits']*100,2)).'%'; - - return $aryTmp; -} - -if (is_array($aryData)) { - if (isset($aryData['result']) && $aryData['result'] == 'error') - $this->strResult .= '<tr><td>'.__('Error', 'wp-piwik').':'.'</td><td>'.$aryData['message'].'</td></tr>'; - else { - if (is_array(current($aryData))) - $aryData = summize($aryData); - $strTime = - floor($aryData['sum_visit_length']/3600).'h '. - floor(($aryData['sum_visit_length'] % 3600)/60).'m '. - floor(($aryData['sum_visit_length'] % 3600) % 60).'s'; - $strAvgTime = - floor($aryData['avg_time_on_site']/3600).'h '. - floor(($aryData['avg_time_on_site'] % 3600)/60).'m '. - floor(($aryData['avg_time_on_site'] % 3600) % 60).'s'; - $this->strResult .= '<tr><td>'.__('Visitors', 'wp-piwik').':'.'</td><td>'.$aryData['nb_visits'].'</td></tr>'; - $this->strResult .= '<tr><td>'.__('Unique visitors', 'wp-piwik').':'.'</td><td>'.$aryData['nb_uniq_visitors'].'</td></tr>'; - $this->strResult .= '<tr><td>'.__('Page views', 'wp-piwik').':'.'</td><td>'.$aryData['nb_actions'].' (Ø '.$aryData['nb_actions_per_visit'].')</td></tr>'; - $this->strResult .= '<tr><td>'.__('Max. page views in one visit', 'wp-piwik').':'.'</td><td>'.$aryData['max_actions'].'</td></tr>'; - $this->strResult .= '<tr><td>'.__('Total time spent', 'wp-piwik').':'.'</td><td>'.$strTime.'</td></tr>'; - $this->strResult .= '<tr><td>'.__('Time/visit', 'wp-piwik').':'.'</td><td>'.$strAvgTime.'</td></tr>'; - $this->strResult .= '<tr><td>'.__('Bounce count', 'wp-piwik').':'.'</td><td>'.$aryData['bounce_count'].' ('.$aryData['bounce_rate'].')</td></tr>'; - } -} else $this->strResult .= '<tr><td>'.__('No data available', 'wp-piwik').'</td></tr>'; - -$this->strResult .= '</table>'; \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/shortcodes/post.php b/wp-content/plugins/wp-piwik/shortcodes/post.php deleted file mode 100644 index d9dc4981b9a21b1a4ddca0c242fd59ec235c44f3..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/shortcodes/post.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php -/********************************* - WP-Piwik::Short:Post -**********************************/ -if (!class_exists('WP_Piwik_MetaBox_PerPost_Stats')) - $this->includeFile('classes/WP_Piwik_MetaBox_PerPost_Stats'); - -$perPostClass = new WP_Piwik_MetaBox_PerPost_Stats($this->subClassConfig()); -$this->strResult = $perPostClass->getValue($this->aryAttributes['range'], $this->aryAttributes['key']); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/uninstall.php b/wp-content/plugins/wp-piwik/uninstall.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/update/.htaccess b/wp-content/plugins/wp-piwik/update/.htaccess old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/update/2015051101.php b/wp-content/plugins/wp-piwik/update/2015051101.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/update/2017080701.php b/wp-content/plugins/wp-piwik/update/2017080701.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/update/80403.php b/wp-content/plugins/wp-piwik/update/80403.php deleted file mode 100644 index 7af7d2b5feba627525c722d89610c206ffd34bc6..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/80403.php +++ /dev/null @@ -1,49 +0,0 @@ -<?php -// Capability read stats: Translate level to role -$aryTranslate = array( - 'level_10' => array('administrator' => true), - 'level_7' => array('editor' => true, 'administrator' => true), - 'level_2' => array('author' => true, 'editor' => true, 'administrator' => true), - 'level_1' => array('contributor' => true, 'author' => true, 'editor' => true, 'administrator' => true), - 'level_0' => array('subscriber' => true, 'contributor' => true, 'author' => true, 'editor' => true, 'administrator' => true) -); -$strDisplayToLevel = get_option('wp-piwik_displayto','level_10'); -if (!is_array($strDisplayToLevel) && isset($aryTranslate[$strDisplayToLevel])) $aryDisplayToCap = $aryTranslate[$strDisplayToLevel]; -else $aryDisplayToCap = array('administrator' => true); -// Build settings arrays -$aryDashboardWidgetRange = array(0 => false, 1 => 'yesterday', 2 => 'today', 3 => 'last30'); -if (self::$bolWPMU) $aryGlobal = array( - 'revision' => get_site_option('wpmu-piwik_revision', 0), - 'add_tracking_code' => true, - 'last_settings_update' => get_site_option('wpmu-piwik_settingsupdate', time()), - 'piwik_token' => get_site_option('wpmu-piwik_token', ''), - 'piwik_url' => get_site_option('wpmu-piwik_url', ''), - 'dashboard_widget' => false, - 'capability_stealth' => get_site_option('wpmu-piwik_filter', array()), - 'capability_read_stats' => $aryDisplayToCap, - 'piwik_shortcut' => false, -); -else $aryGlobal = array( - 'revision' => get_option('wp-piwik_revision',0), - 'add_tracking_code' => get_option('wp-piwik_addjs'), - 'last_settings_update' => get_option('wp-piwik_settingsupdate', time()), - 'piwik_token' => get_option('wp-piwik_token', ''), - 'piwik_url' => get_option('wp-piwik_url', ''), - 'dashboard_widget' => $aryDashboardWidgetRange[get_option('wp-piwik_dbwidget', 0)], - 'capability_stealth' => get_option('wp-piwik_filter', array()), - 'capability_read_stats' => $aryDisplayToCap, - 'piwik_shortcut' => get_option('wp-piwik_piwiklink',false), -); -$this->installSite(false); -// Remove deprecated option values -$aryRemoveOptions = array( - 'wp-piwik_disable_gapi','wp-piwik_displayto', - 'wp-piwik_revision','wp-piwik_addjs','wp-piwik_settingsupdate','wp-piwik_token', - 'wp-piwik_url','wp-piwik_dbwidget','wp-piwik_filter','wp-piwik_piwiklink' -); -foreach ($aryRemoveOptions as $strRemoveOption) { - if (self::$bolWPMU) delete_site_option($strRemoveOption); - else delete_option($strRemoveOption); -} -foreach ($aryGlobal as $key => $value) - self::$settings->setGlobalOption($key, $value); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/update/80502.php b/wp-content/plugins/wp-piwik/update/80502.php deleted file mode 100644 index 0624396e8e0576aa0d351de365c5e0414a83e921..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/80502.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php -self::$settings->setGlobalOption('default_date', 'yesterday'); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/update/80602.php b/wp-content/plugins/wp-piwik/update/80602.php deleted file mode 100644 index d0015e439a25effb01974218d1c37c3b258118e1..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/80602.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php -self::$settings->setGlobalOption('dashboard_chart', false); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/update/80800.php b/wp-content/plugins/wp-piwik/update/80800.php deleted file mode 100644 index 8b781201a86a9e6ae40c4d2cf190286c6dc5ccff..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/80800.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php -self::$settings->setGlobalOption('piwik_url', self::checkURL(self::$settings->getGlobalOption('piwik_url'))); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/update/90001.php b/wp-content/plugins/wp-piwik/update/90001.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/update/90206.php b/wp-content/plugins/wp-piwik/update/90206.php deleted file mode 100644 index efd3f59fb0c7f87d92e2a9850f6b5cd997e03f7b..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/90206.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php -self::$settings->setGlobalOption('disable_timelimit', false); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/update/90405.php b/wp-content/plugins/wp-piwik/update/90405.php deleted file mode 100644 index df11ad8146ead245e04e506021540383a7b51d2b..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/90405.php +++ /dev/null @@ -1,5 +0,0 @@ -<?php -self::$settings->setGlobalOption('piwik_mode', 'http'); -self::$settings->setGlobalOption('piwik_path', ''); -self::$settings->setGlobalOption('toolbar', false); -self::$settings->setGlobalOption('disable_cookies', false); diff --git a/wp-content/plugins/wp-piwik/update/90601.php b/wp-content/plugins/wp-piwik/update/90601.php deleted file mode 100644 index 1e74ba5e2202b37c67035bec3c2faab872f50a0e..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/90601.php +++ /dev/null @@ -1,3 +0,0 @@ -<?php -self::$settings->setGlobalOption('piwik_useragent', 'php'); -self::$settings->setGlobalOption('piwik_useragent_string', 'WP-Piwik'); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/update/90700.php b/wp-content/plugins/wp-piwik/update/90700.php deleted file mode 100644 index 761cc35b11a62e178a1bbe89a9de9f73f7074179..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/90700.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php -self::$settings->setGlobalOption('shortcodes', false); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/update/90801.php b/wp-content/plugins/wp-piwik/update/90801.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/update/90821.php b/wp-content/plugins/wp-piwik/update/90821.php deleted file mode 100644 index 703d9c24ad283588d12a92680f19a0ce7caa7564..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/90821.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php -self::$settings->setGlobalOption('track_cdnurl', ''); diff --git a/wp-content/plugins/wp-piwik/update/90910.php b/wp-content/plugins/wp-piwik/update/90910.php deleted file mode 100644 index a9d4ade2cb4a2384f0ea61bfe0269ca55e5e103f..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/90910.php +++ /dev/null @@ -1,3 +0,0 @@ -<?php -self::$settings->setGlobalOption('track_cdnurlssl', self::$settings->getGlobalOption('track_cdnurl')); -self::$settings->setGlobalOption('track_noscript', false); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/update/90920.php b/wp-content/plugins/wp-piwik/update/90920.php deleted file mode 100644 index ff5eaedc2616c9bba8aa76f0557499384043f157..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/90920.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php -self::$settings->setGlobalOption('plugin_display_name', 'WP-Piwik'); diff --git a/wp-content/plugins/wp-piwik/update/90940.php b/wp-content/plugins/wp-piwik/update/90940.php deleted file mode 100644 index 7d32cd42f80e3390312be7d91d5424a7ed4ba069..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/90940.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php -self::$settings->setGlobalOption('track_nojavascript', false); diff --git a/wp-content/plugins/wp-piwik/update/90961.php b/wp-content/plugins/wp-piwik/update/90961.php deleted file mode 100644 index cfc616675f3eb693bbe38717869b5ea5f5eea158..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/90961.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php -self::$settings->setGlobalOption('cache', true); diff --git a/wp-content/plugins/wp-piwik/update/90971.php b/wp-content/plugins/wp-piwik/update/90971.php deleted file mode 100644 index d79b5251f42ef442489b387472b4931861075c2a..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/90971.php +++ /dev/null @@ -1,3 +0,0 @@ -<?php -self::$settings->setGlobalOption('track_admin', false); -self::$settings->setGlobalOption('perpost_stats', false); diff --git a/wp-content/plugins/wp-piwik/update/90980.php b/wp-content/plugins/wp-piwik/update/90980.php deleted file mode 100644 index 6bb0c186ddba5a85f845fcaea3446a22566df353..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/90980.php +++ /dev/null @@ -1,6 +0,0 @@ -<?php -self::$settings->setGlobalOption('track_feed', false); -self::$settings->setGlobalOption('track_feed_goal', false); -self::$settings->setGlobalOption('track_feed_revenue', false); -self::$settings->setGlobalOption('track_feed_campaign', 'feed'); -self::$settings->setGlobalOption('track_feed_addcampaign', false); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/update/91006.php b/wp-content/plugins/wp-piwik/update/91006.php old mode 100644 new mode 100755 diff --git a/wp-content/plugins/wp-piwik/update/91007.php b/wp-content/plugins/wp-piwik/update/91007.php deleted file mode 100644 index 2cbf8a67f056829815d48b9dba518b90eb61e626..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/91007.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php - self::$settings->setGlobalOption('track_codeposition', 'footer'); \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/update/index.php b/wp-content/plugins/wp-piwik/update/index.php deleted file mode 100644 index 9b3347dc327ee0179b3df406f1d910c861c05d3a..0000000000000000000000000000000000000000 --- a/wp-content/plugins/wp-piwik/update/index.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php - // Nothing to see... \ No newline at end of file diff --git a/wp-content/plugins/wp-piwik/wpml-config.xml b/wp-content/plugins/wp-piwik/wpml-config.xml old mode 100644 new mode 100755