2011-03-28 14:21:28 +00:00
|
|
|
<?
|
|
|
|
|
|
|
|
$CollageID = $_GET['collageid'];
|
2013-05-05 08:00:31 +00:00
|
|
|
if (!is_number($CollageID) || !$CollageID) {
|
2013-02-22 08:00:24 +00:00
|
|
|
error(404);
|
2011-03-28 14:21:28 +00:00
|
|
|
}
|
|
|
|
|
2013-06-28 08:01:04 +00:00
|
|
|
$DB->query("
|
2013-11-23 08:01:14 +00:00
|
|
|
SELECT Name, CategoryID, UserID
|
2013-06-28 08:01:04 +00:00
|
|
|
FROM collages
|
|
|
|
WHERE ID = '$CollageID'");
|
2013-11-23 08:01:14 +00:00
|
|
|
list($Name, $CategoryID, $UserID) = $DB->next_record();
|
2011-03-28 14:21:28 +00:00
|
|
|
|
2013-05-05 08:00:31 +00:00
|
|
|
if (!check_perms('site_collages_delete') && $UserID != $LoggedUser['ID']) {
|
2011-03-28 14:21:28 +00:00
|
|
|
error(403);
|
|
|
|
}
|
|
|
|
|
2012-10-11 08:00:15 +00:00
|
|
|
View::show_header('Delete collage');
|
2011-03-28 14:21:28 +00:00
|
|
|
?>
|
|
|
|
<div class="thin center">
|
2013-05-05 08:00:31 +00:00
|
|
|
<div class="box" style="width: 600px; margin: 0px auto;">
|
2011-03-28 14:21:28 +00:00
|
|
|
<div class="head colhead">
|
|
|
|
Delete collage
|
|
|
|
</div>
|
|
|
|
<div class="pad">
|
2012-09-15 08:00:25 +00:00
|
|
|
<form class="delete_form" name="collage" action="collages.php" method="post">
|
2011-03-28 14:21:28 +00:00
|
|
|
<input type="hidden" name="action" value="take_delete" />
|
|
|
|
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
|
|
|
<input type="hidden" name="collageid" value="<?=$CollageID?>" />
|
2013-11-23 08:01:14 +00:00
|
|
|
<?
|
|
|
|
if ($CategoryID == 0) {
|
|
|
|
?>
|
|
|
|
<div class="alertbar" style="margin-bottom: 1em;">
|
|
|
|
<strong>Warning: This is a personal collage. If you delete this collage, it <em>cannot</em> be recovered!</strong>
|
|
|
|
</div>
|
|
|
|
<?
|
|
|
|
}
|
|
|
|
?>
|
2013-06-28 08:01:04 +00:00
|
|
|
<div class="field_div">
|
|
|
|
<strong>Reason: </strong>
|
|
|
|
<input type="text" name="reason" size="40" />
|
|
|
|
</div>
|
|
|
|
<div class="submit_div">
|
|
|
|
<input value="Delete" type="submit" />
|
|
|
|
</div>
|
2011-03-28 14:21:28 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?
|
2012-10-11 08:00:15 +00:00
|
|
|
View::show_footer();
|
2011-03-28 14:21:28 +00:00
|
|
|
?>
|