session_start(); $userID = $_SESSION['userID']; require('../includes/maps.php'); require('../includes/mapclass.php'); require('../includes/datas.php'); include_once('../includes/sqlEmbedded.php'); $tmp = explode('.', $_GET['r']); $args = explode('_', $tmp[0]); $mapID = $args[0] * 1; $page = $args[1] * 1; if (!is_int($mapID) OR !is_int($page)) return; //Include the notification text $json = getScores($mapID, $page, 10); $json['mapid'] = $mapID; $json['page'] = $page; //TODO: Show notifications someplace else! $note = false; if ($_SESSION['accepted'] == 1) { $userID = $_SESSION['userID']; $note = getNotified($userID); } else { if ($_SESSION['preCompletedTutorial'] == true && $_SESSION['preCompletedTutorialNotified'] == false) { $_SESSION['preCompletedTutorialNotified'] = true; $note = "Tutorial Completed!"; $note .= "