about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-09-19 20:25:09 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-09-19 20:25:09 +0000
commitaa169c57725ebf148e9b98af5117a2e0a067eb1b (patch)
tree07d0ad0c870f1f1931fad8c89ba03244e61e7c77
parent3541cadd8b59dcc040570c64674350b21eb592af (diff)
downloadinstadisc-aa169c57725ebf148e9b98af5117a2e0a067eb1b.tar.gz
instadisc-aa169c57725ebf148e9b98af5117a2e0a067eb1b.tar.bz2
instadisc-aa169c57725ebf148e9b98af5117a2e0a067eb1b.zip
Update: Removed Series-related code
Refs #56
-rw-r--r--update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html17
-rw-r--r--update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php9
-rw-r--r--update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php3
-rw-r--r--update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php6
4 files changed, 10 insertions, 25 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 501fcd3..a3906ee 100644 --- a/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html +++ b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html
@@ -4,9 +4,7 @@
4 4
5<H1>{L_INSTADISC}</H1> 5<H1>{L_INSTADISC}</H1>
6 6
7<P>{L_INSTADISC_EXPLAIN} 7<P>{L_INSTADISC_EXPLAIN}<A HREF="http://central.fourisland.com/release/update/phpBB3/">{L_INSTADISC_LINK_TEXT}</A></P>
8<A HREF="http://fourisland.com/projects/instadisc/wiki/Update/phpBB3">{L_INSTADISC_LINK_TEXT}</A>
9</P>
10 8
11<form id="acp_instadisc" method="post" action="{U_ACTION}"> 9<form id="acp_instadisc" method="post" action="{U_ACTION}">
12 <fieldset> 10 <fieldset>
@@ -17,17 +15,10 @@
17 </DL> 15 </DL>
18 <DL> 16 <DL>
19 <DT> 17 <DT>
20 <LABEL FOR="series_url">{L_SERIES_URL}</LABEL> 18 <LABEL FOR="series_url">{L_SUBSCRIPTION_URL}</LABEL>
21 <BR><SPAN>{L_SERIES_URL_DESC}</SPAN> 19 <BR><SPAN>{L_SUBSCRIPTION_URL_DESC}</SPAN>
22 </DT> 20 </DT>
23 <DD><INPUT NAME="series_url" TYPE="text" ID="series_url" MAXLENGTH="255" VALUE="{S_SERIES_URL}" SIZE="40"></DD> 21 <DD><INPUT NAME="subscription_url" TYPE="text" ID="subscription_url" MAXLENGTH="255" VALUE="{S_SUBSCRIPTION_URL}" SIZE="40"></DD>
24 </DL>
25 <DL>
26 <DT>
27 <LABEL FOR="subscription_id">{L_SUBSCRIPTION_ID}</LABEL>
28 <BR><SPAN>{L_SUBSCRIPTION_ID_DESC}</SPAN>
29 </DT>
30 <DD><INPUT NAME="subscription_id" TYPE="text" ID="subscription_id" MAXLENGTH="255" VALUE="{S_SUBSCRIPTION_ID}" SIZE="40"></DD>
31 </DL> 22 </DL>
32 <DL> 23 <DL>
33 <DT> 24 <DT>
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 b7fc583..f93ece6 100644 --- a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php
@@ -31,21 +31,18 @@ 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_series_url', $_POST['series_url']); 34 set_config('id_subscription_url', $_POST['subscription_url']);
35 set_config('id_subscription_id', $_POST['subscription_id']);
36 set_config('id_encryption_key', $_POST['encryption_key']); 35 set_config('id_encryption_key', $_POST['encryption_key']);
37 36
38 trigger_error($user->lang['ID_CHANGES_SAVED'] . adm_back_link($this->u_action), E_USER_NOTICE); 37 trigger_error($user->lang['ID_CHANGES_SAVED'] . adm_back_link($this->u_action), E_USER_NOTICE);
39 } else { 38 } else {
40 $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename']; 39 $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename'];
41 $idsu = isset($config['id_series_url']) ? $config['id_series_url'] : ''; 40 $idsu = isset($config['id_subscription_url']) ? $config['id_subscription_url'] : '';
42 $idsi = isset($config['id_subscription_id']) ? $config['id_subscription_id'] : '';
43 $idec = isset($config['id_encryption_key']) ? $config['id_encryption_key'] : ''; 41 $idec = isset($config['id_encryption_key']) ? $config['id_encryption_key'] : '';
44 42
45 $template->assign_vars(array( 43 $template->assign_vars(array(
46 'S_SUBSCRIPTION_TITLE' => $idst, 44 'S_SUBSCRIPTION_TITLE' => $idst,
47 'S_SERIES_URL' => $idsu, 45 'S_SUBSCRIPTION_URL' => $idsu,
48 'S_SUBSCRIPTION_ID' => $idsi,
49 'S_ENCRYPTION_KEY' => $idec, 46 'S_ENCRYPTION_KEY' => $idec,
50 'S_SUBMIT' => $this->u_action 47 'S_SUBMIT' => $this->u_action
51 )); 48 ));
diff --git a/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php b/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php index f7af802..738cab9 100644 --- a/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/functions_instadisc.php
@@ -66,8 +66,7 @@ function sendItem($title, $userID, $url, $fourm)
66 } 66 }
67 67
68 $client = new xmlrpc_client('http://central.fourisland.com/xmlrpc.php'); 68 $client = new xmlrpc_client('http://central.fourisland.com/xmlrpc.php');
69 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($config['id_series_url'], 'string'), 69 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($config['id_subscription_url'], 'string'),
70 new xmlrpcval($config['id_subscription_id'], 'string'),
71 new xmlrpcval($title, 'string'), 70 new xmlrpcval($title, 'string'),
72 new xmlrpcval($author, 'string'), 71 new xmlrpcval($author, 'string'),
73 new xmlrpcval($url, 'string'), 72 new xmlrpcval($url, 'string'),
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 f7570aa..445290e 100644 --- a/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php +++ b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php
@@ -40,12 +40,10 @@ $lang = array_merge($lang, array(
40 'SUBSCRIPTION' => 'Subscription', 40 'SUBSCRIPTION' => 'Subscription',
41 41
42 'SUBSCRIPTION_TITLE' => 'Subscription Title', 42 'SUBSCRIPTION_TITLE' => 'Subscription Title',
43 'SERIES_URL' => 'Series Control URL', 43 'SUBSCRIPTION_URL' => 'Subscription URL',
44 'SUBSCRIPTION_ID' => 'Subscription ID',
45 'ENCRYPTION' => 'Encryption Key', 44 'ENCRYPTION' => 'Encryption Key',
46 45
47 'SERIES_URL_DESC' => 'This is the XML-RPC URL of your Series Control.', 46 'SUBSCRIPTION_URL_DESC' => 'This is a unique URI used to identify your subscription.',
48 'SUBSCRIPTION_ID' => 'This is this subscription's unique identifier on your Series Control.',
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.', 47 '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.',
50 48
51 'ID_CHANGES_SAVED' => 'The changes you made to your InstaDisc settings have been saved!', 49 'ID_CHANGES_SAVED' => 'The changes you made to your InstaDisc settings have been saved!',