$CollageID = $_GET['collageid']; if(!is_number($CollageID) || !$CollageID) { error(404); } $DB->query("SELECT Name, UserID FROM collages WHERE ID='$CollageID'"); list($Name, $UserID) = $DB->next_record(); if(!check_perms('site_collages_delete') && $UserID != $LoggedUser['ID']) { error(403); } show_header('Delete collage'); ?>