Passed
Push — master ( 4ef76d...3c8dc8 )
by Tim
02:04
created

templates/authorize_403.php (3 issues)

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
Deprecated Code introduced by
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 ignore-deprecated  annotation

15
$this->data['403_header'] = /** @scrutinizer ignore-deprecated */ $translator->t('{authorize:Authorize:403_header}');

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.

Loading history...
16
$this->data['403_text'] = $translator->t('{authorize:Authorize:403_text}');
0 ignored issues
show
Deprecated Code introduced by
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 ignore-deprecated  annotation

16
$this->data['403_text'] = /** @scrutinizer ignore-deprecated */ $translator->t('{authorize:Authorize:403_text}');

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.

Loading history...
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
Deprecated Code introduced by
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 ignore-deprecated  annotation

28
    echo '<p><a href="'.htmlspecialchars($this->data['logoutURL']).'">'./** @scrutinizer ignore-deprecated */ $translator->t('{status:logout}').'</a></p>';

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.

Loading history...
29
}
30
31
$this->includeAtTemplateBase('includes/footer.php');
32