about summary refs log tree commit diff stats
path: root/update/plugin/phpBB3/trunk/root/includes/acp
diff options
context:
space:
mode:
Diffstat (limited to 'update/plugin/phpBB3/trunk/root/includes/acp')
-rw-r--r--update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php18
1 files changed, 11 insertions, 7 deletions
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 }