1 | <?php |
||||
2 | /** |
||||
3 | * Template which is shown when there is only a short interval since the user was last authenticated. |
||||
4 | * |
||||
5 | * Parameters: |
||||
6 | * - 'target': Target URL. |
||||
7 | * - 'params': Parameters which should be included in the request. |
||||
8 | * |
||||
9 | * @package SimpleSAMLphp |
||||
10 | */ |
||||
11 | |||||
12 | /** @var \SimpleSAML\XHTML\Template $this */ |
||||
13 | $translator = $this->getTranslator(); |
||||
14 | |||||
15 | $this->data['403_header'] = $translator->t('{authorize:Authorize:403_header}'); |
||||
0 ignored issues
–
show
|
|||||
16 | $this->data['403_text'] = $translator->t('{authorize:Authorize:403_text}'); |
||||
0 ignored issues
–
show
The function
SimpleSAML\Locale\Translate::t() has been deprecated: Not used in twig, gettext
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
17 | |||||
18 | if (array_key_exists('reject_msg', $this->data)) { |
||||
19 | if (isset($this->data['reject_msg'][$translator->getLanguage()])) { |
||||
20 | $this->data['403_text'] = $this->data['reject_msg'][$translator->getLanguage()]; |
||||
21 | } |
||||
22 | } |
||||
23 | $this->includeAtTemplateBase('includes/header.php'); |
||||
24 | |||||
25 | echo '<h1>'.$this->data['403_header'].'</h1>'; |
||||
26 | echo '<p>'.$this->data['403_text'].'</p>'; |
||||
27 | if (isset($this->data['logoutURL'])) { |
||||
28 | echo '<p><a href="'.htmlspecialchars($this->data['logoutURL']).'">'.$translator->t('{status:logout}').'</a></p>'; |
||||
0 ignored issues
–
show
The function
SimpleSAML\Locale\Translate::t() has been deprecated: Not used in twig, gettext
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
29 | } |
||||
30 | |||||
31 | $this->includeAtTemplateBase('includes/footer.php'); |
||||
32 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.