Skip to content
Snippets Groups Projects
Commit 61f4f1dc authored by Olimpia Magliulo's avatar Olimpia Magliulo
Browse files

Add index.php

Based on appearence configuration the user is redirected to login.php when usenewui is set to true,
or to frontpage_welcome.php for the default design.
parent b62a6baf
Branches
Tags
No related merge requests found
...@@ -2,4 +2,10 @@ ...@@ -2,4 +2,10 @@
require_once('_include.php'); require_once('_include.php');
\SimpleSAML\Utils\HTTP::redirectTrustedURL(SimpleSAML\Module::getModuleURL('core/frontpage_welcome.php')); $config = SimpleSAML_Configuration::getInstance();
if ($config->getBoolean('usenewui', false)) {
\SimpleSAML\Utils\HTTP::redirectTrustedURL(SimpleSAML\Module::getModuleURL('core/login.php'));
}
\SimpleSAML\Utils\HTTP::redirectTrustedURL(SimpleSAML\Module::getModuleURL('core/frontpage_welcome.php'));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment