getValue('loader'); if(!empty($loader)) { $this->includeAtTemplateBase('includes/' . $loader . '.php'); } /** * Template form for giving consent. * * Parameters: * - 'srcMetadata': Metadata/configuration for the source. * - 'dstMetadata': Metadata/configuration for the destination. * - 'yesTarget': Target URL for the yes-button. This URL will receive a POST request. * - 'yesData': Parameters which should be included in the yes-request. * - 'noTarget': Target URL for the no-button. This URL will receive a GET request. * - 'noData': Parameters which should be included in the no-request. * - 'attributes': The attributes which are about to be released. * - 'sppp': URL to the privacy policy of the destination, or FALSE. * * @package SimpleSAMLphp */ assert('is_array($this->data["srcMetadata"])'); assert('is_array($this->data["dstMetadata"])'); assert('is_string($this->data["yesTarget"])'); assert('is_array($this->data["yesData"])'); assert('is_string($this->data["noTarget"])'); assert('is_array($this->data["noData"])'); assert('is_array($this->data["attributes"])'); assert('is_array($this->data["hiddenAttributes"])'); assert('$this->data["sppp"] === false || is_string($this->data["sppp"])'); // Parse parameters if (array_key_exists('name', $this->data['srcMetadata'])) { $srcName = $this->data['srcMetadata']['name']; } elseif (array_key_exists('OrganizationDisplayName', $this->data['srcMetadata'])) { $srcName = $this->data['srcMetadata']['OrganizationDisplayName']; } else { $srcName = $this->data['srcMetadata']['entityid']; } if (is_array($srcName)) { $srcName = $this->t($srcName); } if (array_key_exists('name', $this->data['dstMetadata'])) { $dstName = $this->data['dstMetadata']['name']; } elseif (array_key_exists('OrganizationDisplayName', $this->data['dstMetadata'])) { $dstName = $this->data['dstMetadata']['OrganizationDisplayName']; } else { $dstName = $this->data['dstMetadata']['entityid']; } if (is_array($dstName)) { $dstName = $this->t($dstName); } $srcName = htmlspecialchars($srcName); $dstName = htmlspecialchars($dstName); $attributes = $this->data['attributes']; $this->data['header'] = $this->t('{consent:consent:consent_header}'); $this->data['jquery'] = array('core' => TRUE); $this->includeAtTemplateBase('includes/header.php'); ?> t('{consent:consent:table_summary}') . '"'; if (strlen($nameParent) > 0) { $parentStr = strtolower($nameParent) . '_'; $str = '
'; } else { $parentStr = ''; $str = '
'; } foreach ($attributes as $name => $value) { $nameraw = $name; $name = $t->getAttributeTranslation($parentStr . $nameraw); if (preg_match('/^child_/', $nameraw)) { // insert child table $parentName = preg_replace('/^child_/', '', $nameraw); foreach ($value as $child) { $str .= "\n" . ''; } } else { // insert values directly $str .= "\n" . ''; } // end else: not child table } // end foreach $str .= isset($attributes)? '
' . present_attributes($t, $child, $parentName) . '
' . htmlspecialchars($name) . '
'; $isHidden = in_array($nameraw, $t->data['hiddenAttributes'], true); if ($isHidden) { $hiddenId = SimpleSAML\Utils\Random::generateID(); $str .= '
':''; return $str; } echo '

' . $this->t( '{consent:consent:consent_accept}', array( 'SPNAME' => $dstName, 'IDPNAME' => $srcName)). '

'; ?>

data['usestorage']) { $checked = ($this->data['checked'] ? 'checked="checked"' : ''); echo ' ' . $this->t('{consent:consent:remember}'); } // Embed hidden fields... foreach ($this->data['yesData'] as $name => $value) { echo ''; } ?>

data['noData'] as $name => $value) { echo(''); } ?>
includeAtTemplateBase('includes/footer.php'); ?>