Ginger – EU Cookie Law - Version 4.1.6

Version Description

  • option to enable / disable logger
Download this release

Release Info

Developer manafactory
Plugin Icon 128x128 Ginger – EU Cookie Law
Version 4.1.6
Comparing to
See all releases

Code changes from version 4.1.5 to 4.1.6

addon/logger/ginger.logger.php CHANGED
@@ -173,6 +173,10 @@ function ginger_add_log_variable(){
173
 
174
  function ginger_do_log($url = "", $status = "Y"){
175
  global $wpdb;
 
 
 
 
176
  if($url == "")
177
  $url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
178
  if(filter_var($url, FILTER_VALIDATE_URL) === FALSE){
173
 
174
  function ginger_do_log($url = "", $status = "Y"){
175
  global $wpdb;
176
+
177
+ $disable_logger = get_option('ginger_policy_disable_logger', false);
178
+ if($disable_logger) return;
179
+
180
  if($url == "")
181
  $url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
182
  if(filter_var($url, FILTER_VALIDATE_URL) === FALSE){
admin/ginger.admin.php CHANGED
@@ -66,6 +66,7 @@ if ($key=='ginger_policy'){
66
  update_option($key, $privacy_page_id);
67
  endif;
68
  update_option($key.'_disable_ginger', $_POST["ginger_privacy_click_scroll"]);
 
69
 
70
  }else{
71
  update_option($key, $params);}
@@ -78,6 +79,7 @@ if ($key=='ginger_policy'):
78
  $options = get_option($key);
79
  // recupero la option per il disable click out e scroll in privacy policy page
80
  $options2 = get_option($key.'_disable_ginger');
 
81
 
82
  endif;
83
  ?>
66
  update_option($key, $privacy_page_id);
67
  endif;
68
  update_option($key.'_disable_ginger', $_POST["ginger_privacy_click_scroll"]);
69
+ update_option($key.'_disable_logger', $_POST["ginger_disable_logger"] == '1');
70
 
71
  }else{
72
  update_option($key, $params);}
79
  $options = get_option($key);
80
  // recupero la option per il disable click out e scroll in privacy policy page
81
  $options2 = get_option($key.'_disable_ginger');
82
+ $options_disable_logger = get_option($key.'_disable_logger');
83
 
84
  endif;
85
  ?>
admin/partial/policy.php CHANGED
@@ -9,7 +9,7 @@
9
  <tbody>
10
 
11
  <tr>
12
- <th scope="row" style="padding-left:20px;">
13
  <label>
14
  <input name="choice" type="radio" value="page" onclick="javascript:select_privacy_page();" <?php if ($options != "") echo ' checked="checked" '; ?>> <?php _e("Select your privacy policy page", "ginger"); ?>
15
  </label>
@@ -62,7 +62,7 @@
62
  </td>
63
  </tr>
64
  <tr>
65
- <th scope="row" style="padding-left:20px;">
66
  <label>
67
  <input name="choice" type="radio" value="new_page" onclick="javascript:new_privacy_page();"><?php _e("or create your privacy policy page", "ginger"); ?>
68
  </label>
@@ -105,9 +105,7 @@
105
  </tr>
106
  <tr>
107
  <th scope="row" style="padding-left:20px;"><?php _e("Disable Click-out and Scroll to accept cookies in Privacy Policy page", "ginger"); ?></th>
108
- </tr>
109
- <tr>
110
- <td colspan="2" style="padding-left:20px;">
111
  <fieldset>
112
  <p>
113
  <label>
@@ -121,6 +119,26 @@
121
  </p>
122
  </fieldset>
123
  </td>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  </tr>
125
  </tbody>
126
  </table>
9
  <tbody>
10
 
11
  <tr>
12
+ <th scope="row" style="padding-left:20px;" colspan="2">
13
  <label>
14
  <input name="choice" type="radio" value="page" onclick="javascript:select_privacy_page();" <?php if ($options != "") echo ' checked="checked" '; ?>> <?php _e("Select your privacy policy page", "ginger"); ?>
15
  </label>
62
  </td>
63
  </tr>
64
  <tr>
65
+ <th scope="row" style="padding-left:20px;" colspan="2">
66
  <label>
67
  <input name="choice" type="radio" value="new_page" onclick="javascript:new_privacy_page();"><?php _e("or create your privacy policy page", "ginger"); ?>
68
  </label>
105
  </tr>
106
  <tr>
107
  <th scope="row" style="padding-left:20px;"><?php _e("Disable Click-out and Scroll to accept cookies in Privacy Policy page", "ginger"); ?></th>
108
+ <td>
 
 
109
  <fieldset>
110
  <p>
111
  <label>
119
  </p>
120
  </fieldset>
121
  </td>
122
+ </tr>
123
+ <tr>
124
+ <th scope="row" style="padding-left:20px;"><?php _e("Disable logging of activities and IPs", "ginger"); ?></th>
125
+ <td>
126
+ <fieldset>
127
+ <legend class="screen-reader-text">
128
+ <span><?php _e("Disable logging of activities and IPs", "ginger"); ?></span>
129
+ </legend>
130
+ <p>
131
+ <label>
132
+ <input name="ginger_disable_logger" type="radio" value="1" class="tog" <?php if($options_disable_logger == "1") echo ' checked="checked" '; ?>><?php _e("Yes", "ginger"); ?>
133
+ </label>
134
+ </p>
135
+ <p>
136
+ <label>
137
+ <input name="ginger_disable_logger" type="radio" value="0" class="tog" <?php if($options_disable_logger == "0") echo ' checked="checked" '; ?>><?php _e("No", "ginger"); ?>
138
+ </label>
139
+ </p>
140
+ </fieldset>
141
+ </td>
142
  </tr>
143
  </tbody>
144
  </table>
front/gingerfront.core.php CHANGED
@@ -114,7 +114,7 @@ function __shutdown(){
114
 
115
  // We'll need to get the number of ob levels we're in, so that we can iterate over each, collecting
116
  // that buffer's output into the final output.
117
- $levels = count(ob_get_level());
118
 
119
  for ($i = 0; $i < $levels; $i++){
120
  $final .= ob_get_clean();
114
 
115
  // We'll need to get the number of ob levels we're in, so that we can iterate over each, collecting
116
  // that buffer's output into the final output.
117
+ $levels = ob_get_level();
118
 
119
  for ($i = 0; $i < $levels; $i++){
120
  $final .= ob_get_clean();
ginger-eu-cookie-law.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ginger - EU Cookie Law
4
  Plugin URI: http://www.ginger-cookielaw.com/
5
  Description: Make your website compliant with EU Cookie Policy! Now totally free and unlocked
6
- Version: 4.1.5
7
  Author: Manafactory
8
  Author URI: http://manafactory.it/
9
  License: GPLv2 or later
3
  Plugin Name: Ginger - EU Cookie Law
4
  Plugin URI: http://www.ginger-cookielaw.com/
5
  Description: Make your website compliant with EU Cookie Policy! Now totally free and unlocked
6
+ Version: 4.1.6
7
  Author: Manafactory
8
  Author URI: http://manafactory.it/
9
  License: GPLv2 or later
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: manafactory, webgrafia, matteobarale
3
  Donate link: http://www.ginger-cookielaw.com/
4
  Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia, wpml, polylang
5
  Requires at least: 3.0.1
6
- Tested up to: 4.7.3
7
- Stable tag: 4.1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -90,6 +90,9 @@ Yes, actually you we have 2 addons for multilanguages: wpml and polylang. Ask to
90
 
91
  == Changelog ==
92
 
 
 
 
93
  = 4.1.5 =
94
  * fix notice
95
 
3
  Donate link: http://www.ginger-cookielaw.com/
4
  Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia, wpml, polylang
5
  Requires at least: 3.0.1
6
+ Tested up to: 4.9.5
7
+ Stable tag: 4.1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
90
 
91
  == Changelog ==
92
 
93
+ = 4.1.6 =
94
+ * option to enable / disable logger
95
+
96
  = 4.1.5 =
97
  * fix notice
98
 
uninstall.php CHANGED
@@ -10,3 +10,4 @@ if ( ! current_user_can( 'activate_plugins' ) )
10
  delete_option('ginger_general');
11
  delete_option('ginger_banner');
12
  delete_option('ginger_policy');
 
10
  delete_option('ginger_general');
11
  delete_option('ginger_banner');
12
  delete_option('ginger_policy');
13
+ delete_option('ginger_policy_disable_logger');