REVERT: variable name change
[phorkie.git] / www / index.php
index 9a05add9b9741d78ce46a87345123577fe4821dc..7ff1814767cb6a619d3ad939d52714c4b19dac42 100644 (file)
@@ -1,5 +1,13 @@
 <?php
 <?php
+/**
+ * Jump to the index as per the configuration
+ */
 namespace phorkie;
 namespace phorkie;
+$secureAtLevel = false;
 require_once 'www-header.php';
 require_once 'www-header.php';
-require_once $GLOBALS['phorkie']['cfg']['index'].".php";
+
+header(
+    'Location: '
+    . Tools::fullUrl('/' . $GLOBALS['phorkie']['cfg']['index'])
+);
 ?>
 ?>