site_access.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Advanced site settings, site access section.
  4. */
  5. // new user registration
  6. $allow_reg_input = elgg_view('input/checkbox', array(
  7. 'label' => elgg_echo('installation:registration:label'),
  8. 'name' => 'allow_registration',
  9. 'checked' => (bool)elgg_get_config('allow_registration'),
  10. ));
  11. // walled garden
  12. $walled_garen_input = elgg_view('input/checkbox', array(
  13. 'label' => elgg_echo('installation:walled_garden:label'),
  14. 'name' => 'walled_garden',
  15. 'checked' => (bool)elgg_get_config('walled_garden'),
  16. ));
  17. // https login
  18. $https_input = elgg_view("input/checkbox", array(
  19. 'label' => elgg_echo('installation:httpslogin:label'),
  20. 'name' => 'https_login',
  21. 'checked' => (bool)elgg_get_config('https_login'),
  22. ));
  23. ?>
  24. <fieldset class="elgg-fieldset" id="elgg-settings-advanced-site-access">
  25. <legend><?php echo elgg_echo('admin:legend:site_access'); ?></legend>
  26. <div>
  27. <?php echo $allow_reg_input; ?>
  28. <p class="elgg-text-help"><?php echo elgg_echo('installation:registration:description'); ?></p>
  29. </div>
  30. <div>
  31. <?php echo $walled_garen_input; ?>
  32. <p class="elgg-text-help"><?php echo elgg_echo('installation:walled_garden:description'); ?></p>
  33. </div>
  34. <div>
  35. <?php echo $https_input; ?>
  36. <p class="elgg-text-help"><?php echo elgg_echo('installation:httpslogin'); ?></p>
  37. </div>
  38. </fieldset>