- File:
-
- 1 edited
-
wp-postratings/trunk/wp-postratings.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-postratings/trunk/wp-postratings.php
r355076 r430970 4 4 Plugin URI: http://lesterchan.net/portfolio/programming/php/ 5 5 Description: Adds an AJAX rating system for your WordPress blog's post/page. 6 Version: 1.6 16 Version: 1.62 7 7 Author: Lester 'GaMerZ' Chan 8 8 Author URI: http://lesterchan.net … … 485 485 extract(shortcode_atts(array('id' => '0', 'results' => false), $atts)); 486 486 if(!is_feed()) { 487 $id = intval($id); 487 488 if($results) { 488 489 return the_ratings_results($id); … … 618 619 } 619 620 // Log Ratings No Matter What 620 $rate_log = $wpdb->query("INSERT INTO $wpdb->ratings VALUES (0, $post_id, '$post_title', ".$ratings_value[$rate-1].",'".current_time('timestamp')."', '".get_ipaddress()."', '". @gethostbyaddr(get_ipaddress())."' ,'$rate_user', $rate_userid)");621 $rate_log = $wpdb->query("INSERT INTO $wpdb->ratings VALUES (0, $post_id, '$post_title', ".$ratings_value[$rate-1].",'".current_time('timestamp')."', '".get_ipaddress()."', '".esc_attr(@gethostbyaddr(get_ipaddress()))."' ,'$rate_user', $rate_userid)"); 621 622 // Output AJAX Result 622 623 echo the_ratings_results($post_id, $post_ratings_users, $post_ratings_score, $post_ratings_average);
Note: See TracChangeset
for help on using the changeset viewer.