Skip to content
Snippets Groups Projects
Commit 5a677ce3 authored by Olav Morken's avatar Olav Morken
Browse files

metarefresh: Show warning if not enabled.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2324 44740490-163a-0410-bde0-09ae8108e29a
parent 76779f3e
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,13 @@ $baseDir = dirname(dirname(dirname(dirname(__FILE__))));
/* Add library autoloader. */
require_once($baseDir . '/lib/_autoload.php');
if(!SimpleSAML_Module::isModuleEnabled('metarefresh')) {
echo("You need to enable the metarefresh module before this script can be used.\n");
echo("You can enable it by running the following command:\n");
echo(' echo >"' . $baseDir . '/modules/metarefresh/enable' . "\"\n");
exit(1);
}
/* Initialize the configuration. */
SimpleSAML_Configuration::setConfigDir($baseDir . '/config');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment