$method = $_SERVER['REQUEST_METHOD']; $request = explode("/", substr(@$_SERVER['PATH_INFO'], 1)); switch ($method) { case 'GET': if (isset($request) && !empty($request) && $request[0] !== '') { if ($request[0] == 'normal') { StatusController::printNormal(); } else { if ($request[0] == 'under') { StatusController::printUnder(); } else { if ($request[0] == 'severe-under') { StatusController::printSeverelyUnder(); } else { if ($request[0] == 'over') { StatusController::printOver(); } else { if ($request[0] == 'severe-under-total') { StatusController::printSeverelyUnderTotal(); } else { if ($request[0] == 'rank') { if ($request[1] == 'normal') { StatusController::printNormalRank(); } else { if ($request[1] == 'under') { StatusController::printSeverelyUnderRank(); } else { if ($request[1] == 'severe-under') { StatusController::printUnderRank(); } else { if ($request[1] == 'over') {