summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'install.php')
-rw-r--r--install.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/install.php b/install.php
index ab0fad121..5cc8b0c02 100644
--- a/install.php
+++ b/install.php
@@ -56,6 +56,7 @@ $dokuwiki_hash = array(
'2012-01-25' => '72c083c73608fc43c586901fd5dabb74',
'2012-09-10' => 'eb0b3fc90056fbc12bac6f49f7764df3',
'2013-05-10' => '7b62b75245f57f122d3e0f8ed7989623',
+ '2013-11-18' => '263c76af309fbf083867c18a34ff5214',
);
@@ -148,8 +149,8 @@ header('Content-Type: text/html; charset=utf-8');
<div style="clear: both">
- <a href="http://dokuwiki.org/"><img src="lib/tpl/default/images/button-dw.png" alt="driven by DokuWiki" /></a>
- <a href="http://www.php.net"><img src="lib/tpl/default/images/button-php.gif" alt="powered by PHP" /></a>
+ <a href="http://dokuwiki.org/"><img src="lib/tpl/dokuwiki/images/button-dw.png" alt="driven by DokuWiki" /></a>
+ <a href="http://www.php.net"><img src="lib/tpl/dokuwiki/images/button-php.gif" alt="powered by PHP" /></a>
</div>
</body>
</html>
@@ -206,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="allowreg">
+ <input type="checkbox" name="d[allowreg]" id="allowreg" <?php echo(($d['allowreg'] ? ' checked="checked"' : ''));?> />
+ <?php echo $lang['i_allowreg']?>
+ </label>
</fieldset>
</fieldset>
@@ -269,6 +274,7 @@ function check_data(&$d){
'password' => '',
'confirm' => '',
'policy' => '0',
+ 'allowreg' => '0',
'license' => 'cc-by-sa'
);
global $lang;
@@ -350,6 +356,9 @@ EOT;
$output .= '$conf[\'useacl\'] = 1'.";\n";
$output .= "\$conf['superuser'] = '@admin';\n";
}
+ if(!$d['allowreg']){
+ $output .= '$conf[\'disableactions\'] = \'register\''.";\n";
+ }
$ok = $ok && fileWrite(DOKU_LOCAL.'local.php',$output);
if ($d['acl']) {