rosehill/html/users/deleteUser.php

18 lines
451 B
PHP
Raw Normal View History

<?php
/**
* @copyright 2006-2008 City of Bloomington, Indiana
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
* @author Cliff Ingham <inghamn@bloomington.in.gov>
* @param GET user_id
*/
if (!userIsAllowed('Users')) {
$_SESSION['errorMessages'][] = new Exception('noAccessAllowed');
header('Location: '.BASE_URL);
exit();
}
$user = new User($_GET['user_id']);
$user->delete();
header('Location: '.BASE_URL.'/users');