Changeset 418255
- Timestamp:
- 08/02/2011 02:16:35 PM (15 years ago)
- Location:
- traffic-counter-widget/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wp-traffic-counter-widget.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
traffic-counter-widget/trunk/readme.txt
r418238 r418255 1 1 === Plugin Name === 2 2 Plugin Name: Traffic Counter Widget Plugin 3 Version: 1.1. 03 Version: 1.1.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/ -
traffic-counter-widget/trunk/wp-traffic-counter-widget.php
r418231 r418255 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: 1.1. 07 Version: 1.1.2 8 8 Author URI: http://www.pixme.org/ 9 9 */ … … 109 109 global $wpdb; 110 110 $options = get_wtc_options(); 111 $table_name = $wpdb->prefix . "wtc_log"; 111 112 112 113 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)); 114 115 115 116 if (is_bot() && ($options ['wp_wtc_WidgetText_bots_filter'] == 3 )) … … 121 122 $ip = $_SERVER['REMOTE_ADDR']; 122 123 123 $table_name = $wpdb->prefix . "wtc_log";124 124 $user_count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM $table_name where ".time()." - Time <= 3 and IP = '".$ip."'")); 125 125
Note: See TracChangeset
for help on using the changeset viewer.