redirect the user if he already saw the new home page

Signed-off-by: Christopher Guindon <chris.guindon@eclipse.org>
diff --git a/index.php b/index.php
index 50351e6..79bd665 100644
--- a/index.php
+++ b/index.php
@@ -17,7 +17,19 @@
 	$App 	= new App();
 	$Nav	= new Nav();
 	$Menu 	= new Menu();
-
+	
+	#redirect the user if he already saw the luna landing page
+	$uri = explode("/", $_SERVER['REQUEST_URI']);
+	if ($uri[1] != 'luna') {
+		if (!isset($_COOKIE['luna'])){
+		    setcookie("luna", "Are you ready for Java 8?");
+		}
+		else {
+			header('Location: /home/index.php');
+			exit();
+		}
+	}
+	
 	# Begin: page-specific settings.  Change these.
 	$pageTitle 		= "Eclipse Luna";
 	$pageKeywords	= "eclipse Luna, release, simultaneous, release train, luna";