Plugin Directory


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-postratings/trunk/wp-postratings.php

    r355076 r430970  
    44Plugin URI: http://lesterchan.net/portfolio/programming/php/
    55Description: Adds an AJAX rating system for your WordPress blog's post/page.
    6 Version: 1.61
     6Version: 1.62
    77Author: Lester 'GaMerZ' Chan
    88Author URI: http://lesterchan.net
     
    485485    extract(shortcode_atts(array('id' => '0', 'results' => false), $atts));
    486486    if(!is_feed()) {
     487        $id = intval($id);
    487488        if($results) {
    488489            return the_ratings_results($id);
     
    618619                }
    619620                // 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)");
    621622                // Output AJAX Result
    622623                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.