diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-03-19 19:28:16 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-03-19 19:28:16 -0700 |
commit | de6e3739e7cc22ef5231404078f6c7b2a2d1d3c4 (patch) | |
tree | 4bace8542e32fba212c6f9119585c72c2a604273 /pages/tutorial.php | |
parent | 40f8d7239e33119b4b6df8901da072a35ea98baa (diff) | |
download | pathery-de6e3739e7cc22ef5231404078f6c7b2a2d1d3c4.tar.xz |
Custom wall colors when playing the tutorial.
Diffstat (limited to 'pages/tutorial.php')
-rw-r--r-- | pages/tutorial.php | 22 |
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>
|