From c955c27cbebba3edaab9532834ac72041eccbf58 Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Tue, 28 May 2013 02:07:59 -0500 Subject: Edited a few more places where "include_once" was being used within a method. Hopefully this doesn't break anything :) --- ajax/challenges.ajax.php | 2 -- ajax/maps.ajax.php | 2 -- ajax/misc.ajax.php | 3 ++- 3 files changed, 2 insertions(+), 5 deletions(-) (limited to 'ajax') 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 @@