summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-05-28 02:07:59 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2013-05-28 02:07:59 -0500
commitc955c27cbebba3edaab9532834ac72041eccbf58 (patch)
treea6fc54a3b73e043bf61e73f446d358a866cc7b58 /ajax
parent77b0bd5e51aeefb0d09e7a5bcab633657f299d22 (diff)
downloadpathery-c955c27cbebba3edaab9532834ac72041eccbf58.tar.xz
Edited a few more places where "include_once" was being used within a method. Hopefully this doesn't break anything :)
Diffstat (limited to 'ajax')
-rw-r--r--ajax/challenges.ajax.php2
-rw-r--r--ajax/maps.ajax.php2
-rw-r--r--ajax/misc.ajax.php3
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;