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.html34
-rw-r--r--update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php20
-rw-r--r--update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php8
-rw-r--r--update/plugin/phpBB3/trunk/root/instadisc.php38
-rw-r--r--update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php17
-rw-r--r--update/plugin/phpBB3/trunk/root/styles/prosilver/template/instadisc.html4
6 files changed, 21 insertions, 100 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 6e8249d..501fcd3 100644 --- a/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html +++ b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html
@@ -17,44 +17,24 @@
17 </DL> 17 </DL>
18 <DL> 18 <DL>
19 <DT> 19 <DT>
20 <LABEL FOR="subscription_file">{L_SUBSCRIPTION_FILE}</LABEL> 20 <LABEL FOR="series_url">{L_SERIES_URL}</LABEL>
21 <BR><SPAN>{L_SUBSCRIPTION_FILE_DESC}</SPAN> 21 <BR><SPAN>{L_SERIES_URL_DESC}</SPAN>
22 </DT> 22 </DT>
23 <DD>{S_SUBSCRIPTION_FILE}</DD> 23 <DD><INPUT NAME="series_url" TYPE="text" ID="series_url" MAXLENGTH="255" VALUE="{S_SERIES_URL}" SIZE="40"></DD>
24 </DL>
25 <DL>
26 <DT><label for="central_server">{L_CENTRAL_SERVER}:</label><BR>
27 <SPAN>{L_CENTRAL_SERVER_DESC}</SPAN>
28 </DT>
29 <DD><input name="central_server" type="text" id="central_server" maxlength="255" VALUE="{S_CENTRAL_SERVER}" SIZE="40"/></DD>
30 </DL>
31 <DL>
32 <DT>
33 <LABEL FOR="central_server_username">{L_USERNAME}</LABEL>
34 <BR><SPAN>{L_USERNAME_DESC}</SPAN>
35 </DT>
36 <DD><INPUT NAME="central_server_username" TYPE="text" ID="central_server_username" MAXLENGTH="255" VALUE="{S_USERNAME}" SIZE="40"></DD>
37 </DL>
38 <DL>
39 <DT>
40 <LABEL FOR="central_server_password">{L_PASSWORD}</LABEL>
41 <BR><SPAN>{L_PASSWORD_DESC}</SPAN>
42 </DT>
43 <DD><INPUT NAME="central_server_password" TYPE="password" ID="central_server_password" MAXLENGTH="255" VALUE="{S_PASSWORD}" SIZE="40"></DD>
44 </DL> 24 </DL>
45 <DL> 25 <DL>
46 <DT> 26 <DT>
47 <LABEL FOR="central_server_activation">{L_ACTIVATION}</LABEL> 27 <LABEL FOR="subscription_id">{L_SUBSCRIPTION_ID}</LABEL>
48 <BR><SPAN>{L_ACTIVATION_DESC}</SPAN> 28 <BR><SPAN>{L_SUBSCRIPTION_ID_DESC}</SPAN>
49 </DT> 29 </DT>
50 <DD><INPUT NAME="central_server_activation" TYPE="text" ID="central_server_activation" MAXLENGTH="255" VALUE="{S_ACTIVATION}" SIZE="40"></DD> 30 <DD><INPUT NAME="subscription_id" TYPE="text" ID="subscription_id" MAXLENGTH="255" VALUE="{S_SUBSCRIPTION_ID}" SIZE="40"></DD>
51 </DL> 31 </DL>
52 <DL> 32 <DL>
53 <DT> 33 <DT>
54 <LABEL FOR="encryption_key">{L_ENCRYPTION}</LABEL> 34 <LABEL FOR="encryption_key">{L_ENCRYPTION}</LABEL>
55 <BR><SPAN>{L_ENCRYPTION_DESC}</SPAN> 35 <BR><SPAN>{L_ENCRYPTION_DESC}</SPAN>
56 </DT> 36 </DT>
57 <DD><INPUT NAME="encryption_key" TYPE="text" ID="encryption_key" MAXLENGTH="255" VALUE="{S_ENCRYPTION}" SIZE="40"></DD> 37 <DD><INPUT NAME="encryption_key" TYPE="password" ID="encryption_key" MAXLENGTH="255" VALUE="{S_ENCRYPTION}" SIZE="40"></DD>
58 </DL> 38 </DL>
59 </fieldset> 39 </fieldset>
60 <p class="submit-buttons"> 40 <p class="submit-buttons">
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 d5bcbd1..b7fc583 100644 --- a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php
@@ -31,29 +31,21 @@ class acp_instadisc
31 { 31 {
32 // Add config to the database 32 // Add config to the database
33 set_config('id_subscription_title', $_POST['subscription_title']); 33 set_config('id_subscription_title', $_POST['subscription_title']);
34 set_config('id_central_server', $_POST['central_server']); 34 set_config('id_series_url', $_POST['series_url']);
35 set_config('id_username', $_POST['central_server_username']); 35 set_config('id_subscription_id', $_POST['subscription_id']);
36 set_config('id_password', $_POST['central_server_password']);
37 set_config('id_activation_key', $_POST['central_server_activation']);
38 set_config('id_encryption_key', $_POST['encryption_key']); 36 set_config('id_encryption_key', $_POST['encryption_key']);
39 37
40 trigger_error($user->lang['ID_CHANGES_SAVED'] . adm_back_link($this->u_action), E_USER_NOTICE); 38 trigger_error($user->lang['ID_CHANGES_SAVED'] . adm_back_link($this->u_action), E_USER_NOTICE);
41 } else { 39 } else {
42 $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename']; 40 $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename'];
43 $idcs = isset($config['id_central_server']) ? $config['id_central_server'] : ''; 41 $idsu = isset($config['id_series_url']) ? $config['id_series_url'] : '';
44 $idun = isset($config['id_username']) ? $config['id_username'] : ''; 42 $idsi = isset($config['id_subscription_id']) ? $config['id_subscription_id'] : '';
45 $idps = isset($config['id_password']) ? $config['id_password'] : '';
46 $idak = isset($config['id_activation_key']) ? $config['id_activation_key'] : '';
47 $idsf = generate_board_url() . '/instadisc.php';
48 $idec = isset($config['id_encryption_key']) ? $config['id_encryption_key'] : ''; 43 $idec = isset($config['id_encryption_key']) ? $config['id_encryption_key'] : '';
49 44
50 $template->assign_vars(array( 45 $template->assign_vars(array(
51 'S_SUBSCRIPTION_TITLE' => $idst, 46 'S_SUBSCRIPTION_TITLE' => $idst,
52 'S_CENTRAL_SERVER' => $idcs, 47 'S_SERIES_URL' => $idsu,
53 'S_USERNAME' => $idun, 48 'S_SUBSCRIPTION_ID' => $idsi,
54 'S_PASSWORD' => $idps,
55 'S_ACTIVATION' => $idak,
56 'S_SUBSCRIPTION_FILE' => $idsf,
57 'S_ENCRYPTION_KEY' => $idec, 49 'S_ENCRYPTION_KEY' => $idec,
58 'S_SUBMIT' => $this->u_action 50 'S_SUBMIT' => $this->u_action
59 )); 51 ));
diff --git a/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php b/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php index cfbe5d5..f7af802 100644 --- a/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php
@@ -65,11 +65,9 @@ function sendItem($title, $userID, $url, $fourm)
65 mcrypt_module_close($td); 65 mcrypt_module_close($td);
66 } 66 }
67 67
68 $client = new xmlrpc_client($config['id_central_server']); 68 $client = new xmlrpc_client('http://central.fourisland.com/xmlrpc.php');
69 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($config['id_username'], 'string'), 69 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($config['id_series_url'], 'string'),
70 new xmlrpcval(md5($config['id_username'] . ':' . md5($config['id_password']) . ':' . $verID), 'string'), 70 new xmlrpcval($config['id_subscription_id'], 'string'),
71 new xmlrpcval($verID, 'int'),
72 new xmlrpcval(generate_board_url() . '/', 'string'),
73 new xmlrpcval($title, 'string'), 71 new xmlrpcval($title, 'string'),
74 new xmlrpcval($author, 'string'), 72 new xmlrpcval($author, 'string'),
75 new xmlrpcval($url, 'string'), 73 new xmlrpcval($url, 'string'),
diff --git a/update/plugin/phpBB3/trunk/root/instadisc.php b/update/plugin/phpBB3/trunk/root/instadisc.php deleted file mode 100644 index 6cd00bb..0000000 --- a/update/plugin/phpBB3/trunk/root/instadisc.php +++ /dev/null
@@ -1,38 +0,0 @@
1<?php
2/**
3*
4* @package phpBB3
5* @version $Id: instadisc.php 2008-08-06 07:12:00Z hatkirby $
6* @version (c) 2008 Starla Insigna
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
8*
9*/
10
11/**
12* @ignore
13*/
14define('IN_PHPBB', true);
15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
17include($phpbb_root_path . 'common.' . $phpEx);
18include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
19
20// Start session
21$user->session_begin();
22$auth->acl($user->data);
23
24$user->setup('mods/instadisc', $forum_data['forum_style']);
25
26$template->set_filenames(array(
27 'body' => 'instadisc.html')
28);
29
30$template->assign_vars(array(
31 'S_SUBSCRIPTION' => (generate_board_url() . '/'),
32 'S_TITLE' => $config['id_subscription_title'],
33 'S_KEY' => $config['id_activation_key'],
34));
35
36page_footer();
37
38?>
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 c82e10d..f7570aa 100644 --- a/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php +++ b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php
@@ -38,21 +38,14 @@ $lang = array_merge($lang, array(
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',
42 'SUBSCRIPTION_FILE' => 'Subscription File URL',
43
44 'CENTRAL_SERVER' => 'Central Server',
45 'USERNAME' => 'Username',
46 'PASSWORD' => 'Password',
47 'ACTIVATION' => 'Activation Key',
48 41
42 'SUBSCRIPTION_TITLE' => 'Subscription Title',
43 'SERIES_URL' => 'Series Control URL',
44 'SUBSCRIPTION_ID' => 'Subscription ID',
49 'ENCRYPTION' => 'Encryption Key', 45 'ENCRYPTION' => 'Encryption Key',
50 46
51 'SUBSCRIPTION_FILE_DESC' => 'This is the URL of your subscription file', 47 'SERIES_URL_DESC' => 'This is the XML-RPC URL of your Series Control.',
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.', 48 'SUBSCRIPTION_ID' => 'This is this subscription's unique identifier on your Series Control.',
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.', 49 '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 50
58 'ID_CHANGES_SAVED' => 'The changes you made to your InstaDisc settings have been saved!', 51 'ID_CHANGES_SAVED' => 'The changes you made to your InstaDisc settings have been saved!',
diff --git a/update/plugin/phpBB3/trunk/root/styles/prosilver/template/instadisc.html b/update/plugin/phpBB3/trunk/root/styles/prosilver/template/instadisc.html deleted file mode 100644 index 1f0fc23..0000000 --- a/update/plugin/phpBB3/trunk/root/styles/prosilver/template/instadisc.html +++ /dev/null
@@ -1,4 +0,0 @@
1Subscription: {S_SUBSCRIPTION}{L_LN}
2Title: {S_TITLE}{L_LN}
3Category: forum-post{L_LN}
4Key: {S_KEY}