function votes_from_ip($ip = '', $value = "<> 0") { require_once mnminclude . 'votes.php'; $vote = new Vote(); $vote->type = 'comments'; $vote->user = -1; $vote->ip = $ip; $vote->link = $this->id; return $vote->anycount($value); }
function countvotes() { require_once mnminclude . 'votes.php'; $vote = new Vote(); $vote->type = 'links'; $vote->link = $this->id; return $vote->anycount(); }
function votes($user) { require_once mnminclude . 'votes.php'; $vote = new Vote(); $vote->type = 'comments'; $vote->user = $user; $vote->link = $this->id; return $vote->anycount(); }