// 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>
echo '<p class="unlock2"><span>Unlock more missions at LVL' . $nextMissionLevel . '</span></p>'; } displayMissions($playerLevel, $cityIDsToRankAvail, $currentCityID, $serverRoot, $requiredItemsPopupHTML); ?> </div> <div id="four"> <?php $currentCityID = 4; $nextMissionLevel = 0; if (Mission::getNextUnlockMissionLevel($playerLevel, $currentCityID)) { $nextMissionLevel = Mission::getNextUnlockMissionLevel($playerLevel, $currentCityID)->getMinLevel(); } if ($nextMissionLevel > 0) { echo '<p class="unlock2"><span>Unlock more missions at LVL' . $nextMissionLevel . '</span></p>'; } displayMissions($playerLevel, $cityIDsToRankAvail, $currentCityID, $serverRoot, $requiredItemsPopupHTML); ?> </div> </div> <script> $( "#tabs" ).tabs({ selected: <?php if (isset($_GET['cityID'])) { echo $_GET['cityID'] - 1; } else { echo '0'; } ?> }