diff options
Diffstat (limited to 'includes/maps.php')
-rw-r--r-- | includes/maps.php | 5 |
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'
|