rename "secure" config setting to "securityLevel"
[phorkie.git] / www / index.php
index 7ac6fcfbc868cefd485775280c4a3cec1e04e081..7ff1814767cb6a619d3ad939d52714c4b19dac42 100644 (file)
@@ -3,6 +3,11 @@
  * Jump to the index as per the configuration
  */
 namespace phorkie;
+$secureAtLevel = false;
 require_once 'www-header.php';
-require_once $GLOBALS['phorkie']['cfg']['index'].".php";
+
+header(
+    'Location: '
+    . Tools::fullUrl('/' . $GLOBALS['phorkie']['cfg']['index'])
+);
 ?>