Skip to content
Snippets Groups Projects
Commit fe6fc38d authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Adding PHPinfo page

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@342 44740490-163a-0410-bde0-09ae8108e29a
parent 7697e7f8
No related branches found
No related tags found
No related merge requests found
<?php
require_once('../_include.php');
require_once('SimpleSAML/Configuration.php');
require_once('SimpleSAML/Session.php');
require_once('SimpleSAML/Utilities.php');
try {
$config = SimpleSAML_Configuration::getInstance();
$session = SimpleSAML_Session::getInstance(true);
/* Make sure that the user has admin access rights. */
if (!isset($session) || !$session->isValid('login-admin') ) {
SimpleSAML_Utilities::redirect('/' . $config->getBaseURL() . 'auth/login-admin.php',
array('RelayState' => SimpleSAML_Utilities::selfURL())
);
}
phpinfo();
} catch(Exception $e) {
SimpleSAML_Utilities::fatalError('na', NULL, $e);
}
?>
\ No newline at end of file
......@@ -50,6 +50,10 @@ $links[] = array(
'href' => 'example-simple/hostnames.php',
'text' => 'Diagnostics on hostname, port and protocol');
$links[] = array(
'href' => 'admin/phpinfo.php',
'text' => 'PHPinfo');
$linksmeta = array();
......
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