summaryrefslogtreecommitdiffstats
path: root/pages/tutorial.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/tutorial.php')
-rw-r--r--pages/tutorial.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/pages/tutorial.php b/pages/tutorial.php
index b119412..85d5868 100644
--- a/pages/tutorial.php
+++ b/pages/tutorial.php
@@ -6,7 +6,29 @@ htmlHeader(array('tutorial'), "Pathery Tutorial");
<?php
topbar($Links);
+
+
+//!! Turn this into a function?
+if ($_SESSION[accepted] == 1) {
+ include_once ('./includes/db.inc.php');
+ $userID = $_SESSION['userID'];
+
+ $sql = "
+ SELECT
+ userData.wallColor,
+ userData.wallEmblem
+ FROM `userData`
+ WHERE userID = '$userID' ";
+ $result = mysql_query($sql);
+ if ($result)
+ list($wallColor, $wallEmblem) = mysql_fetch_row($result);
+}
?>
+<script type="text/javascript">
+playerWallColor = '<?PHP echo $wallColor; ?>';
+playerWallEmblem = '<?PHP echo $wallEmblem; ?>';
+<?PHP echo $noteScript; ?>
+</script>
<script src="sounds/script/soundmanager.js"></script>