Plugin Directory

Changeset 418255


Ignore:
Timestamp:
08/02/2011 02:16:35 PM (15 years ago)
Author:
aviaxis
Message:

log del bug fix

Location:
traffic-counter-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • traffic-counter-widget/trunk/readme.txt

    r418238 r418255  
    11=== Plugin Name ===
    22Plugin Name: Traffic Counter Widget Plugin
    3 Version: 1.1.0
     3Version: 1.1.2
    44Donate link: http://www.pixme.org/wp-content/uploads/widget-traffic-counter/
    55URI: http://www.pixme.org/wp-content/uploads/widget-traffic-counter/
  • traffic-counter-widget/trunk/wp-traffic-counter-widget.php

    r418231 r418255  
    55Description: Counts the number of visitors of your blog and shows the traffic information on a widget
    66Author: Bogdan Nicolaescu
    7 Version: 1.1.0
     7Version: 1.1.2
    88Author URI: http://www.pixme.org/
    99*/
     
    109109  global $wpdb;
    110110  $options = get_wtc_options();
     111  $table_name = $wpdb->prefix . "wtc_log";
    111112
    112113  if ($options['wp_wtc_WidgetText_log_opt'] == 'on' && date('j') == 1 && date('G') == 23)
    113      $wpdb->query('DELETE FROM '.$table_name.' WHERE Time < '.time()-2592000);
     114     $wpdb->query('DELETE FROM '.$table_name.' WHERE Time < '.(time()-2592000));
    114115
    115116  if (is_bot() && ($options ['wp_wtc_WidgetText_bots_filter'] == 3 ))
     
    121122       $ip = $_SERVER['REMOTE_ADDR'];
    122123
    123   $table_name = $wpdb->prefix . "wtc_log";
    124124  $user_count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM $table_name where ".time()." - Time <= 3 and IP = '".$ip."'"));
    125125
Note: See TracChangeset for help on using the changeset viewer.