Elgg
Version 6.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
admin
security
security_txt.php
Go to the documentation of this file.
1
<?php
8
$params
=
$vars
;
9
$params
[
'selected'
] =
'security_txt'
;
10
echo
elgg_view
(
'admin/security/tabs'
,
$params
);
11
12
echo
elgg_view
(
'output/longtext'
, [
13
'value'
=>
elgg_echo
(
'admin:security:security_txt:description'
, [
14
elgg_view_url
(
'https://securitytxt.org/'
),
15
elgg_view_url
(
elgg_generate_url
(
'security.txt'
)),
16
]),
17
]);
18
19
$expires
=
elgg_get_config
(
'security_txt_expires'
);
20
if
(!empty(
$expires
) &&
$expires
< time()) {
21
echo
elgg_view_message
(
'warning'
,
elgg_echo
(
'admin:security:security_txt:expired'
));
22
}
23
24
echo
elgg_view_form
(
'admin/security/security_txt'
, [
25
'enable_sticky'
=>
true
,
26
]);
elgg_view_form
elgg_view_form(string $action, array $form_vars=[], array $body_vars=[])
Definition:
views.php:1033
elgg_get_config
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
Definition:
configuration.php:142
elgg_echo
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition:
languages.php:17
$params
$params
Configure the contents of the security.txt endpoint.
Definition:
security_txt.php:8
elgg_view
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition:
views.php:156
$expires
$expires
Definition:
security_txt.php:19
$vars
$vars
Definition:
theme.php:5
elgg_view_url
elgg_view_url(string $href, string $text=null, array $options=[])
Helper function for outputting urls.
Definition:
views.php:1427
elgg_view_message
elgg_view_message(string $type, string $body, array $vars=[])
Wrapper function for the message display pattern.
Definition:
views.php:940
elgg_generate_url
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
Definition:
pagehandler.php:133
Generated on Mon Oct 7 2024 00:00:23 for Elgg by
1.8.11