From cbdcc0d2ab5baefa3266d7cfcb157076526fd010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Wed, 7 Jan 2009 13:16:13 +0000 Subject: [PATCH] Added no consent link (Thomas Graff) git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1090 44740490-163a-0410-bde0-09ae8108e29a --- modules/consent/templates/default/noconsent.php | 5 +++++ modules/consent/www/noconsent.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/modules/consent/templates/default/noconsent.php b/modules/consent/templates/default/noconsent.php index 66f5cac99..3cfd349b3 100644 --- a/modules/consent/templates/default/noconsent.php +++ b/modules/consent/templates/default/noconsent.php @@ -14,6 +14,11 @@ echo($this->t('{consent:noconsent_return}')); echo('</a></p>'); } + if($this->data['aboutService']) { + echo('<p><a href="' . htmlspecialchars($this->data['aboutService']) . '">'); + echo($this->t('{consent:noconsent_goto_about}')); + echo('</a></p>'); + } ?> <?php $this->includeAtTemplateBase('includes/footer.php'); ?> diff --git a/modules/consent/www/noconsent.php b/modules/consent/www/noconsent.php index c84e50606..c18ea3b40 100644 --- a/modules/consent/www/noconsent.php +++ b/modules/consent/www/noconsent.php @@ -17,11 +17,16 @@ $state = SimpleSAML_Auth_State::loadState($id, 'consent:request'); $resumeFrom = SimpleSAML_Module::getModuleURL('consent/getconsent.php'); $resumeFrom = SimpleSAML_Utilities::addURLParameter($resumeFrom, array('StateId' => $id)); +if(isset($state['Destination']['url.about']) ){ + $aboutService = $state['Destination']['url.about']; +} + $globalConfig = SimpleSAML_Configuration::getInstance(); $t = new SimpleSAML_XHTML_Template($globalConfig, 'consent:noconsent.php'); $t->data['dstMetadata'] = $state['Destination']; $t->data['resumeFrom'] = $resumeFrom; +$t->data['aboutService'] = $aboutService; $t->show(); ?> \ No newline at end of file -- GitLab