diff options
Diffstat (limited to 'update/plugin/phpBB3/trunk/root/includes')
-rw-r--r-- | update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php | 11 |
1 files changed, 11 insertions, 0 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 9ca3b81..bd1965c 100644 --- a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php | |||
@@ -32,15 +32,26 @@ class acp_instadisc | |||
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_central_server', $_POST['central_server']); |
35 | set_config('id_username', $_POST['central_server_username']); | ||
36 | set_config('id_password', $_POST['central_server_password']); | ||
37 | set_config('id_activation_key', $_POST['central_server_activation']); | ||
35 | 38 | ||
36 | trigger_error('The changes you made to your InstaDisc settings have been saved!' . adm_back_link($this->u_action), E_USER_NOTICE); | 39 | trigger_error('The changes you made to your InstaDisc settings have been saved!' . adm_back_link($this->u_action), E_USER_NOTICE); |
37 | } else { | 40 | } else { |
38 | $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename']; | 41 | $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename']; |
39 | $idcs = isset($config['id_central_server']) ? $config['id_central_server'] : ''; | 42 | $idcs = isset($config['id_central_server']) ? $config['id_central_server'] : ''; |
43 | $idun = isset($config['id_username']) ? $config['id_username'] : ''; | ||
44 | $idps = isset($config['id_password']) ? $config['id_password'] : ''; | ||
45 | $idak = isset($config['id_activation_key']) ? $config['id_activation_key'] : ''; | ||
46 | $idsf = $config['server_protocol'] . $config['server_name'] . $config['script_path'] . '/subscription.php'; | ||
40 | 47 | ||
41 | $template->assign_vars(array( | 48 | $template->assign_vars(array( |
42 | 'S_SUBSCRIPTION_TITLE' => $idst, | 49 | 'S_SUBSCRIPTION_TITLE' => $idst, |
43 | 'S_CENTRAL_SERVER' => $idcs, | 50 | 'S_CENTRAL_SERVER' => $idcs, |
51 | 'S_USERNAME' => $idun, | ||
52 | 'S_PASSWORD' => $idps, | ||
53 | 'S_ACTIVATION' => $idak, | ||
54 | 'S_SUBSCRIPTION_FILE' => $idsf, | ||
44 | 'S_SUBMIT' => $this->u_action | 55 | 'S_SUBMIT' => $this->u_action |
45 | )); | 56 | )); |
46 | } | 57 | } |