diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php index ab84c67f35c55490a718c9ed3314adf00d4f3c55..7d52ca3db8216cbee1d136f7e6ef0ffa548d49d9 100644 --- a/inc/lang/en/lang.php +++ b/inc/lang/en/lang.php @@ -315,6 +315,7 @@ $lang['i_policy'] = 'Initial ACL policy'; $lang['i_pol0'] = 'Open Wiki (read, write, upload for everyone)'; $lang['i_pol1'] = 'Public Wiki (read for everyone, write and upload for registered users)'; $lang['i_pol2'] = 'Closed Wiki (read, write, upload for registered users only)'; +$lang['i_disablereg'] = 'Do not allow users to register themselves'; $lang['i_retry'] = 'Retry'; $lang['i_license'] = 'Please choose the license you want to put your content under:'; $lang['i_license_none'] = 'Do not show any license information'; diff --git a/install.php b/install.php index 82a47b037a3a88c17ed045e64d3780d29b333f0c..540e9c9a6fa9047322b8c637c5269591b8aaaa17 100644 --- a/install.php +++ b/install.php @@ -207,6 +207,10 @@ function print_form($d){ <option value="2" <?php echo ($d['policy'] == 2)?'selected="selected"':'' ?>><?php echo $lang['i_pol2']?></option> </select> + <label for="disablereg"> + <input type="checkbox" name="d[disablereg]" id="disablereg" <?php echo(($d['disablereg'] ? ' checked="checked"' : ''));?> /> + <?php echo $lang['i_disablereg']?> + </label> </fieldset> </fieldset> @@ -270,6 +274,7 @@ function check_data(&$d){ 'password' => '', 'confirm' => '', 'policy' => '0', + 'disablereg'=> '0', 'license' => 'cc-by-sa' ); global $lang; @@ -351,6 +356,9 @@ EOT; $output .= '$conf[\'useacl\'] = 1'.";\n"; $output .= "\$conf['superuser'] = '@admin';\n"; } + if($d['disablereg']){ + $output .= '$conf[\'disableactions\'] = \'register\''.";\n"; + } $ok = $ok && fileWrite(DOKU_LOCAL.'local.php',$output); if ($d['acl']) {