0) { if (isset($_POST["gdsr_ip_ban"])) { $all_banned = gdsrAdmDB::get_all_banned_ips(); $banned_ips = array(); foreach ($all_banned as $ip) $banned_ips[] = $ip->ip; foreach ($ips as $ip) { if (!in_array($ip, $banned_ips)) gdsrAdmDB::ban_ip($ip); } } if (isset($_POST["gdsr_delete_articles"])) { $page_id = 1; $xips = array(); $del = $_POST["gdsr_delete_articles"]; foreach ($ips as $ip) $xips[] = "'".$ip."'"; $log = gdsrAdmDB::get_user_log($user_id, $vote_type, $filter_vote, 0, 0, join(",", $xips)); foreach ($log as $l) { if ($del == "OI" && $l->id != $l->control_id) gdsrAdmDB::delete_voters_log("(".$l->record_id.")"); if ($del == "LO" && $l->id == $l->control_id) gdsrAdmDB::delete_voters_log("(".$l->record_id.")"); if ($del == "FD" && $l->id == $l->control_id) { gdsrAdmDB::delete_voters_log("(".$l->record_id.")"); if ($is_thumb) gdsrAdmDB::delete_voters_main_thumb($l->id, $l->vote, $l->vote_type == "artthumb", $user_id > 0); else gdsrAdmDB::delete_voters_main($l->id, $l->vote, $l->vote_type == "article", $user_id > 0); } } } } } if ($filter_vote > 0) $url.= "&vote=".$filter_vote; $url.= "&ui=".$user_id."&vt=".$vote_type."&un=".$user_name; $number_posts = gdsrAdmDB::get_count_user_log($user_id, $vote_type, $filter_vote); $max_page = floor($number_posts / $posts_per_page); if ($max_page * $posts_per_page != $number_posts) $max_page++; $pager = $max_page > 1 ? gdFunctionsGDSR::draw_pager($max_page, $page_id, $url, "pg") : ""; if ($vote_type == "article") $max_stars = $options["stars"]; else $max_stars = $options["cmm_stars"]; ?>

GD Star Rating:

0) { ?> : %s', $user_id, $user_name); ?>

" />

ip, $ips)) { $ips[] = $l->ip; $idx[] = 1; } else $idx[count($idx) - 1]++; } $counter = 0; $tr_class = ""; for ($i = 0; $i < count($idx); $i++) { for ($j = 0; $j < $idx[$i]; $j++) { echo ''; if ($j == 0) { echo ''; echo ''; echo ''; } echo ''; echo ''; echo ''; if ($vote_type == "comment") { echo ''; echo ''; } echo ''; $counter++; } if ($tr_class == "") $tr_class = "alternate "; else $tr_class = ""; } ?>
'.$log[$counter]->ip.''; echo $log[$counter]->status == "B" ? 'Banned' : 'OK'; echo ''.$log[$counter]->voted.''; if (($vote_type == "artthumb" || $vote_type == "cmmthumb") && $log[$counter]->vote > 0) echo "+"; echo $log[$counter]->vote; echo ''; if ($log[$counter]->id != $log[$counter]->control_id) echo 'INVALID VOTE'; else echo '['.$log[$counter]->post_id.'] '.$log[$counter]->post_title; echo ''.$log[$counter]->author.''.$log[$counter]->comment_content.'
:
: :
" />