summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2013-11-17 12:43:22 -0800
committerAnika Henke <anika@selfthinker.org>2013-11-17 12:43:22 -0800
commitb5a4e4fb55eff9a1c6c300b61e073677f94fd6ec (patch)
treee108046a43ad3a5fd0b60dcfb3659e642d7b7cf1 /install.php
parentc77971973148991b27bd759146b195f39d797f45 (diff)
parent43c137edff65d5383d3e19fbbf50bc5045e4107a (diff)
downloadrpg-b5a4e4fb55eff9a1c6c300b61e073677f94fd6ec.tar.gz
rpg-b5a4e4fb55eff9a1c6c300b61e073677f94fd6ec.tar.bz2
Merge pull request #408 from splitbrain/approve-users-acl-policy
Add possibility to approve users in installer's ACL policy
Diffstat (limited to 'install.php')
-rw-r--r--install.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/install.php b/install.php
index 82a47b037..540e9c9a6 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']) {