diff options
Diffstat (limited to 'update')
3 files changed, 12 insertions, 0 deletions
diff --git a/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html index 387658a..a3e60da 100644 --- a/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html +++ b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html | |||
@@ -49,6 +49,13 @@ | |||
49 | </DT> | 49 | </DT> |
50 | <DD><INPUT NAME="central_server_activation" TYPE="text" ID="central_server_activation" MAXLENGTH="255" VALUE="{S_ACTIVATION}" SIZE="40"></DD> | 50 | <DD><INPUT NAME="central_server_activation" TYPE="text" ID="central_server_activation" MAXLENGTH="255" VALUE="{S_ACTIVATION}" SIZE="40"></DD> |
51 | </DL> | 51 | </DL> |
52 | <DL> | ||
53 | <DT> | ||
54 | <LABEL FOR="encryption_key">{L_ENCRYPTION}</LABEL> | ||
55 | <BR><SPAN>If you have the PHP module "mcrypt" installed, you can password protect this subscription so that users who wish to subscribe to it must provide the correct password. Leave this field blank if you do not wish to encrypt this subscription.</SPAN> | ||
56 | </DT> | ||
57 | <DD><INPUT NAME="encryption_key" TYPE="text" ID="encryption_key" MAXLENGTH="255" VALUE="{S_ENCRYPTION}" SIZE="40"></DD> | ||
58 | </DL> | ||
52 | </fieldset> | 59 | </fieldset> |
53 | <p class="submit-buttons"> | 60 | <p class="submit-buttons"> |
54 | <input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" /> | 61 | <input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" /> |
diff --git a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php index dc28771..71eaef1 100644 --- a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php | |||
@@ -35,6 +35,7 @@ class acp_instadisc | |||
35 | set_config('id_username', $_POST['central_server_username']); | 35 | set_config('id_username', $_POST['central_server_username']); |
36 | set_config('id_password', $_POST['central_server_password']); | 36 | set_config('id_password', $_POST['central_server_password']); |
37 | set_config('id_activation_key', $_POST['central_server_activation']); | 37 | set_config('id_activation_key', $_POST['central_server_activation']); |
38 | set_config('id_encryption_key', $_POST['encryption_key']); | ||
38 | 39 | ||
39 | trigger_error('The changes you made to your InstaDisc settings have been saved!' . adm_back_link($this->u_action), E_USER_NOTICE); | 40 | trigger_error('The changes you made to your InstaDisc settings have been saved!' . adm_back_link($this->u_action), E_USER_NOTICE); |
40 | } else { | 41 | } else { |
@@ -44,6 +45,7 @@ class acp_instadisc | |||
44 | $idps = isset($config['id_password']) ? $config['id_password'] : ''; | 45 | $idps = isset($config['id_password']) ? $config['id_password'] : ''; |
45 | $idak = isset($config['id_activation_key']) ? $config['id_activation_key'] : ''; | 46 | $idak = isset($config['id_activation_key']) ? $config['id_activation_key'] : ''; |
46 | $idsf = generate_board_url() . '/instadisc.php'; | 47 | $idsf = generate_board_url() . '/instadisc.php'; |
48 | $idec = isset($config['id_encryption_key']) ? $config['id_encryption_key'] : ''; | ||
47 | 49 | ||
48 | $template->assign_vars(array( | 50 | $template->assign_vars(array( |
49 | 'S_SUBSCRIPTION_TITLE' => $idst, | 51 | 'S_SUBSCRIPTION_TITLE' => $idst, |
@@ -52,6 +54,7 @@ class acp_instadisc | |||
52 | 'S_PASSWORD' => $idps, | 54 | 'S_PASSWORD' => $idps, |
53 | 'S_ACTIVATION' => $idak, | 55 | 'S_ACTIVATION' => $idak, |
54 | 'S_SUBSCRIPTION_FILE' => $idsf, | 56 | 'S_SUBSCRIPTION_FILE' => $idsf, |
57 | 'S_ENCRYPTION_KEY' => $idec, | ||
55 | 'S_SUBMIT' => $this->u_action | 58 | 'S_SUBMIT' => $this->u_action |
56 | )); | 59 | )); |
57 | } | 60 | } |
diff --git a/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php index aa90c6e..17023c6 100644 --- a/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php +++ b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php | |||
@@ -46,6 +46,8 @@ $lang = array_merge($lang, array( | |||
46 | 'PASSWORD' => 'Password', | 46 | 'PASSWORD' => 'Password', |
47 | 'ACTIVATION' => 'Activation Key', | 47 | 'ACTIVATION' => 'Activation Key', |
48 | 48 | ||
49 | 'ENCRYPTION' => 'Encryption Key', | ||
50 | |||
49 | 'LN' => "\n", | 51 | 'LN' => "\n", |
50 | )); | 52 | )); |
51 | 53 | ||