isAdmin()) { if ($_GET["action"]) { if ($_GET["action"] == "close") { session_start(); if ($user->closeSession()) { echo " ending session..."; } else { echo " failure ending session..."; } } // $_GET["action"] == "close" if ($_GET["action"] == "verify") { if ($_GET["login"]=="") { echo "
Required field cannot be left blank.
"; } else { if (!$user->userExist($_GET["login"])) { echo "
Username available.
"; } else { echo "
The username is not available.
"; } } } // $_GET["action"] == "verify" } // $_GET["action"] } // $user->isAdmin() ?>