ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
attributequery.php
Go to the documentation of this file.
1 <?php
2 $this->includeAtTemplateBase('includes/header.php');
3 
4 $dataId = $this->data['dataId'];
5 assert(is_string($dataId));
6 
7 $url = $this->data['url'];
8 assert(is_string($url));
9 
10 $nameIdFormat = $this->data['nameIdFormat'];
11 assert(is_string($nameIdFormat));
12 
13 $nameIdValue = $this->data['nameIdValue'];
14 assert(is_string($nameIdValue));
15 
16 $nameIdQualifier = $this->data['nameIdQualifier'];
17 assert(is_string($nameIdQualifier));
18 
19 $nameIdSPQualifier = $this->data['nameIdSPQualifier'];
20 assert(is_string($nameIdSPQualifier));
21 
22 
23 $attributes = $this->data['attributes'];
24 assert($attributes === null || is_array($attributes));
25 
26 
27 ?>
28 
29 <h2>Attribute query test</h2>
30 
31 <p>This is a test page for sending an AttributeQuery message.</p>
32 
33 <h3>Request</h3>
34 
35 <form action="?" method="post">
36 <input name="dataId" type="hidden" value="<?php echo htmlspecialchars($dataId); ?>" />
37 <p>
38 <label for="url">URL of attribute query endpoint:</label><br />
39 <input name="url" type="text" size="80" value="<?php echo htmlspecialchars($url); ?>" />
40 </p>
41 <p>
42 <label for="nameIdFormat">NameID format:</label><br />
43 <input name="nameIdFormat" type="text" size="80" value="<?php echo htmlspecialchars($nameIdFormat); ?>" />
44 </p>
45 
46 <p>
47 <label for="nameIdValue">NameID value:</label><br />
48 <input name="nameIdValue" type="text" size="80" value="<?php echo htmlspecialchars($nameIdValue); ?>" />
49 </p>
50 
51 <p>
52 <label for="nameIdQualifier">NameID NameQualifier (optional):</label><br />
53 <input name="nameIdQualifier" type="text" size="80" value="<?php echo htmlspecialchars($nameIdQualifier); ?>" />
54 </p>
55 
56 <p>
57 <label for="nameIdSPQualifier">NameID SPNameQualifier (optional):</label><br />
58 <input name="nameIdSPQualifier" type="text" size="80" value="<?php echo htmlspecialchars($nameIdSPQualifier); ?>" />
59 </p>
60 
61 <p>
62 <button type="submit" name="send" class="btn">Send query</button>
63 </p>
64 </form>
65 
66 <?php
67 if ($attributes !== NULL) {
68 
69  echo('<h3>Attributes received</h3><dl>');
70  foreach ($attributes as $name => $values) {
71  echo('<dt>' . htmlspecialchars($name) . '</dt><dd><ul>');
72  foreach ($values as $value) {
73  echo('<li>' . htmlspecialchars($value) . '</li>');
74  }
75  echo('</dd>');
76  }
77  echo('</dl>');
78 }
79 ?>
80 
81 <?php $this->includeAtTemplateBase('includes/footer.php');
$dataId
$nameIdFormat
$nameIdSPQualifier
$url
$nameIdValue
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
$values
input
Definition: langcheck.php:166
test()
Definition: build.php:107
$nameIdQualifier
font size
Definition: langcheck.php:162
$this data['403_header']
$attributes