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