$success = true; $error_message = ""; } catch (Exception $exc) { $success = false; $error_message = $exc->getMessage(); } $users = AdminUtility::searchUsers($searchQuery, true, false, $sort_type, $order); } else { //Process GET requests or no requests $page = filter_input(INPUT_GET, "pg"); if (isset($page)) { //if switching page, repeat search $searchQuery = filter_input(INPUT_GET, "q"); $sort_type = filter_input(INPUT_GET, "s"); $order = filter_input(INPUT_GET, "o"); $users = AdminUtility::searchUsers($searchQuery, true, false, $sort_type, $order); } else { $page = 1; $users = AdminUtility::getDeletedUsers(); } } ?> <!-- Copyright 2015 NACOSS UNN Developers Group (NDG). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0