get rid of openid config file
[phorkie.git] / www / index.php
index 9a05add9b9741d78ce46a87345123577fe4821dc..18018313aa3ce76b2770bbbd575b5367ff28fa09 100644 (file)
@@ -1,5 +1,13 @@
 <?php
+/**
+ * Jump to the index as per the configuration
+ */
 namespace phorkie;
+$pageRequiresLogin = false;
 require_once 'www-header.php';
-require_once $GLOBALS['phorkie']['cfg']['index'].".php";
+
+header(
+    'Location: '
+    . Tools::fullUrl('/' . $GLOBALS['phorkie']['cfg']['index'])
+);
 ?>