Visitors Traffic Real Time Statistics - Version 3.17

Version Description

  1. Bug fixes in settings - part 2
Download this release

Release Info

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

Code changes from version 3.15 to 3.17

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: 3.15
8
  Text Domain: visitors-traffic-real-time-statistics
9
  Domain Path: /languages
10
  */
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: 3.17
8
  Text Domain: visitors-traffic-real-time-statistics
9
  Domain Path: /languages
10
  */
ahc_settings.php CHANGED
@@ -68,10 +68,20 @@ body{
68
  <?php
69
  //ahcfree_include_scripts();
70
  $msg = '';
71
- if (!empty($_POST['save'])) {
72
- if (ahcfree_savesettings()) {
73
- $msg =('<br /><b style="color:green; margin-left:30px; float:left">settings saved successfully</b><br /><b style=" margin-left:30px; float:left"><a href="admin.php?page=ahc_hits_counter_settings">back to settings</a> | <a href="admin.php?page=ahc_hits_counter_menu_free">back to dashboard</a></b>');
74
- }
 
 
 
 
 
 
 
 
 
 
75
  }
76
  $ahcfree_get_save_settings = ahcfree_get_save_settings();
77
  $hits_days = $ahcfree_get_save_settings[0]->set_hits_days;
@@ -92,7 +102,11 @@ $ahcproRobots = get_option('ahcproRobots');
92
  <h2 class="box-heading">Settings</h2><hr>
93
  <div class="panelcontent">
94
  <form method="post" enctype="multipart/form-data" name="myform">
95
-
 
 
 
 
96
  <div class="row">
97
  <div class="form-group col-md-6">
98
 
68
  <?php
69
  //ahcfree_include_scripts();
70
  $msg = '';
71
+ $save_btn = (isset($_POST['save'])) ? sanitize_text_field($_POST['save']) : '';
72
+
73
+
74
+ if(!empty($save_btn))
75
+ {
76
+ $verify = isset($_POST['ahc_settings_send']) ? wp_verify_nonce( sanitize_text_field($_POST['ahc_settings_send']), 'ahc_settings_action' ) : false;
77
+
78
+ if ($verify && current_user_can( 'manage_options' ))
79
+ {
80
+ if (ahcfree_savesettings())
81
+ {
82
+ $msg =('<br /><b style="color:green; margin-left:30px; float:left">settings saved successfully</b><br /><b style=" margin-left:30px; float:left"><a href="admin.php?page=ahc_hits_counter_settings">back to settings</a> | <a href="admin.php?page=ahc_hits_counter_menu_free">back to dashboard</a></b>');
83
+ }
84
+ }
85
  }
86
  $ahcfree_get_save_settings = ahcfree_get_save_settings();
87
  $hits_days = $ahcfree_get_save_settings[0]->set_hits_days;
102
  <h2 class="box-heading">Settings</h2><hr>
103
  <div class="panelcontent">
104
  <form method="post" enctype="multipart/form-data" name="myform">
105
+
106
+
107
+ <?php $nonce = wp_create_nonce( 'ahc_settings_action' ); ?>
108
+ <input type="hidden" name="ahc_settings_send" value="<?php echo $nonce ?>" />
109
+
110
  <div class="row">
111
  <div class="form-group col-md-6">
112
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  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
6
- Stable tag: 3.15
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -150,6 +150,15 @@ This plugin supports IPv6; however, PHP must be compiled with IPv6 support enabl
150
 
151
  == Changelog ==
152
 
 
 
 
 
 
 
 
 
 
153
  = 3.15 =
154
  1. Bug fixes in widget
155
 
2
  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: 3.17
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
150
 
151
  == Changelog ==
152
 
153
+ = 3.17 =
154
+ 1. Bug fixes in settings - part 2
155
+
156
+
157
+
158
+ = 3.16 =
159
+ 1. Bug fixes in settings
160
+
161
+
162
  = 3.15 =
163
  1. Bug fixes in widget
164