diff options
Diffstat (limited to 'update')
3 files changed, 26 insertions, 11 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 2722623..1322f24 100644 --- a/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html +++ b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html | |||
@@ -8,12 +8,18 @@ | |||
8 | <A HREF="http://fourisland.com/projects/instadisc/wiki/Update/phpBB3">{L_INSTADISC_LINK_TEXT}</A> | 8 | <A HREF="http://fourisland.com/projects/instadisc/wiki/Update/phpBB3">{L_INSTADISC_LINK_TEXT}</A> |
9 | </P> | 9 | </P> |
10 | 10 | ||
11 | <form id="acp_hello" method="post" action="{U_ACTION}"> | 11 | <form id="acp_instadisc" method="post" action="{U_ACTION}"> |
12 | <fieldset> | 12 | <fieldset> |
13 | <legend>{L_HELLO} {S_HELLO}</legend> | 13 | <legend>{L_INSTADISC} {L_SUBSCRIPTION}</legend> |
14 | <dl> | 14 | <dl> |
15 | <dt><label for="hello">{L_HELLO_WHO}:</label></dt> | 15 | <dt><label for="subscription_title">{L_SUBSCRIPTION_TITLE}:</label></dt> |
16 | <dd><input name="hello" type="text" id="hello" maxlength="255" /></dd> | 16 | <dd><input name="subscription_title" type="text" id="subscription_title" maxlength="255" VALUE="{S_SUBSCRIPTION_TITLE}" SIZE="40"/></dd> |
17 | </DL> | ||
18 | <DL> | ||
19 | <dt><label for="central_server">{L_CENTRAL_SERVER}:</label><BR> | ||
20 | <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> | ||
21 | </dt> | ||
22 | <dd><input name="central_server" type="text" id="central_server" maxlength="255" VALUE="{S_CENTRAL_SERVER}" SIZE="40"/></dd> | ||
17 | </dl> | 23 | </dl> |
18 | 24 | ||
19 | </fieldset> | 25 | </fieldset> |
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 77b9b75..9ca3b81 100644 --- a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php | |||
@@ -25,19 +25,23 @@ 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 | |||
29 | // Set up general vars | ||
30 | $greeter = request_var('hello', '', true); | ||
31 | $submit = isset($_POST['submit']) ? true : false; | 28 | $submit = isset($_POST['submit']) ? true : false; |
32 | $hello = 'Starla'; | ||
33 | 29 | ||
34 | if ($submit) | 30 | if ($submit) |
35 | { | 31 | { |
36 | trigger_error(sprintf($user->lang['SAY_HELLO'], $greeter, $hello) . adm_back_link($this->u_action), E_USER_WARNING); | 32 | // Add config to the database |
33 | set_config('id_subscription_title', $_POST['subscription_title']); | ||
34 | set_config('id_central_server', $_POST['central_server']); | ||
35 | |||
36 | trigger_error('The changes you made to your InstaDisc settings have been saved!' . adm_back_link($this->u_action), E_USER_NOTICE); | ||
37 | } else { | 37 | } else { |
38 | $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename']; | ||
39 | $idcs = isset($config['id_central_server']) ? $config['id_central_server'] : ''; | ||
40 | |||
38 | $template->assign_vars(array( | 41 | $template->assign_vars(array( |
39 | 'S_HELLO' => $hello, | 42 | 'S_SUBSCRIPTION_TITLE' => $idst, |
40 | 'S_SUBMIT' => $this->u_action | 43 | 'S_CENTRAL_SERVER' => $idcs, |
44 | 'S_SUBMIT' => $this->u_action | ||
41 | )); | 45 | )); |
42 | } | 46 | } |
43 | } | 47 | } |
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 629adba..a9d51a8 100644 --- a/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php +++ b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php | |||
@@ -36,6 +36,11 @@ $lang = array_merge($lang, array( | |||
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 | |||
40 | 'SUBSCRIPTION' => 'Subscription', | ||
41 | 'SUBSCRIPTION_TITLE' => 'Subscription Title', | ||
42 | |||
43 | 'CENTRAL_SERVER' => 'Central Server', | ||
39 | )); | 44 | )); |
40 | 45 | ||
41 | ?> | 46 | ?> |