diff options
author | Anika Henke <anika@selfthinker.org> | 2013-11-17 19:55:02 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2013-11-17 19:55:02 +0000 |
commit | 43c137edff65d5383d3e19fbbf50bc5045e4107a (patch) | |
tree | a32d091109e7f33aa122cf4598d7d43ea52a221f /install.php | |
parent | fc84dec2c8d52379fa32a38d1004acf0296a0ef7 (diff) | |
download | rpg-43c137edff65d5383d3e19fbbf50bc5045e4107a.tar.gz rpg-43c137edff65d5383d3e19fbbf50bc5045e4107a.tar.bz2 |
changed user approval option to disable registration option in installer
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/install.php b/install.php index 657a67d55..540e9c9a6 100644 --- a/install.php +++ b/install.php @@ -207,9 +207,9 @@ function print_form($d){ <option value="2" <?php echo ($d['policy'] == 2)?'selected="selected"':'' ?>><?php echo $lang['i_pol2']?></option> </select> - <label for="approve"> - <input type="checkbox" name="d[approve]" id="approve" <?php echo(($d['approve'] ? ' checked="checked"' : ''));?> /> - <?php echo $lang['i_policyapprove']?> + <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> @@ -274,7 +274,7 @@ function check_data(&$d){ 'password' => '', 'confirm' => '', 'policy' => '0', - 'approve' => '0', + 'disablereg'=> '0', 'license' => 'cc-by-sa' ); global $lang; @@ -356,8 +356,8 @@ EOT; $output .= '$conf[\'useacl\'] = 1'.";\n"; $output .= "\$conf['superuser'] = '@admin';\n"; } - if($d['approve']){ - $output .= '$conf[\'defaultgroup\'] = \'guest\''.";\n"; + if($d['disablereg']){ + $output .= '$conf[\'disableactions\'] = \'register\''.";\n"; } $ok = $ok && fileWrite(DOKU_LOCAL.'local.php',$output); |