diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-12-16 11:33:40 -0800 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-12-16 11:33:40 -0800 |
commit | 660299a8c74d62fe8de38a1071b2efd392c08436 (patch) | |
tree | 170bc41abf3fcdeccc20fb5cdde7a6cb6ef10016 | |
parent | 3aebecb87adec2b423f333c87c1cedc12938cd18 (diff) | |
parent | e93f702b5fe5b7ec5a39c1a080669c8a4eb7d965 (diff) | |
download | rpg-660299a8c74d62fe8de38a1071b2efd392c08436.tar.gz rpg-660299a8c74d62fe8de38a1071b2efd392c08436.tar.bz2 |
Merge pull request #149 from splitbrain/installer
added option to enable automatic popularity data in installer
-rw-r--r-- | inc/lang/en/lang.php | 2 | ||||
-rw-r--r-- | install.php | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php index 6ea5acec0..144faf4e1 100644 --- a/inc/lang/en/lang.php +++ b/inc/lang/en/lang.php @@ -312,6 +312,8 @@ $lang['i_pol2'] = 'Closed Wiki (read, write, upload for registere $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'; +$lang['i_pop_field'] = 'Please, help us to improve the DokuWiki experience:'; +$lang['i_pop_label'] = 'Once a month, send anonymous usage data to the DokuWiki developers'; $lang['recent_global'] = 'You\'re currently watching the changes inside the <b>%s</b> namespace. You can also <a href="%s">view the recent changes of the whole wiki</a>.'; $lang['years'] = '%d years ago'; diff --git a/install.php b/install.php index f2bc1a26d..f54c25207 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/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; } |