query("SELECT Name FROM collages WHERE ID = ".$CollageID); if($DB->record_count() == 0) { error('Collage is completely deleted'); } else { $DB->query("UPDATE collages SET Deleted = '0' WHERE ID=$CollageID"); $Cache->delete_value('collage_'.$CollageID); Misc::write_log("Collage ".$CollageID." was recovered by ".$LoggedUser['Username']); header("Location: collages.php?id=$CollageID"); } } View::show_header("Collage recovery!"); ?>
Recover deleted collage
ID: