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['head'] = '' . "\n"; $this->includeAtTemplateBase('includes/header.php'); ?>
t( '{consent:consent:consent_accept}', array( 'SPNAME' => $dstName, 'IDPNAME' => $srcName) ); if (array_key_exists('descr_purpose', $this->data['dstMetadata'])) { echo '
' . $this->t( '{consent:consent:consent_purpose}', array( 'SPNAME' => $dstName, 'SPDESC' => $this->getTranslation( SimpleSAML_Utilities::arrayize( $this->data['dstMetadata']['descr_purpose'], 'en' ) ), ) ); } ?>
data['sppp'] !== false) { echo "" . htmlspecialchars($this->t('{consent:consent:consent_privacypolicy}')) . " "; echo "" . $dstName . ""; echo "
"; } /** * Recursiv attribute array listing function * * @param SimpleSAML_XHTML_Template $t Template object * @param array $attributes Attributes to be presented * @param string $nameParent Name of parent element * * @return string HTML representation of the attributes */ function present_attributes($t, $attributes, $nameParent) { $alternate = array('odd', 'even'); $i = 0; $summary = 'summary="' . $t->t('{consent:consent:table_summary}') . '"'; if (strlen($nameParent) > 0) { $parentStr = strtolower($nameParent) . '_'; $str = '' . present_attributes($t, $child, $parentName) . ' |
' . htmlspecialchars($name) . ''; $isHidden = in_array($nameraw, $t->data['hiddenAttributes'], true); if ($isHidden) { $hiddenId = SimpleSAML_Utilities::generateID(); $str .= ' |