summaryrefslogtreecommitdiffstats
path: root/includes/maps.php
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 /includes/maps.php
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 'includes/maps.php')
-rw-r--r--includes/maps.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/maps.php b/includes/maps.php
index 1dfb3a6..412068e 100644
--- a/includes/maps.php
+++ b/includes/maps.php
@@ -1,4 +1,6 @@
<?PHP
+include_once('sqlEmbedded.php');
+
//Displays the map
//TODO: SOON TO DEPRECIATE!! YAY!
function DisplayMap($mapMatrix, $idprefix = 1, $style = 'normal', $speed = NULL) {
@@ -774,7 +776,6 @@ function formSolution($solution) {
//Returns the best solution.
function getSolution($userID, $mapID) {
- include_once('sqlEmbedded.php');
$sql = "SELECT `solution`, `moves`
FROM `solutions`
WHERE `userID` = '$userID' AND
@@ -787,7 +788,6 @@ function getSolution($userID, $mapID) {
}
function getChallengeSolution($userID, $challengeID) {
- include_once('sqlEmbedded.php');
$sql = "SELECT `solution`, `moves`
FROM `challengeSolutions`
WHERE `userID` = '$userID' AND
@@ -800,7 +800,6 @@ function getChallengeSolution($userID, $challengeID) {
}
function getMapCode($mapID) {
- include_once('sqlEmbedded.php');
$sql = "SELECT `code`
FROM `maps`
WHERE `ID` = '$mapID'