require_once "../libraries/apiProcess.php"; require_once "../db/config.php"; require_once "../db/messages.php"; require_once "../libraries/common.php"; require_once "../libraries/validation.php"; require_once "../table/admin.php"; require_once "../table/misc.php"; //Which Table to include require_once "../module/adminLogin.php"; // Which Module to include $req = new Req(); $mysqli = new mysqli_functions(); $connection = $mysqli->connect(); if (is_bool($connection)) { Res::sendFailure($mysqli->message); } $module = new adminLogin($connection); switch ($req->getCmd()) { case "adminLogin": adminLogin(); break; case "forgotPwd": forgotPwd(); break; default: $connection->close(); Res::sendInvalid("invalidCmd:" . $req->getCmd()); } $mysqli->disconnect(); function adminLogin()