build_thumb_html($image); $reporter_name = html_escape($report['reporter_name']); $userlink = "$reporter_name"; global $user; $iabbe = new ImageAdminBlockBuildingEvent($image, $user); send_event($iabbe); ksort($iabbe->parts); $actions = join("
", $iabbe->parts); $h_reportedimages .= " {$image_link} Report by $userlink: $h_reason ".make_form(make_link("image_report/remove"))."
$actions "; } $thumb_width = $config->get_int("thumb_width"); $html = " $h_reportedimages
ImageReasonAction
"; $page->set_title("Reported Images"); $page->set_heading("Reported Images"); $page->add_block(new NavBlock()); $page->add_block(new Block("Reported Images", $html)); } /** * @param Image $image * @param array $reporters */ public function display_image_banner(Image $image, /*array*/ $reporters) { global $page; $i_image = int_escape($image->id); $html = ""; if(count($reporters) > 0) { $html .= "Image reported by ".html_escape(implode(", ", $reporters))."

"; } $html .= " ".make_form(make_link("image_report/add"))." "; $page->add_block(new Block("Report Image", $html, "left")); } public function get_nuller(User $duser) { global $user, $page; $html = "

".$user->get_auth_html()."
"; $page->add_block(new Block("Reports", $html, "main", 80)); } }