Redirect index.php to main.php when signed in

Change-Id: I6cf1a7427c06882f9154ada8d0266c45911444d4
diff --git a/index.php b/index.php
index ea374f7..1b87a7d 100644
--- a/index.php
+++ b/index.php
@@ -1,3 +1,9 @@
+<?php
+	require_once('./php/security.php');
+	if (Security::isSignedIn()) {
+		Security::go('/main.php');
+	}
+?>
 <html>
 	<head>
 		<meta charset="UTF-8">