$reports */ public function display_reported_images(Page $page, array $reports): void { global $config, $user; $h_reportedimages = ""; foreach ($reports as $report) { $image = $report['image']; $h_reason = format_text($report['reason']); $image_link = $this->build_thumb_html($image); $reporter_name = html_escape($report['reporter_name']); $userlink = "$reporter_name"; $iabbe = send_event(new ImageAdminBlockBuildingEvent($image, $user, "report")); ksort($iabbe->parts); $actions = join("", $iabbe->parts); $h_reportedimages .= "
Post | Reason | Action | $h_reportedimages
"; } $html .= " ".make_form(make_link("image_report/add"))." "; $page->add_block(new Block("Report Post", $html, "left")); } public function get_nuller(User $duser): void { global $page; $html = (string)SHM_SIMPLE_FORM( "image_report/remove_reports_by", INPUT(["type" => 'hidden', "name" => 'user_id', "value" => $duser->id]), SHM_SUBMIT('Delete all reports by this user') ); $page->add_block(new Block("Reports", $html, "main", 80)); } }