rename "secureAtLevel" variable since it does not define a level at all
[phorkie.git] / www / index.php
index 7ac6fcfbc868cefd485775280c4a3cec1e04e081..0ee9211679cbe1aa1e79c936af4117b372015271 100644 (file)
@@ -3,6 +3,11 @@
  * Jump to the index as per the configuration
  */
 namespace phorkie;
+$reqWritePermissions = false;
 require_once 'www-header.php';
-require_once $GLOBALS['phorkie']['cfg']['index'].".php";
+
+header(
+    'Location: '
+    . Tools::fullUrl('/' . $GLOBALS['phorkie']['cfg']['index'])
+);
 ?>