set_title("Thumbnail Regenerated"); $page->set_heading("Thumbnail Regenerated"); $page->add_html_header(META(['http-equiv' => 'cache-control', 'content' => 'no-cache'])); $page->add_block(new NavBlock()); $page->add_block(new Block("Thumbnail", $this->build_thumb_html($image))); } public function bulk_html(): string { return ""; } public function display_admin_block(): void { global $page, $database; $mimes = []; $results = $database->get_all("SELECT mime, count(*) count FROM images group by mime"); foreach ($results as $result) { $mimes[] = ""; } $html = " Will only regenerate missing thumbnails, unless force is selected. Force will override the limit and will likely take a very long time to process.
".make_form(make_link("admin/regen_thumbs"))."
".make_form(make_link("admin/delete_thumbs"), onsubmit: "return confirm('Are you sure you want to delete all thumbnails?')")."