Elgg  Version 1.11
security.php
Go to the documentation of this file.
1 <?php
7 $current_strength = elgg_echo('site_secret:current_strength');
8 $strength_text = elgg_echo("site_secret:strength:$strength");
9 $strength_msg = elgg_echo("site_secret:strength_msg:$strength");
10 
11 
12 if ($strength != 'strong') {
13  $title = "$current_strength: $strength_text";
14 
15  $status_msg = elgg_view_module('main', $title, $strength_msg, array(
16  'class' => 'elgg-message elgg-state-error'
17  ));
18 } else {
19  $status_msg = "<p>$strength_msg</p>";
20 }
21 
22 $regenerate_input = elgg_view("input/checkboxes", array(
23  'options' => array(elgg_echo('admin:site:secret:regenerate') => 1),
24  'name' => 'regenerate_site_secret'
25 ));
26 
27 ?>
28 <fieldset class="elgg-fieldset" id="elgg-settings-advanced-security">
29  <legend><?php echo elgg_echo('admin:legend:security'); ?></legend>
30 
31  <div>
32  <p><?php echo elgg_echo('admin:site:secret:intro'); ?></p>
33 
34  <?php
35  echo $status_msg;
37  ?>
38 
39  <p class="elgg-text-help">
40  <?php echo elgg_echo('admin:site:secret:regenerate:help'); ?>
41  </p>
42  </div>
43 </fieldset>
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition: views.php:1217
p
Definition: admin.php:118
$strength_msg
Definition: security.php:9
fieldset div
Definition: admin.php:470
$title
Definition: save.php:24
$strength
Advanced site settings, site section.
Definition: security.php:6
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
_elgg_get_site_secret_strength()
Get the strength of the site secret.
Definition: actions.php:205
$regenerate_input
Definition: security.php:22
$current_strength
Definition: security.php:7
elgg fieldset legend
Definition: admin.php:520
elgg fieldset
Definition: admin.php:513
$strength_text
Definition: security.php:8