Gazelle/sections/collages/delete.php
2012-09-15 08:00:25 +00:00

37 lines
965 B
PHP

<?
$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');
?>
<div class="thin center">
<div class="box" style="width:600px; margin:0px auto;">
<div class="head colhead">
Delete collage
</div>
<div class="pad">
<form class="delete_form" name="collage" action="collages.php" method="post">
<input type="hidden" name="action" value="take_delete" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="collageid" value="<?=$CollageID?>" />
<strong>Reason: </strong>
<input type="text" name="reason" size="30" />
<input value="Delete" type="submit" />
</form>
</div>
</div>
</div>
<?
show_footer();
?>