about summary refs log tree commit diff stats
path: root/update/plugin/phpBB3/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'update/plugin/phpBB3/trunk')
-rw-r--r--update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html20
-rw-r--r--update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php4
-rw-r--r--update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php33
3 files changed, 33 insertions, 24 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 a3e60da..6e8249d 100644 --- a/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html +++ b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html
@@ -18,41 +18,41 @@
18 <DL> 18 <DL>
19 <DT> 19 <DT>
20 <LABEL FOR="subscription_file">{L_SUBSCRIPTION_FILE}</LABEL> 20 <LABEL FOR="subscription_file">{L_SUBSCRIPTION_FILE}</LABEL>
21 <BR><SPAN>This is the URL of your subscription file</SPAN> 21 <BR><SPAN>{L_SUBSCRIPTION_FILE_DESC}</SPAN>
22 </DT> 22 </DT>
23 <DD>{S_SUBSCRIPTION_FILE}</DD> 23 <DD>{S_SUBSCRIPTION_FILE}</DD>
24 </DL> 24 </DL>
25 <DL> 25 <DL>
26 <dt><label for="central_server">{L_CENTRAL_SERVER}:</label><BR> 26 <DT><label for="central_server">{L_CENTRAL_SERVER}:</label><BR>
27 <SPAN>This is the Central Server's XML-RPC URL. They should have provided this for you in an email and also on their site. </SPAN> 27 <SPAN>{L_CENTRAL_SERVER_DESC}</SPAN>
28 </dt> 28 </DT>
29 <dd><input name="central_server" type="text" id="central_server" maxlength="255" VALUE="{S_CENTRAL_SERVER}" SIZE="40"/></dd> 29 <DD><input name="central_server" type="text" id="central_server" maxlength="255" VALUE="{S_CENTRAL_SERVER}" SIZE="40"/></DD>
30 </dl> 30 </DL>
31 <DL> 31 <DL>
32 <DT> 32 <DT>
33 <LABEL FOR="central_server_username">{L_USERNAME}</LABEL> 33 <LABEL FOR="central_server_username">{L_USERNAME}</LABEL>
34 <BR><SPAN>Enter the username you registered for at your Central Server</SPAN> 34 <BR><SPAN>{L_USERNAME_DESC}</SPAN>
35 </DT> 35 </DT>
36 <DD><INPUT NAME="central_server_username" TYPE="text" ID="central_server_username" MAXLENGTH="255" VALUE="{S_USERNAME}" SIZE="40"></DD> 36 <DD><INPUT NAME="central_server_username" TYPE="text" ID="central_server_username" MAXLENGTH="255" VALUE="{S_USERNAME}" SIZE="40"></DD>
37 </DL> 37 </DL>
38 <DL> 38 <DL>
39 <DT> 39 <DT>
40 <LABEL FOR="central_server_password">{L_PASSWORD}</LABEL> 40 <LABEL FOR="central_server_password">{L_PASSWORD}</LABEL>
41 <BR><SPAN>Enter the password to go with the username above</SPAN> 41 <BR><SPAN>{L_PASSWORD_DESC}</SPAN>
42 </DT> 42 </DT>
43 <DD><INPUT NAME="central_server_password" TYPE="password" ID="central_server_password" MAXLENGTH="255" VALUE="{S_PASSWORD}" SIZE="40"></DD> 43 <DD><INPUT NAME="central_server_password" TYPE="password" ID="central_server_password" MAXLENGTH="255" VALUE="{S_PASSWORD}" SIZE="40"></DD>
44 </DL> 44 </DL>
45 <DL> 45 <DL>
46 <DT> 46 <DT>
47 <LABEL FOR="central_server_activation">{L_ACTIVATION}</LABEL> 47 <LABEL FOR="central_server_activation">{L_ACTIVATION}</LABEL>
48 <BR><SPAN>After submitting your subscription for sponsership at your Central Server, it should provide you with an Activation Key</SPAN> 48 <BR><SPAN>{L_ACTIVATION_DESC}</SPAN>
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> 52 <DL>
53 <DT> 53 <DT>
54 <LABEL FOR="encryption_key">{L_ENCRYPTION}</LABEL> 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> 55 <BR><SPAN>{L_ENCRYPTION_DESC}</SPAN>
56 </DT> 56 </DT>
57 <DD><INPUT NAME="encryption_key" TYPE="text" ID="encryption_key" MAXLENGTH="255" VALUE="{S_ENCRYPTION}" SIZE="40"></DD> 57 <DD><INPUT NAME="encryption_key" TYPE="text" ID="encryption_key" MAXLENGTH="255" VALUE="{S_ENCRYPTION}" SIZE="40"></DD>
58 </DL> 58 </DL>
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 71eaef1..d5bcbd1 100644 --- a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php
@@ -25,7 +25,7 @@ class acp_instadisc
25 // Set up the page 25 // Set up the page
26 $this->tpl_name = 'acp_instadisc'; 26 $this->tpl_name = 'acp_instadisc';
27 $this->page_title = 'ACP_INSTADISC'; 27 $this->page_title = 'ACP_INSTADISC';
28 $submit = isset($_POST['submit']) ? true : false; 28 $submit = isset($_POST['submit']) ? true : false;
29 29
30 if ($submit) 30 if ($submit)
31 { 31 {
@@ -37,7 +37,7 @@ class acp_instadisc
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 set_config('id_encryption_key', $_POST['encryption_key']);
39 39
40 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($user->lang['ID_CHANGES_SAVED'] . adm_back_link($this->u_action), E_USER_NOTICE);
41 } else { 41 } else {
42 $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename']; 42 $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename'];
43 $idcs = isset($config['id_central_server']) ? $config['id_central_server'] : ''; 43 $idcs = isset($config['id_central_server']) ? $config['id_central_server'] : '';
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 17023c6..c82e10d 100644 --- a/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php +++ b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php
@@ -33,22 +33,31 @@ if (empty($lang) || !is_array($lang))
33$lang = array_merge($lang, array( 33$lang = array_merge($lang, array(
34 'ACP_INSTADISC' => 'InstaDisc', 34 'ACP_INSTADISC' => 'InstaDisc',
35 35
36 'INSTADISC' => 'InstaDisc', 36 'INSTADISC' => 'InstaDisc',
37 'INSTADISC_EXPLAIN' => 'Welcome to the InstaDisc Update Server admin panel. To set up your subscriptions, you have to do a few things. For more information, see', 37 'INSTADISC_EXPLAIN' => 'Welcome to the InstaDisc Update Server admin panel. To set up your subscriptions, you have to do a few things. For more information, see',
38 'INSTADISC_LINK_TEXT' => 'the InstaDisc phpBB3 plugin page', 38 'INSTADISC_LINK_TEXT' => 'the InstaDisc phpBB3 plugin page',
39 39
40 'SUBSCRIPTION' => 'Subscription', 40 'SUBSCRIPTION' => 'Subscription',
41 'SUBSCRIPTION_TITLE' => 'Subscription Title', 41 'SUBSCRIPTION_TITLE' => 'Subscription Title',
42 'SUBSCRIPTION_FILE' => 'Subscription File URL', 42 'SUBSCRIPTION_FILE' => 'Subscription File URL',
43 43
44 'CENTRAL_SERVER' => 'Central Server', 44 'CENTRAL_SERVER' => 'Central Server',
45 'USERNAME' => 'Username', 45 'USERNAME' => 'Username',
46 'PASSWORD' => 'Password', 46 'PASSWORD' => 'Password',
47 'ACTIVATION' => 'Activation Key', 47 'ACTIVATION' => 'Activation Key',
48 48
49 'ENCRYPTION' => 'Encryption Key', 49 'ENCRYPTION' => 'Encryption Key',
50 50
51 'LN' => "\n", 51 'SUBSCRIPTION_FILE_DESC' => 'This is the URL of your subscription file',
52 'CENTRAL_SERVER_DESC' => 'This is the Central Server\'s XML-RPC URL. They should have provided this for you in an email and also on their site.',
53 'USERNAME_DESC' => 'Enter the username you registered for at your Central Server',
54 'PASSWORD_DESC' => 'Enter the password to go with the username above',
55 'ACTIVATION_DESC' => 'After submitting your subscription for sponsership at your Central Server, it should provide you with an Activation Key',
56 'ENCRYPTION_DESC' => '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.',
57
58 'ID_CHANGES_SAVED' => 'The changes you made to your InstaDisc settings have been saved!',
59
60 'LN' => "\n",
52)); 61));
53 62
54?> 63?>