diff options
author | Evan Prodromou <evan@status.net> | 2009-11-08 22:21:28 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-11-08 22:21:28 -0500 |
commit | badd8ccccadb4eb3697c8d68619e4ec931b947c5 (patch) | |
tree | 968343b657b91fb6fd4faaa9b52af62c45b5f4be /actions/siteadminpanel.php | |
parent | 33f931d5277e0d72f5c9082d176a1a574f033e87 (diff) |
add registration restrictions and privacy to site admin panel
Diffstat (limited to 'actions/siteadminpanel.php')
-rw-r--r-- | actions/siteadminpanel.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/actions/siteadminpanel.php b/actions/siteadminpanel.php index 2da26e4bd..358c0b15f 100644 --- a/actions/siteadminpanel.php +++ b/actions/siteadminpanel.php @@ -91,7 +91,8 @@ class SiteadminpanelAction extends AdminPanelAction function saveSettings() { static $settings = array('name', 'broughtby', 'broughtbyurl', - 'email', 'timezone', 'language'); + 'email', 'timezone', 'language', + 'closed', 'inviteonly', 'private'); $values = array(); @@ -220,6 +221,18 @@ class SiteAdminPanelForm extends Form $this->out->dropdown('language', _('Language'), get_nice_language_list(), _('Default site language'), false, $this->value('language')); + + $this->out->checkbox('closed', _('Closed'), + (bool) $this->value('closed'), + _('Is registration on this site prohibited?')); + + $this->out->checkbox('inviteonly', _('Invite-only'), + (bool) $this->value('inviteonly'), + _('Is registration on this site only open to invited users?')); + + $this->out->checkbox('private', _('Private'), + (bool) $this->value('private'), + _('Prohibit anonymous users (not logged in) from viewing site?')); } /** |