Location: PHPKode > projects > DOOR - Digital Open Object Repository > door/admin/delete_user.php
<?php
    // include libraries
    require_once("../setup.php");
    
	if($logged_in != 1) { //not logged
		error_catcher(1);
		exit;
	}else{
        // check if the user can access the page
        authorized_to_access_page('manage_users');
        
        // check for parameters
        if(!isset($_GET['userid'])){
            @ob_clean();
            error_catcher(44);
            exit;
        }
        
		if(isset($_GET['userid'])){
			deluser($_GET['userid']);
			header("Location: ../home/home.php?action=manage_user");
		}else{
			error_catcher(-1);
			exit;
		}
	}
?>
Return current item: DOOR - Digital Open Object Repository