Plugin Directory

Changeset 443646


Ignore:
Timestamp:
09/26/2011 12:57:10 PM (15 years ago)
Author:
aviaxis
Message:

bug fixing

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

Legend:

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

    r428019 r443646  
    11=== Plugin Name ===
    22Plugin Name: Traffic Counter Widget Plugin
    3 Version: 2.0.1
     3Version: 2.0.2
    44Donate link: http://www.pixme.org/wp-content/uploads/widget-traffic-counter/
    55URI: http://www.pixme.org/wp-content/uploads/widget-traffic-counter/
     
    7272
    7373== Changelog ==
     74=2.0.2
     75* some bug fixing
    7476
    7577=2.0.1
  • traffic-counter-widget/trunk/wp-traffic-counter-widget.php

    r427071 r443646  
    55Description: Counts the number of visitors of your blog and shows the traffic information on a widget
    66Author: Bogdan Nicolaescu
    7 Version: 2.0.1
     7Version: 2.0.2
    88Author URI: http://www.pixme.org/
    99*/
     
    148148     $wpdb->query('DELETE FROM '.$table_name.' WHERE Time < '.(time()-2592000));
    149149
    150   if (is_bot() && ($options ['wp_wtc_WidgetText_bots_filter'] == 3 ))
     150  if (wtc_is_bot() && ($options ['wp_wtc_WidgetText_bots_filter'] == 3 ))
    151151     return;
    152152
     
    162162                 'IP' => $ip,
    163163                 'Time' => time(),
    164                  'IS_BOT'=> is_bot(),
     164                 'IS_BOT'=> wtc_is_bot(),
    165165                 'IS_HIT'=> is_hit($ip)
    166166                );
     
    207207}
    208208
    209 function is_bot(){
     209function wtc_is_bot(){
    210210
    211211        if (isset($_SESSION['wtcrobot']))
     
    311311
    312312 if ($stat == 'pages')
    313    echo $options['wp_wtc_WidgetText_Visitors'].','.get_traffic(86400,false).','.get_traffic(604800,false).','.get_traffic(2592000,false);
     313   echo $options['wp_wtc_WidgetText_Visitors'].'~'.get_traffic(86400,false).'~'.get_traffic(604800,false).'~'.get_traffic(2592000,false);
    314314 if ($stat == 'hits')
    315    echo $options['wp_wtc_WidgetText_Hits'].','.get_traffic(86400, false ,true).','.get_traffic(604800, false, true). ',' . get_traffic(2592000, false, true);
     315   echo $options['wp_wtc_WidgetText_Hits'].'~'.get_traffic(86400, false ,true).'~'.get_traffic(604800, false, true). '~' . get_traffic(2592000, false, true);
    316316 if ($stat == 'unique')
    317    echo $options['wp_wtc_WidgetText_Unique'].','.get_traffic(86400, true).','.get_traffic(604800,true).','.get_traffic(2592000,true);
     317   echo $options['wp_wtc_WidgetText_Unique'].'~'.get_traffic(86400, true).'~'.get_traffic(604800,true).'~'.get_traffic(2592000,true);
    318318die();
    319319}
  • traffic-counter-widget/trunk/wp-wtc-ajax.js

    r424184 r443646  
    1818
    1919     var rt = xmlhttp.responseText;
    20      var wtcdata = rt.split(',');
     20     var wtcdata = rt.split('~');
    2121     document.getElementById("wtc_stats_title").innerHTML = wtcdata[0];
    2222     document.getElementById("wtc_lds").innerHTML = wtcdata[1];
Note: See TracChangeset for help on using the changeset viewer.