diff options
author | Steve Clay <sclay@ufl.edu> | 2013-12-01 20:41:23 -0500 |
---|---|---|
committer | Steve Clay <sclay@ufl.edu> | 2013-12-01 20:41:23 -0500 |
commit | 4ffb40d6b5b9219c2b6964592f58183da6f78962 (patch) | |
tree | d1e67236121f1a27637ed64d3774c0060b82f29b /views/default | |
parent | ad8aff634c5c391042484aa9c8129e59faeac093 (diff) | |
parent | 003946eff06fcafe60db5894e1ade0abee7314b4 (diff) | |
download | elgg-4ffb40d6b5b9219c2b6964592f58183da6f78962.tar.gz elgg-4ffb40d6b5b9219c2b6964592f58183da6f78962.tar.bz2 |
Allow regenerating site secret
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/admin/settings/advanced/site_secret.php | 11 | ||||
-rw-r--r-- | views/default/css/admin.php | 20 | ||||
-rw-r--r-- | views/default/forms/admin/site/regenerate_secret.php | 24 |
3 files changed, 55 insertions, 0 deletions
diff --git a/views/default/admin/settings/advanced/site_secret.php b/views/default/admin/settings/advanced/site_secret.php new file mode 100644 index 000000000..e70ac7ab6 --- /dev/null +++ b/views/default/admin/settings/advanced/site_secret.php @@ -0,0 +1,11 @@ +<?php +/** + * Elgg administration site secret settings + * + * @package Elgg + * @subpackage Core + */ + +echo elgg_view_form('admin/site/regenerate_secret', array(), array( + 'strength' => _elgg_get_site_secret_strength(), +)); diff --git a/views/default/css/admin.php b/views/default/css/admin.php index 3896ded5d..c435621b2 100644 --- a/views/default/css/admin.php +++ b/views/default/css/admin.php @@ -1544,6 +1544,26 @@ table.mceLayout { } /* *************************************** + SITE SECRET +*************************************** */ +.elgg-form-admin-site-regenerate-secret table { + width: 60%; + margin: 1em auto; +} +td.elgg-strength-strong, +td.elgg-strength-strong h4 { + background: #DFF0D8; color: #468847; +} +td.elgg-strength-moderate, +td.elgg-strength-moderate h4 { + background: #FCF8E3; color: #C09853; +} +td.elgg-strength-weak, +td.elgg-strength-weak h4 { + background: #F2DEDE; color: #B94A48; +} + +/* *************************************** HELPERS *************************************** */ .hidden { diff --git a/views/default/forms/admin/site/regenerate_secret.php b/views/default/forms/admin/site/regenerate_secret.php new file mode 100644 index 000000000..af269b801 --- /dev/null +++ b/views/default/forms/admin/site/regenerate_secret.php @@ -0,0 +1,24 @@ +<?php + +$strength = $vars['strength']; + +?> +<p><?php echo elgg_echo('admin:site:secret:intro'); ?></p> + +<table class="elgg-table"> + <tr> + <th><?php echo elgg_echo('site_secret:current_strength'); ?></th> + <td class="elgg-strength-<?php echo $strength; ?>"> + <h4><?php echo elgg_echo("site_secret:strength:$strength"); ?></h4> + <div><?php echo elgg_echo("site_secret:strength_msg:$strength"); ?></div> + </td> + </tr> +</table> + +<div class="elgg-foot"> + <?php echo elgg_view('input/submit', array( + 'value' => elgg_echo('admin:site:secret:regenerate'), + 'class' => 'elgg-requires-confirmation elgg-button elgg-button-submit', + )); ?> + <p class="elgg-text-help mts"><?php echo elgg_echo('admin:site:secret:regenerate:help'); ?></p> +</div> |