Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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;
36  echo $regenerate_input;
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_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$strength_msg
Definition: security.php:9
$title
Definition: save.php:22
$strength
Advanced site settings, site section.
Definition: security.php:6
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition: views.php:1207
_elgg_get_site_secret_strength()
Get the strength of the site secret.
Definition: actions.php:204
$regenerate_input
Definition: security.php:22
$current_strength
Definition: security.php:7
$strength_text
Definition: security.php:8