// Level up if (isset($_SESSION['levelUp'])) { $newLevel = $_SESSION['newLevel']; $skillPointsGained = $_SESSION['skillPointsGained']; include_once $_SERVER['DOCUMENT_ROOT'] . "/levelupnotice.php"; unset($_SESSION['newLevel']); unset($_SESSION['skillPointsGained']); unset($_SESSION['levelUp']); } if (isset($_POST['postedCityID'])) { $_SESSION['currentMissionCity'] = $_POST['postedCityID']; } if (isset($_SESSION['missionfail']) && $_SESSION['missionfail'] == true) { showFailureNotifications(); } if (isset($_SESSION['missionsuccess']) && $_SESSION['missionsuccess'] == true) { showSuccessNotifications(); } if (isset($_SESSION['justUnlockedThisMissionRank'])) { showJustUnlockedMissionRank(); } if (isset($_SESSION['justUnlockedThisCityRank'])) { showJustUnlockedCityRank(); } $cityIDsToRankAvail = User::getAvailableCityIDsToRankAvail($_SESSION['userID']); listCities($cityIDsToRankAvail); displayMissions($playerLevel, $cityIDsToRankAvail); ?> </body> </html>