2010-02-02 15:57:24 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @copyright 2010 City of Bloomington, Indiana
|
2011-06-14 13:29:37 +00:00
|
|
|
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
|
2010-02-02 15:57:24 +00:00
|
|
|
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
|
|
|
* @param GET interment_id
|
|
|
|
* @param GET return_url
|
|
|
|
*/
|
|
|
|
if (!userIsAllowed('Interments')) {
|
|
|
|
$_SESSION['errorMessages'][] = new Exception('noAccessAllowed');
|
|
|
|
header('Location: '.BASE_URL);
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
$interment = new Interment($_GET['interment_id']);
|
|
|
|
$interment->delete();
|
|
|
|
|
|
|
|
header('Location: '.$_GET['return_url']);
|