Changeset 3101173
- Timestamp:
- 06/11/2024 12:25:43 PM (22 months ago)
- Location:
- simple-webstats
- Files:
-
- 107 added
- 5 edited
-
tags/1.1.0 (added)
-
tags/1.1.0/css (added)
-
tags/1.1.0/css/dashboard.min.css (added)
-
tags/1.1.0/css/dashboard.scss (added)
-
tags/1.1.0/inc (added)
-
tags/1.1.0/inc/collector.php (added)
-
tags/1.1.0/inc/dashboard.php (added)
-
tags/1.1.0/inc/setup.php (added)
-
tags/1.1.0/index.php (added)
-
tags/1.1.0/js (added)
-
tags/1.1.0/js/collector.js (added)
-
tags/1.1.0/js/collector.min.js (added)
-
tags/1.1.0/js/dashboard.js (added)
-
tags/1.1.0/js/dashboard.min.js (added)
-
tags/1.1.0/js/inc (added)
-
tags/1.1.0/js/inc/countries.js (added)
-
tags/1.1.0/lib (added)
-
tags/1.1.0/lib/chartjs (added)
-
tags/1.1.0/lib/chartjs/chart.umd.min.js (added)
-
tags/1.1.0/lib/freakflags (added)
-
tags/1.1.0/lib/freakflags/flagSprite42.png (added)
-
tags/1.1.0/lib/freakflags/freakflags.css (added)
-
tags/1.1.0/readme.txt (added)
-
tags/1.1.0/simple-webstats.php (added)
-
tags/1.1.0/vendor-prefixed (added)
-
tags/1.1.0/vendor-prefixed/autoload-classmap.php (added)
-
tags/1.1.0/vendor-prefixed/autoload-files.php (added)
-
tags/1.1.0/vendor-prefixed/autoload.php (added)
-
tags/1.1.0/vendor-prefixed/matomo (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Cache (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Cache/CacheInterface.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Cache/DoctrineBridge.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Cache/LaravelCache.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Cache/PSR16Bridge.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Cache/PSR6Bridge.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Cache/StaticCache.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/ClientHints.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/DeviceDetector.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/LICENSE (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/AbstractBotParser.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/AbstractParser.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Bot.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/AbstractClientParser.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/Browser (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/Browser.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/Browser/Engine (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/Browser/Engine.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/Browser/Engine/Version.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/FeedReader.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/Hints (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/Hints/AppHints.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/Hints/BrowserHints.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/Library.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/MediaPlayer.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/MobileApp.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Client/PIM.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Device (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Device/AbstractDeviceParser.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Device/Camera.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Device/CarBrowser.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Device/Console.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Device/HbbTv.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Device/Mobile.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Device/Notebook.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Device/PortableMediaPlayer.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/Device/ShellTv.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/OperatingSystem.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Parser/VendorFragment.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/README.md (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Yaml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Yaml/ParserInterface.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Yaml/Pecl.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Yaml/Spyc.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/Yaml/Symfony.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/autoload.php (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/composer.json (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/phpcs.xml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/bots.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/client (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/client/browser_engine.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/client/browsers.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/client/feed_readers.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/client/hints (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/client/hints/apps.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/client/hints/browsers.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/client/libraries.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/client/mediaplayers.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/client/mobile_apps.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/client/pim.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/device (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/device/cameras.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/device/car_browsers.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/device/consoles.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/device/mobiles.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/device/notebooks.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/device/portable_media_player.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/device/shell_tv.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/device/televisions.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/oss.yml (added)
-
tags/1.1.0/vendor-prefixed/matomo/device-detector/regexes/vendorfragments.yml (added)
-
tags/1.1.0/vendor-prefixed/mustangostang (added)
-
tags/1.1.0/vendor-prefixed/mustangostang/spyc (added)
-
tags/1.1.0/vendor-prefixed/mustangostang/spyc/Spyc.php (added)
-
trunk/inc/collector.php (modified) (1 diff)
-
trunk/js/collector.js (modified) (2 diffs)
-
trunk/js/collector.min.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/simple-webstats.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-webstats/trunk/inc/collector.php
r3062605 r3101173 25 25 'ajaxURL' => sanitize_url(admin_url('admin-ajax.php')), 26 26 'viewNonce' => sanitize_text_field(wp_create_nonce('swstats_view_nonce')), 27 'responseCode' => intval(http_response_code()) 27 28 )); 28 29 wp_add_inline_script('swstats_collector', $inlineConfig, 'before'); -
simple-webstats/trunk/js/collector.js
r3062605 r3101173 1 1 (() => { 2 2 3 let pageViewID = false;4 5 3 function recordView() { 6 if(!swstatsConfig.viewNonce ) return false;4 if(!swstatsConfig.viewNonce || !swstatsConfig.responseCode) return false; 7 5 let data = { 8 6 action: 'swstats_post_view', … … 11 9 referrer: document.referrer 12 10 }; 13 sendData(data);11 if((swstatsConfig.responseCode >= 200) && (swstatsConfig.responseCode < 300)) sendData(data); 14 12 } 15 13 -
simple-webstats/trunk/js/collector.min.js
r3062605 r3101173 1 !function(){if(!swstatsConfig.viewNonce )return!1;!function(e,t){if(!swstatsConfig.ajaxURL)return!1;let o=[];Object.keys(e).forEach((t=>o.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]))));let n=o.join("&"),s=new XMLHttpRequest;s.open("POST",swstatsConfig.ajaxURL,!0),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onload=function(){if(this.status>=200&&this.status<400){let e=!1;this.response&&(e=JSON.parse(this.response)),e.error&&console.log("Simple Webstats Error: "+e.error),t&&e.data&&t(e.data)}},s.onerror=function(){console.log("Simple Webstats: Connection Error")},s.send(n)}({action:"swstats_post_view",nonce:swstatsConfig.viewNonce,location:window.location.pathname,referrer:document.referrer})}();1 !function(){if(!swstatsConfig.viewNonce||!swstatsConfig.responseCode)return!1;let e={action:"swstats_post_view",nonce:swstatsConfig.viewNonce,location:window.location.pathname,referrer:document.referrer};swstatsConfig.responseCode>=200&&swstatsConfig.responseCode<300&&function(e,o){if(!swstatsConfig.ajaxURL)return!1;let t=[];Object.keys(e).forEach((o=>t.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]))));let s=t.join("&"),n=new XMLHttpRequest;n.open("POST",swstatsConfig.ajaxURL,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){if(this.status>=200&&this.status<400){let e=!1;this.response&&(e=JSON.parse(this.response)),e.error&&console.log("Simple Webstats Error: "+e.error),o&&e.data&&o(e.data)}},n.onerror=function(){console.log("Simple Webstats: Connection Error")},n.send(s)}(e)}(); -
simple-webstats/trunk/readme.txt
r3062608 r3101173 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.3 7 Stable tag: 1. 0.07 Stable tag: 1.1.0 8 8 License: GPLv2 or later 9 9 … … 50 50 == Changelog == 51 51 52 = 1.1.0 = 53 54 * Omitted logging unsuccessful requests (e.g. 404s). 55 52 56 = 1.0.0 = 53 57 -
simple-webstats/trunk/simple-webstats.php
r3062605 r3101173 4 4 * Plugin Name: Simple Webstats 5 5 * Description: Privacy-focused cookie-free web analytics for WordPress. 6 * Version: 1. 0.06 * Version: 1.1.0 7 7 * Requires at least: 4.6 8 8 * Requires PHP: 7.3 … … 20 20 21 21 // config 22 define('SWSTATS_VERSION', '1. 0.0');22 define('SWSTATS_VERSION', '1.1.0'); 23 23 define('SWSTATS_PATH', plugin_dir_path(__FILE__)); 24 24 define('SWSTATS_URL', plugin_dir_url(__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.