]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add registration restrictions and privacy to site admin panel
authorEvan Prodromou <evan@status.net>
Mon, 9 Nov 2009 03:21:28 +0000 (22:21 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 9 Nov 2009 03:21:28 +0000 (22:21 -0500)
actions/siteadminpanel.php

index 2da26e4bd6db5353f7f56adc47714eb2f3370107..358c0b15fac88a6305ecf90f3cca035faa20aa5c 100644 (file)
@@ -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?'));
     }
 
     /**