function reports_from_ip($ip = '') { require_once mnminclude . 'votes.php'; $vote = new Vote(); $vote->type = 'links'; if ($ip) { $vote->ip = $ip; } else { require_once mnminclude . 'check_behind_proxy.php'; $vote->ip = check_ip_behind_proxy(); } $vote->link = $this->id; return $vote->reports(); }
function reports($user) { require_once mnminclude . 'votes.php'; $vote = new Vote(); $vote->type = 'links'; $vote->user = $user; $vote->link = $this->id; return $vote->reports(); }