summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-12-07 17:46:16 +0100
committerAndreas Gohr <andi@splitbrain.org>2012-12-07 17:46:16 +0100
commit3a0852d932a09ba01dcbcf2d371febf451f9f00c (patch)
tree475fa6e8f626555db591782d06879d6450e06e07 /install.php
parent4f4c6fd5079db8beb50ea9b9aa08351a49a57d21 (diff)
downloadrpg-3a0852d932a09ba01dcbcf2d371febf451f9f00c.tar.gz
rpg-3a0852d932a09ba01dcbcf2d371febf451f9f00c.tar.bz2
added option to enable automatic popularity data in installer
Diffstat (limited to 'install.php')
-rw-r--r--install.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/install.php b/install.php
index f2bc1a26d..8f00d9746 100644
--- a/install.php
+++ b/install.php
@@ -167,6 +167,7 @@ function print_form($d){
$d = array_map('htmlspecialchars',$d);
if(!isset($d['acl'])) $d['acl']=1;
+ if(!isset($d['pop'])) $d['pop']=1;
?>
<form action="" method="post">
@@ -223,6 +224,14 @@ function print_form($d){
?>
</fieldset>
+ <fieldset>
+ <p><?php echo $lang['i_pop_field']?></p>
+ <label for="pop">
+ <input type="checkbox" name="d[pop]" id="pop" <?php echo(($d['pop'] ? ' checked="checked"' : ''));?> />
+ <?php echo $lang['i_pop_label']?> <a href="http://www.dokuwiki.org/plugin:popularity" target="_blank"><sup>[?]</sup></a>
+ </label>
+ </fieldset>
+
</fieldset>
<fieldset id="process">
<input class="button" type="submit" name="submit" value="<?php echo $lang['btn_save']?>" />
@@ -376,6 +385,12 @@ EOT;
}
$ok = $ok && fileWrite(DOKU_LOCAL.'acl.auth.php', $output);
}
+
+ // enable popularity submission
+ if($d['pop']){
+ @touch(DOKU_INC.'data/cache/autosubmit.txt');
+ }
+
return $ok;
}