Plugin Directory

Changeset 1867353


Ignore:
Timestamp:
05/02/2018 07:55:34 AM (8 years ago)
Author:
manafactory
Message:

update with github version: enable/disable logger + minor fix

Location:
ginger
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ginger/tags/4.1.6/addon/logger/ginger.logger.php

    r1735994 r1867353  
    174174function ginger_do_log($url = "", $status = "Y"){
    175175    global $wpdb;
     176
     177    $disable_logger = get_option('ginger_policy_disable_logger', false);
     178    if($disable_logger) return;
     179
    176180    if($url == "")
    177181        $url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
  • ginger/tags/4.1.6/admin/ginger.admin.php

    r1689549 r1867353  
    6767    endif;
    6868        update_option($key.'_disable_ginger', $_POST["ginger_privacy_click_scroll"]);
     69        update_option($key.'_disable_logger', $_POST["ginger_disable_logger"] == '1');
    6970
    7071}else{
     
    7980    // recupero la option per il disable click out e scroll in privacy policy page
    8081    $options2 = get_option($key.'_disable_ginger');
     82    $options_disable_logger = get_option($key.'_disable_logger');
    8183
    8284endif;
  • ginger/tags/4.1.6/admin/partial/policy.php

    r1344130 r1867353  
    1010
    1111    <tr>
    12         <th scope="row" style="padding-left:20px;">
     12        <th scope="row" style="padding-left:20px;" colspan="2">
    1313            <label>
    1414                <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"); ?>
     
    6363    </tr>
    6464    <tr>
    65         <th scope="row" style="padding-left:20px;">
     65        <th scope="row" style="padding-left:20px;" colspan="2">
    6666            <label>
    6767                <input name="choice" type="radio" value="new_page" onclick="javascript:new_privacy_page();"><?php _e("or create your privacy policy page", "ginger"); ?>
     
    106106    <tr>
    107107        <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;">
     108        <td>
    111109            <fieldset>
    112110                <p>
     
    122120            </fieldset>
    123121        </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>
    124142    </tr>   
    125143    </tbody>
  • ginger/tags/4.1.6/front/gingerfront.core.php

    r1344130 r1867353  
    115115    // We'll need to get the number of ob levels we're in, so that we can iterate over each, collecting
    116116    // that buffer's output into the final output.
    117     $levels = count(ob_get_level());
     117    $levels = ob_get_level();
    118118
    119119    for ($i = 0; $i < $levels; $i++){
  • ginger/tags/4.1.6/ginger-eu-cookie-law.php

    r1735994 r1867353  
    44Plugin URI: http://www.ginger-cookielaw.com/
    55Description: Make your website compliant with EU Cookie Policy! Now totally free and unlocked
    6 Version: 4.1.5
     6Version: 4.1.6
    77Author: Manafactory
    88Author URI: http://manafactory.it/
  • ginger/tags/4.1.6/readme.txt

    r1735994 r1867353  
    44Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia, wpml, polylang
    55Requires at least: 3.0.1
    6 Tested up to: 4.7.3
    7 Stable tag: 4.1.5
     6Tested up to: 4.9.5
     7Stable tag: 4.1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9191== Changelog ==
    9292
     93= 4.1.6 =
     94* option to enable / disable logger
     95
    9396= 4.1.5 =
    9497* fix notice
  • ginger/tags/4.1.6/uninstall.php

    r1256991 r1867353  
    1111delete_option('ginger_banner');
    1212delete_option('ginger_policy');
     13delete_option('ginger_policy_disable_logger');
  • ginger/trunk/addon/logger/ginger.logger.php

    r1735994 r1867353  
    174174function ginger_do_log($url = "", $status = "Y"){
    175175    global $wpdb;
     176
     177    $disable_logger = get_option('ginger_policy_disable_logger', false);
     178    if($disable_logger) return;
     179
    176180    if($url == "")
    177181        $url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
  • ginger/trunk/admin/ginger.admin.php

    r1689549 r1867353  
    6767    endif;
    6868        update_option($key.'_disable_ginger', $_POST["ginger_privacy_click_scroll"]);
     69        update_option($key.'_disable_logger', $_POST["ginger_disable_logger"] == '1');
    6970
    7071}else{
     
    7980    // recupero la option per il disable click out e scroll in privacy policy page
    8081    $options2 = get_option($key.'_disable_ginger');
     82    $options_disable_logger = get_option($key.'_disable_logger');
    8183
    8284endif;
  • ginger/trunk/admin/partial/policy.php

    r1344130 r1867353  
    1010
    1111    <tr>
    12         <th scope="row" style="padding-left:20px;">
     12        <th scope="row" style="padding-left:20px;" colspan="2">
    1313            <label>
    1414                <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"); ?>
     
    6363    </tr>
    6464    <tr>
    65         <th scope="row" style="padding-left:20px;">
     65        <th scope="row" style="padding-left:20px;" colspan="2">
    6666            <label>
    6767                <input name="choice" type="radio" value="new_page" onclick="javascript:new_privacy_page();"><?php _e("or create your privacy policy page", "ginger"); ?>
     
    106106    <tr>
    107107        <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;">
     108        <td>
    111109            <fieldset>
    112110                <p>
     
    122120            </fieldset>
    123121        </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>
    124142    </tr>   
    125143    </tbody>
  • ginger/trunk/front/gingerfront.core.php

    r1344130 r1867353  
    115115    // We'll need to get the number of ob levels we're in, so that we can iterate over each, collecting
    116116    // that buffer's output into the final output.
    117     $levels = count(ob_get_level());
     117    $levels = ob_get_level();
    118118
    119119    for ($i = 0; $i < $levels; $i++){
  • ginger/trunk/ginger-eu-cookie-law.php

    r1735994 r1867353  
    44Plugin URI: http://www.ginger-cookielaw.com/
    55Description: Make your website compliant with EU Cookie Policy! Now totally free and unlocked
    6 Version: 4.1.5
     6Version: 4.1.6
    77Author: Manafactory
    88Author URI: http://manafactory.it/
  • ginger/trunk/readme.txt

    r1735994 r1867353  
    44Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia, wpml, polylang
    55Requires at least: 3.0.1
    6 Tested up to: 4.7.3
    7 Stable tag: 4.1.5
     6Tested up to: 4.9.5
     7Stable tag: 4.1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9191== Changelog ==
    9292
     93= 4.1.6 =
     94* option to enable / disable logger
     95
    9396= 4.1.5 =
    9497* fix notice
  • ginger/trunk/uninstall.php

    r1256991 r1867353  
    1111delete_option('ginger_banner');
    1212delete_option('ginger_policy');
     13delete_option('ginger_policy_disable_logger');
Note: See TracChangeset for help on using the changeset viewer.