diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-04-21 13:46:46 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-04-21 13:46:46 -0700 |
commit | 73c7ff257800efa0300579ca9b17c7319af819e0 (patch) | |
tree | 21c8224ac416f96a2c65d210e79af4a0f38172bb | |
parent | f03c9a928b9019c4b7947a9b087134ead88e7655 (diff) | |
download | pathery-73c7ff257800efa0300579ca9b17c7319af819e0.tar.xz |
tutorial-on-homepage stuff
-rw-r--r-- | index.php | 6 | ||||
-rw-r--r-- | pages/tutorial.php | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -24,7 +24,11 @@ if ($_SESSION['isAdmin'] == true) { $Links['faq'] = "FAQ";
$Links['about'] = "About Us";
-switch (strtolower($_GET[page])) {
+$request = strtolower($_GET[page]);
+if ($request == '' AND $_SESSION['accepted'] <> 1)
+ $request = 'tutorial';
+
+switch ($request) {
case "test":
require("pages/test.php");
diff --git a/pages/tutorial.php b/pages/tutorial.php index 85d5868..ed4aa9e 100644 --- a/pages/tutorial.php +++ b/pages/tutorial.php @@ -287,6 +287,8 @@ include('./includes/maps.php'); //Lightup; Next-Button
?>
+<a href='home' style='padding-left:7px;'>Skip Tutorial</a>
+
<div id="tut-wrapper">
<div style='height:80px;' id='1,instructions'>
<p>The objective in this game is to create the longest <i>path</i> between the start and the finish.<br>Below is a demonstration.<br>Press <b>Go!</b></p>;
|