try something along the line off my work or not
if ($CURUSER['id'] == $torrentid) {
show_error_msg(T_("ERROR"), "You cannot give reputation again you allready done it.");