build_thumb_html($image);
			$reporter_name = html_escape($report['reporter_name']);
			$userlink = "$reporter_name";
			$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 = "
			
				| Image | Reason | Action$h_reportedimages | 
		";
		$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 ImageReport[] $reports
	 */
	public function display_image_banner(Image $image, array $reports) {
		global $config, $page;
		$i_image = int_escape($image->id);
		$html = "";
		$public = $config->get_string("report_image_publicity");
		if($public != "none" && count($reports) > 0) {
			$html .= "Current reports:";
			foreach($reports as $report) {
				$html .= "
";
				if($public == "both") {
					$html .= html_escape(User::by_id($report->user_id)->name);
					$html .= " - ";
					$html .= html_escape($report->reason);
				}
				elseif($public == "user") {
					$html .= html_escape(User::by_id($report->user_id)->name);
				}
				elseif($public == "reason") {
					$html .= html_escape($report->reason);
				}
			}
			$html .= "";
		}
		$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 = "
			
		";
		$page->add_block(new Block("Reports", $html, "main", 80));
	}
}