8 $this->
data[
'htmlinject'] = [
9 'htmlContentPre' => [],
10 'htmlContentPost' => [],
11 'htmlContentHead' => [],
16 if (array_key_exists(
'jquery', $this->
data)) {
20 if (array_key_exists(
'pageid', $this->
data)) {
22 'pre' => &$this->
data[
'htmlinject'][
'htmlContentPre'],
23 'post' => &$this->
data[
'htmlinject'][
'htmlContentPost'],
24 'head' => &$this->
data[
'htmlinject'][
'htmlContentHead'],
26 'page' => $this->
data[
'pageid']
42 header(
'X-Frame-Options: SAMEORIGIN');
44 ?><!DOCTYPE
html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
45 <
html xmlns=
"http://www.w3.org/1999/xhtml" lang=
"en" xml:lang=
"en">
47 <meta
http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
48 <meta name=
"viewport" content=
"initial-scale=1.0" />
49 <
script type=
"text/javascript" src=
"/<?php echo $this->data['baseurlpath']; ?>resources/script.js"></
script>
51 if (array_key_exists(
'header', $this->
data)) {
58 <link rel=
"stylesheet" type=
"text/css" href=
"/<?php echo $this->data['baseurlpath']; ?>resources/default.css" />
59 <link rel=
"icon" type=
"image/icon" href=
"/<?php echo $this->data['baseurlpath']; ?>resources/icons/favicon.ico" />
65 if (array_key_exists(
'version',
$jquery)) {
71 echo(
'<script type="text/javascript" src="/' . $this->
data[
'baseurlpath'] .
'resources/jquery-1.8.js"></script>' .
"\n");
75 echo(
'<script type="text/javascript" src="/' . $this->
data[
'baseurlpath'] .
'resources/jquery-ui-1.8.js"></script>' .
"\n");
79 echo(
'<link rel="stylesheet" media="screen" type="text/css" href="/' . $this->
data[
'baseurlpath'] .
80 'resources/uitheme1.8/jquery-ui.css" />' .
"\n");
85 if (isset($this->
data[
'clipboard.js'])) {
86 echo '<script type="text/javascript" src="/' . $this->
data[
'baseurlpath'] .
87 'resources/clipboard.min.js"></script>' .
"\n";
90 if (!empty($this->
data[
'htmlinject'][
'htmlContentHead'])) {
91 foreach ($this->
data[
'htmlinject'][
'htmlContentHead'] as
$c) {
99 if ($this->isLanguageRTL()) {
101 <link rel=
"stylesheet" type=
"text/css" href=
"/<?php echo $this->data['baseurlpath']; ?>resources/default-rtl.css" />
107 <meta name=
"robots" content=
"noindex, nofollow" />
111 if (array_key_exists(
'head', $this->
data)) {
112 echo '<!-- head -->' . $this->
data[
'head'] .
'<!-- /head -->';
118 if (array_key_exists(
'autofocus', $this->
data)) {
119 $onLoad .=
'SimpleSAML_focus(\'' . $this->
data[
'autofocus'] .
'\');
'; 121 if (isset($this->data['onLoad
'])) { 122 $onLoad .= $this->data['onLoad
']; 125 if ($onLoad !== '') { 126 $onLoad = ' onload=
"' . $onLoad . '"'; 129 <body<?php echo $onLoad; ?>> 134 <h1><a href="/<?php echo $this->data['baseurlpath
']; ?>"><?php 135 echo(isset($this->data['header
']) ? $this->data['header
'] : 'SimpleSAMLphp'); 142 $includeLanguageBar = true; 143 if (!empty($_POST)) { 144 $includeLanguageBar = false; 146 if (isset($this->data['hideLanguageBar
']) && $this->data['hideLanguageBar
'] === true) { 147 $includeLanguageBar = false; 150 if ($includeLanguageBar) { 151 $languages = $this->getLanguageList(); 153 if (count($languages) > 1) { 154 echo '<div
id=
"languagebar">
'; 156 'no
' => 'Bokmål
', // Norwegian Bokmål 157 'nn
' => 'Nynorsk
', // Norwegian Nynorsk 158 'se
' => 'Sámegiella
', // Northern Sami 159 'da
' => 'Dansk
', // Danish 161 'de
' => 'Deutsch
', // German 162 'sv
' => 'Svenska
', // Swedish 163 'fi
' => 'Suomeksi
', // Finnish 164 'es
' => 'Español
', // Spanish 165 'ca
' => 'Català
', // Catalan 166 'fr
' => 'Français
', // French 167 'it
' => 'Italiano
', // Italian 168 'nl
' => 'Nederlands
', // Dutch 169 'lb
' => 'Lëtzebuergesch
', // Luxembourgish 170 'cs
' => 'Čeština
', // Czech 171 'sl
' => 'Slovenščina
', // Slovensk 172 'lt
' => 'Lietuvių kalba
', // Lithuanian 173 'hr
' => 'Hrvatski
', // Croatian 174 'hu
' => 'Magyar
', // Hungarian 175 'pl
' => 'Język polski
', // Polish 176 'pt
' => 'Português
', // Portuguese 177 'pt-br
' => 'Português brasileiro
', // Portuguese 178 'ru
' => 'русский язык
', // Russian 179 'et
' => 'eesti keel
', // Estonian 180 'tr
' => 'Türkçe
', // Turkish 181 'el
' => 'ελληνικά
', // Greek 182 'ja
' => '日本語
', // Japanese 183 'zh
' => '简体中文
', // Chinese (simplified) 184 'zh-tw
' => '繁體中文
', // Chinese (traditional) 185 'ar
' => 'العربية
', // Arabic 186 'he
' => 'עִבְרִית
', // Hebrew 187 'id' => 'Bahasa Indonesia
', // Indonesian 188 'sr
' => 'Srpski
', // Serbian 189 'lv
' => 'Latviešu
', // Latvian 190 'ro
' => 'Românește
', // Romanian 191 'eu
' => 'Euskara
', // Basque 192 'af
' => 'Afrikaans
', // Afrikaans 196 foreach ($languages as $lang => $current) { 197 $lang = strtolower($lang); 199 $textarray[] = $langnames[$lang]; 201 $textarray[] = '<
a href=
"' . htmlspecialchars( 202 \SimpleSAML\Utils\HTTP::addURLParameters( 203 \SimpleSAML\Utils\HTTP::getSelfURL(), 204 [$this->getTranslator()->getLanguage()->getLanguageParameterName() => $lang] 207 $langnames[$lang] . '</
a>
'; 210 echo join(' |
', $textarray); 224 if (!empty($this->data['htmlinject
']['htmlContentPre
'])) { 225 foreach ($this->data['htmlinject
']['htmlContentPre
'] as $c) {
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
static http()
Fetches the global http state from ILIAS.
Temporary autoloader to ensure compatibility with old, non-PSR-2 compliant classes.