Visitors Traffic Real Time Statistics - Version 4.4

Version Description

  1. Escape variables and and options
Download this release

Release Info

Developer osamaesh
Plugin Icon 128x128 Visitors Traffic Real Time Statistics
Version 4.4
Comparing to
See all releases

Code changes from version 4.3 to 4.4

Visitors-Traffic-Real-Time-Statistics.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Visitor Traffic Real Time Statistics
4
  Description: Hits counter that shows analytical numbers of your WordPress site visitors and hits.
5
  Author: wp-buy
6
  Author URI: https://www.wp-buy.com/
7
- Version: 4.3
8
  Text Domain: visitors-traffic-real-time-statistics
9
  Domain Path: /languages
10
  */
@@ -51,22 +51,18 @@ function ahcfree_after_plugin_row($plugin_file, $plugin_data, $status) {
51
  if(get_option('ahcfree_upgrade_message') !='yes')
52
  {
53
  $class_name = $plugin_data['slug'];
54
-
55
- $upgradeMsg = '<tr id="' .$class_name. '-plugin-update-tr" class="plugin-update-tr active">';
56
- $upgradeMsg .= '<td colspan="4" class="plugin-update">';
57
- $upgradeMsg .= '<div id="' .$class_name. '-upgradeMsg" class="update-message" style="background:#FFF8E5; padding-left:10px; border-left:#FFB900 solid 4px" >';
58
 
59
- $upgradeMsg .= 'You are running visitor traffic free. To get more features (<b style="color:red">Online users, GEO locations and visitors on the map</b>), you can <a href="https://www.wp-buy.com/product/visitors-traffic-real-time-statistics-pro/#plugins-page" target="_blank"><strong>upgrade now</strong></a> or ';
60
 
61
- $upgradeMsg .= '<span id="HideMe" style="cursor:pointer" ><a href="javascript:void(0)"><strong>dismiss</strong></a> this message</span>';
62
- $upgradeMsg .= '</div>';
63
- $upgradeMsg .= '</td>';
64
- $upgradeMsg .= '</tr>';
65
-
66
-
67
- echo $upgradeMsg;
68
- ?>
69
-
70
  <script type="text/javascript">
71
  jQuery(document).ready(function() {
72
  var row = jQuery('#<?php echo esc_js($class_name);?>-plugin-update-tr').closest('tr').prev();
4
  Description: Hits counter that shows analytical numbers of your WordPress site visitors and hits.
5
  Author: wp-buy
6
  Author URI: https://www.wp-buy.com/
7
+ Version: 4.4
8
  Text Domain: visitors-traffic-real-time-statistics
9
  Domain Path: /languages
10
  */
51
  if(get_option('ahcfree_upgrade_message') !='yes')
52
  {
53
  $class_name = $plugin_data['slug'];
54
+ ?>
55
+ <tr id="<?php echo $class_name?>-plugin-update-tr" class="plugin-update-tr active">
56
+ <td colspan="4" class="plugin-update">
57
+ <div id="<?php echo $class_name;?>-upgradeMsg" class="update-message" style="background:#FFF8E5; padding-left:10px; border-left:#FFB900 solid 4px" >
58
 
59
+ You are running visitor traffic free. To get more features (<b style="color:red">Online users, GEO locations and visitors on the map</b>), you can <a href="https://www.wp-buy.com/product/visitors-traffic-real-time-statistics-pro/#plugins-page" target="_blank"><strong>upgrade now</strong></a> or
60
 
61
+ <span id="HideMe" style="cursor:pointer" ><a href="javascript:void(0)"><strong>dismiss</strong></a> this message</span>
62
+ </div>
63
+ </td>
64
+ </tr>
65
+
 
 
 
 
66
  <script type="text/javascript">
67
  jQuery(document).ready(function() {
68
  var row = jQuery('#<?php echo esc_js($class_name);?>-plugin-update-tr').closest('tr').prev();
functions.php CHANGED
@@ -464,7 +464,22 @@ function ahcfree_create_admin_menu_link() {
464
  add_menu_page('Visitor Traffic Real Time Statistics Free', 'Visitor Traffic', 'read', 'ahc_hits_counter_menu_free', 'ahcfree_create_plugin_overview_page', plugins_url('/images/vtrts.png', AHCFREE_PLUGIN_MAIN_FILE));
465
  add_submenu_page('ahc_hits_counter_menu_free', 'Visitor Traffic Real Time Statistics Settings', 'Settings', 'read', 'ahc_hits_counter_settings', 'ahcfree_create_plugin_settings_page');
466
  add_submenu_page('ahc_hits_counter_menu_free', 'Visitor Traffic Real Time Statistics Support', 'Help', 'read', 'ahc_hits_counter_help', 'ahcfree_create_plugin_help_page');
467
- add_submenu_page('ahc_hits_counter_menu_free', 'Visitor Traffic Real Time Statistics Support', 'More Products', 'read', 'ahc_hits_counter_about', 'ahcfree_create_plugin_about_page');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
468
  $ahcfree_custom_timezone = get_option( 'ahcfree_custom_timezone', false );
469
  if( !$ahcfree_custom_timezone ){
470
 
464
  add_menu_page('Visitor Traffic Real Time Statistics Free', 'Visitor Traffic', 'read', 'ahc_hits_counter_menu_free', 'ahcfree_create_plugin_overview_page', plugins_url('/images/vtrts.png', AHCFREE_PLUGIN_MAIN_FILE));
465
  add_submenu_page('ahc_hits_counter_menu_free', 'Visitor Traffic Real Time Statistics Settings', 'Settings', 'read', 'ahc_hits_counter_settings', 'ahcfree_create_plugin_settings_page');
466
  add_submenu_page('ahc_hits_counter_menu_free', 'Visitor Traffic Real Time Statistics Support', 'Help', 'read', 'ahc_hits_counter_help', 'ahcfree_create_plugin_help_page');
467
+
468
+
469
+ add_submenu_page(
470
+ 'ahc_hits_counter_menu_free',
471
+ esc_html__( 'More Plugins', 'MorePlugins' ),
472
+ '<span style="color:#f18500">' . esc_html__( 'More Plugins', 'MorePlugins' ) . '</span>',
473
+ 'manage_options',
474
+ 'MorePlugins',
475
+ function() {
476
+ header('Location: '.admin_url('plugin-install.php?s=wp-buy&tab=search&type=author'));
477
+
478
+ },
479
+ 50
480
+ );
481
+
482
+
483
  $ahcfree_custom_timezone = get_option( 'ahcfree_custom_timezone', false );
484
  if( !$ahcfree_custom_timezone ){
485
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wp-buy, osamaesh
3
  Tags: visitor, traffic, statistics, analytics, stats, online, Visit, WordPress analytics ,visitors online, count visitor, google analytics, analytics, GeoIP, Geo locations, analytics dashboard, visits, chart, browser, blog, today, yesterday, week, month, wp Statistics, year, post, page, sidebar, summary, feedburner, hits, pagerank, google, histats, alexa, live visit, counter, diagram, graph
4
  Requires at least: 3.0.1
5
  Tested up to: 5.8.2
6
- Stable tag: 4.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -150,6 +150,11 @@ This plugin supports IPv6; however, PHP must be compiled with IPv6 support enabl
150
 
151
  == Changelog ==
152
 
 
 
 
 
 
153
  = 4.3 =
154
  1. Security bug fixes
155
 
3
  Tags: visitor, traffic, statistics, analytics, stats, online, Visit, WordPress analytics ,visitors online, count visitor, google analytics, analytics, GeoIP, Geo locations, analytics dashboard, visits, chart, browser, blog, today, yesterday, week, month, wp Statistics, year, post, page, sidebar, summary, feedburner, hits, pagerank, google, histats, alexa, live visit, counter, diagram, graph
4
  Requires at least: 3.0.1
5
  Tested up to: 5.8.2
6
+ Stable tag: 4.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
150
 
151
  == Changelog ==
152
 
153
+ = 4.4 =
154
+ 1. Escape variables and and options
155
+
156
+
157
+
158
  = 4.3 =
159
  1. Security bug fixes
160