From 73c7ff257800efa0300579ca9b17c7319af819e0 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Sat, 21 Apr 2012 13:46:46 -0700 Subject: tutorial-on-homepage stuff --- index.php | 6 +++++- pages/tutorial.php | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 3167ffb..7144d63 100644 --- a/index.php +++ b/index.php @@ -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 ?> +Skip Tutorial +

The objective in this game is to create the longest path between the start and the finish.
Below is a demonstration.
Press Go!

; -- cgit v1.2.3