From 5fd4c8660674d6892e3a487a114832a6b3e91c5a Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Wed, 22 Sep 2010 06:18:49 +0000
Subject: [PATCH] openid: Remove test page.

The user may as well test with the "test configured authentication
sources" link.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2560 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/openid/hooks/hook_frontpage.php | 17 --------------
 modules/openid/www/openidtest.php       | 31 -------------------------
 2 files changed, 48 deletions(-)
 delete mode 100644 modules/openid/hooks/hook_frontpage.php
 delete mode 100644 modules/openid/www/openidtest.php

diff --git a/modules/openid/hooks/hook_frontpage.php b/modules/openid/hooks/hook_frontpage.php
deleted file mode 100644
index 73303a9f8..000000000
--- a/modules/openid/hooks/hook_frontpage.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/**
- * Hook to add the modinfo module to the frontpage.
- *
- * @param array &$links  The links on the frontpage, split into sections.
- */
-function openid_hook_frontpage(&$links) {
-	assert('is_array($links)');
-	assert('array_key_exists("links", $links)');
-
-	$links['auth'][] = array(
-		'href' => SimpleSAML_Module::getModuleURL('openid/openidtest.php'),
-		'text' => '{openid:dictopenid:openidtestpage}',
-	);
-
-}
-?>
\ No newline at end of file
diff --git a/modules/openid/www/openidtest.php b/modules/openid/www/openidtest.php
deleted file mode 100644
index c02d02b62..000000000
--- a/modules/openid/www/openidtest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/**
- * The _include script registers a autoloader for the simpleSAMLphp libraries. It also
- * initializes the simpleSAMLphp config class with the correct path.
- */
-require_once('_include.php');
-
-
-/* Load simpleSAMLphp, configuration and metadata */
-$config = SimpleSAML_Configuration::getInstance();
-$session = SimpleSAML_Session::getInstance();
-
-if (! $session->isValid('openid') ) {
-	/* Authenticate with an AuthSource. */
-	$hints = array('openid' => NULL);
-	SimpleSAML_Auth_Default::initLogin('openid', SimpleSAML_Utilities::selfURL(), NULL, $hints);
-}
-
-$attributes = $session->getAttributes();
-
-$t = new SimpleSAML_XHTML_Template($config, 'status.php', 'attributes');
-$t->data['header'] = '{openid:dictopenid:openidtestpage}';
-$t->data['remaining'] = $session->remainingTime();
-$t->data['sessionsize'] = $session->getSize();
-$t->data['attributes'] = $attributes;
-$t->data['logouturl'] = NULL;
-$t->show();
-
-
-?>
\ No newline at end of file
-- 
GitLab