diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-06 01:59:52 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-06 01:59:52 +0000 |
commit | 11bb0e1e6e0fd0effa8ab9b9fe02bda3405776a0 (patch) | |
tree | dfd8fb08127793b8fed61b8bd172d22107314911 /update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php | |
parent | 4151ceff62e900e4d0bcf7f7a284bce89289b1ce (diff) | |
download | instadisc-11bb0e1e6e0fd0effa8ab9b9fe02bda3405776a0.tar.gz instadisc-11bb0e1e6e0fd0effa8ab9b9fe02bda3405776a0.tar.bz2 instadisc-11bb0e1e6e0fd0effa8ab9b9fe02bda3405776a0.zip |
Update: Completed phpBB3 plugin's ACP
Also used a new method of providing the subscription file's URL as static text instead inside a text box. Refs #7
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.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 | } |