if ($params != null && $params[1] == "deleted") { $controller->deleteAccessUser($user_id, 1); echo "<script type='text/javascript'>location.href='admin_access.php';</script>"; } else { if ($params != null && $deny_access >= 0) { $controller->denyUserAccess($user_id, $deny_access); echo "<script type='text/javascript'>location.href='admin_access.php';</script>"; } else { echo "<script type='text/javascript'>location.href='403.php';</script>"; } } } $search_criteria = ""; if (isset($_POST['button_search'])) { $search_criteria = trim(strip_tags($_POST['search'])); $users = $controller->getAccessUsersBySearching($search_criteria); } ?> <!DOCTYPE html> <html lang="en"><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="http://getbootstrap.com/assets/ico/favicon.ico"> <title>RealEstate Finder</title>
function getAccessUsersBySearching($search) { $controller = new ControllerAuthentication(); return $controller->getAccessUsersBySearching($search); }