Changeset 3345313
- Timestamp:
- 08/15/2025 10:57:53 PM (8 months ago)
- Location:
- wp-stats-manager
- Files:
-
- 94 added
- 3 edited
-
tags/8.3 (added)
-
tags/8.3/css (added)
-
tags/8.3/css/custom_admin.css (added)
-
tags/8.3/css/dashboard_widget.css (added)
-
tags/8.3/css/flags.min.css (added)
-
tags/8.3/css/jquery-ui.css (added)
-
tags/8.3/css/jquery.jqplot.css (added)
-
tags/8.3/css/jquery.modal.min.css (added)
-
tags/8.3/css/modal.css (added)
-
tags/8.3/css/slimselect.min.css (added)
-
tags/8.3/css/style-review.css (added)
-
tags/8.3/css/style.css (added)
-
tags/8.3/error_activation.txt (added)
-
tags/8.3/images (added)
-
tags/8.3/images/ICO_1px.gif (added)
-
tags/8.3/images/arrow_rotate_anticlockwise.png (added)
-
tags/8.3/images/calendar.png (added)
-
tags/8.3/images/chart_line.png (added)
-
tags/8.3/images/chart_line_add.png (added)
-
tags/8.3/images/distance from left.txt (added)
-
tags/8.3/images/features.gif (added)
-
tags/8.3/images/flags.png (added)
-
tags/8.3/images/icon-128x128.gif (added)
-
tags/8.3/images/icons.png (added)
-
tags/8.3/images/mag.png (added)
-
tags/8.3/images/minichart-addon.png (added)
-
tags/8.3/images/network_wireless.png (added)
-
tags/8.3/images/online-blue.gif (added)
-
tags/8.3/images/online-red.gif (added)
-
tags/8.3/images/page_white_copy.png (added)
-
tags/8.3/images/plogo.png (added)
-
tags/8.3/images/plogopro.png (added)
-
tags/8.3/images/poststats-addon.png (added)
-
tags/8.3/images/prohibition_button.png (added)
-
tags/8.3/images/search-engine.png (added)
-
tags/8.3/images/search-engines.png (added)
-
tags/8.3/images/stats_plugin.png (added)
-
tags/8.3/images/traffic.png (added)
-
tags/8.3/images/traffics.png (added)
-
tags/8.3/images/ui-bg_flat_0_888888_40x100.png (added)
-
tags/8.3/images/ui-bg_flat_75_ffffff_40x100.png (added)
-
tags/8.3/images/ui-bg_glass_55_fbf9ee_1x400.png (added)
-
tags/8.3/images/ui-bg_glass_65_ffffff_1x400.png (added)
-
tags/8.3/images/ui-bg_glass_75_dadada_1x400.png (added)
-
tags/8.3/images/ui-bg_glass_75_e6e6e6_1x400.png (added)
-
tags/8.3/images/ui-bg_highlight-soft_75_cccccc_1x100.png (added)
-
tags/8.3/images/ui-icons_222222_256x240.png (added)
-
tags/8.3/images/ui-icons_454545_256x240.png (added)
-
tags/8.3/images/upgrade-button-orange.png (added)
-
tags/8.3/includes (added)
-
tags/8.3/includes/wsm_admin_interface.php (added)
-
tags/8.3/includes/wsm_cron.php (added)
-
tags/8.3/includes/wsm_db.php (added)
-
tags/8.3/includes/wsm_functions.php (added)
-
tags/8.3/includes/wsm_init.php (added)
-
tags/8.3/includes/wsm_modal.php (added)
-
tags/8.3/includes/wsm_requests.php (added)
-
tags/8.3/includes/wsm_shortcodeTable.php (added)
-
tags/8.3/includes/wsm_statistics.php (added)
-
tags/8.3/installation.txt (added)
-
tags/8.3/js (added)
-
tags/8.3/js/custom_admin.js (added)
-
tags/8.3/js/custom_admin.js.bak (added)
-
tags/8.3/js/excanvas.js (added)
-
tags/8.3/js/jqplot.barRenderer.js (added)
-
tags/8.3/js/jqplot.canvasAxisLabelRenderer.js (added)
-
tags/8.3/js/jqplot.canvasAxisTickRenderer.js (added)
-
tags/8.3/js/jqplot.canvasTextRenderer.js (added)
-
tags/8.3/js/jqplot.categoryAxisRenderer.js (added)
-
tags/8.3/js/jqplot.cursor.js (added)
-
tags/8.3/js/jqplot.dateAxisRenderer.js (added)
-
tags/8.3/js/jqplot.enhancedLegendRenderer.js (added)
-
tags/8.3/js/jqplot.enhancedPieLegendRenderer.js (added)
-
tags/8.3/js/jqplot.highlighter.js (added)
-
tags/8.3/js/jqplot.logAxisRenderer.js (added)
-
tags/8.3/js/jqplot.mobile.js (added)
-
tags/8.3/js/jqplot.pieRendererjs.js (added)
-
tags/8.3/js/jquery.jqplot.js (added)
-
tags/8.3/js/jquery.modal.min.js (added)
-
tags/8.3/js/json3.js (added)
-
tags/8.3/js/slimselect.min.js (added)
-
tags/8.3/js/wsm_new.js (added)
-
tags/8.3/languages (added)
-
tags/8.3/languages/wp-stats-manager-de_DE_formal.mo (added)
-
tags/8.3/languages/wp-stats-manager-de_DE_formal.po (added)
-
tags/8.3/languages/wp-stats-manager-fr_FR.mo (added)
-
tags/8.3/languages/wp-stats-manager-fr_FR.po (added)
-
tags/8.3/languages/wp-stats-manager-ru_RU.mo (added)
-
tags/8.3/languages/wp-stats-manager-ru_RU.po (added)
-
tags/8.3/languages/wp-stats-manager.pot (added)
-
tags/8.3/log.txt (added)
-
tags/8.3/notifications.php (added)
-
tags/8.3/readme.txt (added)
-
tags/8.3/wp-stats-manager.php (added)
-
trunk/includes/wsm_statistics.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-stats-manager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-stats-manager/trunk/includes/wsm_statistics.php
r3319247 r3345313 1088 1088 $objLocation = wsmFnGetLocationInfo($ipAddress); 1089 1089 $googleMapAPI = get_option(WSM_PREFIX . 'GoogleMapAPI'); 1090 1091 // Sanitize shortcode attributes to prevent XSS in JS context. 1092 $zoom = isset($atts['zoom']) ? (int) $atts['zoom'] : 1; 1093 if ($zoom < 0) { $zoom = 0; } 1094 if ($zoom > 21) { $zoom = 21; } 1095 1096 $height = isset($atts['height']) ? $atts['height'] : '300px'; 1097 if (!preg_match('/^\d+(px|%)$/', $height)) { $height = '300px'; } 1098 1099 $safe_id = sanitize_key($atts['id']); 1100 1101 1090 1102 if (is_null($googleMapAPI) || $googleMapAPI == '') { 1091 1103 echo '<br><br> <i>' . __('Please enter map API key (check the settings page for more details)', 'wp-stats-manager') . '</i><br><br>'; … … 1105 1117 return json_encode($arrJSMarkers); 1106 1118 } 1107 $html = '<style>#' . WSM_PREFIX . '_' . sanitize_key($atts['id']) . '{height:' . $atts['height'] . ';}</style><div id="' . WSM_PREFIX . '_' . $atts['id']. '" class="wsmMapContainer" ></div>';1119 $html = '<style>#' . WSM_PREFIX . '_' . esc_attr($safe_id) . '{height:' . esc_attr($height) . ';}</style><div id="' . WSM_PREFIX . '_' . esc_attr($safe_id) . '" class="wsmMapContainer" ></div>'; 1108 1120 $wsmAdminJavaScript .= "arrLiveStats.push('" . WSM_PREFIX . '_' . $atts['id'] . "'); var " . WSM_PREFIX . "_locations=[]; var " . WSM_PREFIX . "_lDetails=[];"; 1109 1121 if (is_array($arrJSMarkers) && count($arrJSMarkers) > 0) { … … 1134 1146 '; 1135 1147 $wsmAdminJavaScript .= ' 1136 var ' . WSM_PREFIX . 'ZoomLevel= ' . $ atts['zoom'] . ';1148 var ' . WSM_PREFIX . 'ZoomLevel= ' . $zoom . '; 1137 1149 var ' . WSM_PREFIX . 'centerObj= {lat: parseFloat(' . $objLocation->geoplugin_latitude . '), lng: parseFloat(' . $objLocation->geoplugin_longitude . ')}; 1138 1150 window.wsmInitMap=function() { 1139 1151 var infoWindow = new google.maps.InfoWindow; 1140 var map_' . WSM_PREFIX . '_' . $ atts['id']. ' = new google.maps.Map(document.getElementById("' . WSM_PREFIX . '_' . $atts['id'] . '"), {1152 var map_' . WSM_PREFIX . '_' . $safe_id . ' = new google.maps.Map(document.getElementById("' . WSM_PREFIX . '_' . $atts['id'] . '"), { 1141 1153 center: ' . WSM_PREFIX . 'centerObj , 1142 1154 zoom: ' . WSM_PREFIX . 'ZoomLevel, … … 1147 1159 scaleControl: false 1148 1160 }); 1149 google.maps.event.addListener(map_' . WSM_PREFIX . '_' . $ atts['id']. ', \'zoom_changed\',function() {1150 ' . WSM_PREFIX . 'ZoomLevel=map_' . WSM_PREFIX . '_' . $ atts['id']. '.getZoom();1161 google.maps.event.addListener(map_' . WSM_PREFIX . '_' . $safe_id . ', \'zoom_changed\',function() { 1162 ' . WSM_PREFIX . 'ZoomLevel=map_' . WSM_PREFIX . '_' . $safe_id . '.getZoom(); 1151 1163 }); 1152 google.maps.event.addListener(map_' . WSM_PREFIX . '_' . $ atts['id']. ', \'center_changed\',function() {1153 ' . WSM_PREFIX . 'centerObj=map_' . WSM_PREFIX . '_' . $ atts['id']. '.getCenter();1164 google.maps.event.addListener(map_' . WSM_PREFIX . '_' . $safe_id . ', \'center_changed\',function() { 1165 ' . WSM_PREFIX . 'centerObj=map_' . WSM_PREFIX . '_' . $safe_id . '.getCenter(); 1154 1166 }); 1155 google.maps.event.addListener(map_' . WSM_PREFIX . '_' . $ atts['id']. ', \'drag\',function() {1156 ' . WSM_PREFIX . 'centerObj=map_' . WSM_PREFIX . '_' . $ atts['id']. '.getCenter();1167 google.maps.event.addListener(map_' . WSM_PREFIX . '_' . $safe_id . ', \'drag\',function() { 1168 ' . WSM_PREFIX . 'centerObj=map_' . WSM_PREFIX . '_' . $safe_id . '.getCenter(); 1157 1169 }); 1158 1170 '; -
wp-stats-manager/trunk/readme.txt
r3338192 r3345313 3 3 Tags: analytics, google analytics, insights, stats, visitors 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 16 Stable tag: 8. 25 Tested up to: 6.8.2 6 Stable tag: 8.3 7 7 License: GPL3 8 8 … … 82 82 83 83 == Changelog == 84 85 = 8.3 86 Security: Fixed stored XSS in wsm_showMostActiveVisitorsGeo shortcode by sanitizing zoom, id, and height attributes before output. 84 87 85 88 = 8.2 = -
wp-stats-manager/trunk/wp-stats-manager.php
r3338192 r3345313 4 4 * Plugin URI: http://plugins-market.com/contact-us 5 5 * Description: This plugin will track the web analytics for each page and show various analytics report in admin panel as well as in front end. 6 * Version: 8. 26 * Version: 8.3 7 7 * Author: osamaesh 8 8 * Author URI: http://plugins-market.com/
Note: See TracChangeset
for help on using the changeset viewer.