if (!check_perms('site_collages_recover')) { error(403); } if($_POST['collage_id'] && is_number($_POST['collage_id'])) { authorize(); $CollageID = $_POST['collage_id']; $DB->query("UPDATE collages SET Deleted = '0' WHERE ID=$CollageID"); $Cache->delete_value('collage_'.$CollageID); write_log("Collage ".$CollageID." was recovered by ".$LoggedUser['Username']); header("Location: collages.php?id=$CollageID"); } show_header("Collage recovery!"); ?>