diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-07 21:49:19 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-07 21:49:19 +0000 |
commit | 7682706a46a20e3e58a9afd8ba208d5b0c040499 (patch) | |
tree | c8cb5e3d75609aa2b8f52748626bde7ffa7a041b /views/default/admin/site | |
parent | ff31226fdeb972aac2f37f0098240cb366a9bb26 (diff) | |
download | elgg-7682706a46a20e3e58a9afd8ba208d5b0c040499.tar.gz elgg-7682706a46a20e3e58a9afd8ba208d5b0c040499.tar.bz2 |
Adding an option to restrict new user registration in advanced site settings.
This is the first step in fully merging "Walled Garden" plugin into core Elgg engine.
git-svn-id: http://code.elgg.org/elgg/trunk@5981 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/site')
-rw-r--r-- | views/default/admin/site/advanced.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/views/default/admin/site/advanced.php b/views/default/admin/site/advanced.php index da7b98a1a..e8c6e9b9a 100644 --- a/views/default/admin/site/advanced.php +++ b/views/default/admin/site/advanced.php @@ -33,6 +33,14 @@ $form_body .= "<p>" . elgg_echo('installation:debug'); $form_body .= elgg_view('input/pulldown', array('options_values' => $debug_options, 'internalname' => 'debug', 'value' => $vars['config']->debug)); $form_body .= '</p>'; +$options = array( + 'options' => array(elgg_echo('installation:registration:label')), + 'internalname' => 'allow_registration', + 'value' => $vars['config']->allow_registration ? elgg_echo('installation:registration:label') : '', +); +$form_body .= '<p>' . elgg_echo('installation:registration:description'); +$form_body .= '<br />' .elgg_view('input/checkboxes', $options) . '</p>'; + $form_body .= "<p>" . elgg_echo('installation:httpslogin') . "<br />" .elgg_view("input/checkboxes", array('options' => array(elgg_echo('installation:httpslogin:label')), 'internalname' => 'https_login', 'value' => ($vars['config']->https_login ? elgg_echo('installation:httpslogin:label') : "") )) . "</p>"; $form_body .= "<p>" . elgg_echo('installation:disableapi') . "<br />"; |