ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
post.php
Go to the documentation of this file.
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<head>
5 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6 <title>POST data</title>
7 <script type="text/javascript" src="/<?php echo $this->data['baseurlpath']; ?>resources/post.js"></script>
8 <link
9 type="text/css" rel="stylesheet" href="/<?php echo $this->data['baseurlpath']; ?>resources/post.css" />
10</head>
11<body>
12
13 <noscript>
14 <p><strong>Note:</strong>
15 Since your browser does not support JavaScript,
16 you must press the button below once to proceed.</p>
17 </noscript>
18
19 <form method="post"
20 action="<?php echo htmlspecialchars($this->data['destination']); ?>">
21 <!-- Need to add this element and call click method, because calling
22 submit() on the form causes failed submission if the form has another
23 element with name or id of submit.
24 See: https://developer.mozilla.org/en/DOM/form.submit#Specification -->
25 <input type="submit" id="postLoginSubmitButton"/>
26<?php
27if (array_key_exists('post', $this->data)) {
28 $post = $this->data['post'];
29} else {
30 // For backwards compatibility
31 assert(array_key_exists('response', $this->data));
32 assert(array_key_exists('RelayStateName', $this->data));
33 assert(array_key_exists('RelayState', $this->data));
34 $post = array(
35 'SAMLResponse' => $this->data['response'],
36 $this->data['RelayStateName'] => $this->data['RelayState'],
37 );
38}
39
50function printItem($name, $value) {
51 assert(is_string($name));
52 assert(is_string($value) || is_array($value));
53 if (is_string($value)) {
54 echo '<input type="hidden" name="' .
55 htmlspecialchars($name) . '" value="' .
56 htmlspecialchars($value) . '" />';
57 return;
58 }
59 // This is an array...
60 foreach ($value as $index => $item) {
61 printItem($name . '[' . $index . ']', $item);
62 }
63}
64
65foreach ($post as $name => $value) {
66 printItem($name, $value);
67}
68?>
69
70 <noscript>
71 <button type="submit" class="btn">Submit</button>
72 </noscript>
73 </form>
74
75</body>
76</html>
html()
An exception for terminatinating execution or to throw for unit testing.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
foreach( $name as $i=> $nameSection)( $i==count( $name) - 1)( $nameSection) ?></span ><?php else from https
Definition: header.html.php:45
input
Definition: langcheck.php:166
$index
Definition: metadata.php:60
static http()
Fetches the global http state from ILIAS.
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.
on($eventName, callable $callBack, $priority=100)
Subscribe to an event.
printItem($name, $value)
Write out one or more INPUT elements for the given name-value pair.
Definition: post.php:50
$post
Definition: post.php:34
add()
Definition: add.php:2
$this data['403_header']