Changeset 443646
- Timestamp:
- 09/26/2011 12:57:10 PM (15 years ago)
- Location:
- traffic-counter-widget/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
wp-traffic-counter-widget.php (modified) (5 diffs)
-
wp-wtc-ajax.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
traffic-counter-widget/trunk/readme.txt
r428019 r443646 1 1 === Plugin Name === 2 2 Plugin Name: Traffic Counter Widget Plugin 3 Version: 2.0. 13 Version: 2.0.2 4 4 Donate link: http://www.pixme.org/wp-content/uploads/widget-traffic-counter/ 5 5 URI: http://www.pixme.org/wp-content/uploads/widget-traffic-counter/ … … 72 72 73 73 == Changelog == 74 =2.0.2 75 * some bug fixing 74 76 75 77 =2.0.1 -
traffic-counter-widget/trunk/wp-traffic-counter-widget.php
r427071 r443646 5 5 Description: Counts the number of visitors of your blog and shows the traffic information on a widget 6 6 Author: Bogdan Nicolaescu 7 Version: 2.0. 17 Version: 2.0.2 8 8 Author URI: http://www.pixme.org/ 9 9 */ … … 148 148 $wpdb->query('DELETE FROM '.$table_name.' WHERE Time < '.(time()-2592000)); 149 149 150 if ( is_bot() && ($options ['wp_wtc_WidgetText_bots_filter'] == 3 ))150 if (wtc_is_bot() && ($options ['wp_wtc_WidgetText_bots_filter'] == 3 )) 151 151 return; 152 152 … … 162 162 'IP' => $ip, 163 163 'Time' => time(), 164 'IS_BOT'=> is_bot(),164 'IS_BOT'=> wtc_is_bot(), 165 165 'IS_HIT'=> is_hit($ip) 166 166 ); … … 207 207 } 208 208 209 function is_bot(){209 function wtc_is_bot(){ 210 210 211 211 if (isset($_SESSION['wtcrobot'])) … … 311 311 312 312 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); 314 314 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); 316 316 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); 318 318 die(); 319 319 } -
traffic-counter-widget/trunk/wp-wtc-ajax.js
r424184 r443646 18 18 19 19 var rt = xmlhttp.responseText; 20 var wtcdata = rt.split(' ,');20 var wtcdata = rt.split('~'); 21 21 document.getElementById("wtc_stats_title").innerHTML = wtcdata[0]; 22 22 document.getElementById("wtc_lds").innerHTML = wtcdata[1];
Note: See TracChangeset
for help on using the changeset viewer.