:
function report($userid,$postid,$boardid) {
global $master_board_name, $php_path, $master_email, $db_zugriff, $n;
$mod = $db_zugriff->query_first("SELECT bb".$n."_object2board.objectid, useremail FROM bb".$n."_object2board LEFT JOIN bb".$n."_user_table ON (bb".$n."_object2board.objectid=bb".$n."_user_tabl e.userid) WHERE boardid='$boardid' AND mod=1");
if(!$mod[useremail]) $mod = $db_zugriff->query_first("SELECT bb".$n."_object2board.objectid, useremail FROM bb".$n."_object2board LEFT JOIN bb".$n."_user_table ON (bb".$n."_object2board.objectid=bb".$n."_user_tabl e.userid) WHERE mod=1");
if(!$mod[useremail]) $mod = $db_zugriff->query_first("SELECT bb".$n."_groups.id, useremail FROM bb".$n."_groups LEFT JOIN bb".$n."_user_table ON (bb".$n."_groups.id=bb".$n."_user_table.groupid) WHERE ismod=1 OR issupermod=1 ORDER BY ismod DESC");
$post = $db_zugriff->query_first("SELECT userid, message FROM bb".$n."_posts WHERE postid='$postid'");
$authorname = getUsername($post[userid]);
$username = getUsername($userid);
eval ("\$betreff = \"".gettemplate("report_betreff")."\";");
eval ("\$message = \"".gettemplate("report_mail")."\";");
mail(trim($mod[useremail]),$betreff,$message,"From: ".$master_email);
credo vada modificato questo tratto...