<?php } } else { header('location: admin_users.php'); exit; } break; // Delete admin_user // Delete admin_user case 'delete': if (isset($_GET['admin_user'])) { $id_user = (int) $_GET['admin_user']; if ($id_user != $_SESSION['id_admin'] && $id_admin != 1) { if (empty($users)) { $admin_users = new AdminUsersModel(); $admin_users->delete($id_user); header('location: admin_users.php'); } else { header('location: admin_users.php?message=admin_user_not_delete'); } } else { header('location: admin_users.php'); } exit; } break; // List admin_users // List admin_users case '': default: ?>