diff options
Diffstat (limited to 'ajax')
-rw-r--r-- | ajax/challenges.ajax.php | 2 | ||||
-rw-r--r-- | ajax/maps.ajax.php | 2 | ||||
-rw-r--r-- | ajax/misc.ajax.php | 3 |
3 files changed, 2 insertions, 5 deletions
diff --git a/ajax/challenges.ajax.php b/ajax/challenges.ajax.php index cac9e75..0caafd1 100644 --- a/ajax/challenges.ajax.php +++ b/ajax/challenges.ajax.php @@ -51,8 +51,6 @@ function getChallengeCode($challengeID) { function getChallengesByTier($tierUnsanitized, $userIdUnsanitized) {
-
- include_once('../includes/sqlEmbedded.php');
$userID = mysql_escape_string($userIdUnsanitized);
$tier = mysql_escape_string($tierUnsanitized);
diff --git a/ajax/maps.ajax.php b/ajax/maps.ajax.php index 210fd1b..5ee6499 100644 --- a/ajax/maps.ajax.php +++ b/ajax/maps.ajax.php @@ -38,8 +38,6 @@ function sendCacheHeaders() { }
function getMapObjectByID($mapID) {
- include_once('../includes/sqlEmbedded.php');
- include_once('../includes/maps.php');
$sql = "SELECT `code`, `name`, `mapExpireTime`
FROM `maps`
INNER JOIN `mapOfTheDay` ON mapID = maps.ID
diff --git a/ajax/misc.ajax.php b/ajax/misc.ajax.php index 64eeccc..76a3158 100644 --- a/ajax/misc.ajax.php +++ b/ajax/misc.ajax.php @@ -1,6 +1,8 @@ <? ob_start("ob_gzhandler"); +include_once('../includes/maps.php'); + if ($_GET[r] == 'solution') { solutionRespond(); exit; @@ -10,7 +12,6 @@ function solutionRespond() { session_start(); session_write_close(); if ($_SESSION['accepted'] != 1) exit; - include_once('../includes/maps.php'); $userID = $_SESSION['userID']; $mapID = $_GET['mapid'] * 1; |