failure('Only a "super admin" account can access the admin listing page', 'Location: index.php'); $edit = false; if($_SERVER["REQUEST_METHOD"] === "GET" && isset($_GET["edit"]) && $_GET["edit"] == "true" && isset($_GET["id"])) { $edit = true; $user = $user_instance->getUser($_GET["id"]); } if($_SERVER["REQUEST_METHOD"] === "POST" && isset($_POST["del_id"])) { $user_instance->deleteUser($_POST["del_id"]); } if($_SERVER["REQUEST_METHOD"] === "POST" && isset($_POST["edit"])) { if( isset($_POST["username"]) && isset($_POST["password"]) && isset($_POST["type"]) && isset($_POST["id"]) ) $user_instance->editUser($_POST); } if($_SERVER["REQUEST_METHOD"] === "POST" && !isset($_POST["edit"])) { if( isset($_POST["username"]) && isset($_POST["password"]) && isset($_POST["type"]) ) $user_instance->addUser($_POST); } ?> Qrcode Generator

User

Enter the requested data