From 11bb0e1e6e0fd0effa8ab9b9fe02bda3405776a0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 6 Aug 2008 01:59:52 +0000 Subject: 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 --- .../plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php') 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 // Add config to the database set_config('id_subscription_title', $_POST['subscription_title']); set_config('id_central_server', $_POST['central_server']); + set_config('id_username', $_POST['central_server_username']); + set_config('id_password', $_POST['central_server_password']); + set_config('id_activation_key', $_POST['central_server_activation']); trigger_error('The changes you made to your InstaDisc settings have been saved!' . adm_back_link($this->u_action), E_USER_NOTICE); } else { $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename']; $idcs = isset($config['id_central_server']) ? $config['id_central_server'] : ''; + $idun = isset($config['id_username']) ? $config['id_username'] : ''; + $idps = isset($config['id_password']) ? $config['id_password'] : ''; + $idak = isset($config['id_activation_key']) ? $config['id_activation_key'] : ''; + $idsf = $config['server_protocol'] . $config['server_name'] . $config['script_path'] . '/subscription.php'; $template->assign_vars(array( 'S_SUBSCRIPTION_TITLE' => $idst, 'S_CENTRAL_SERVER' => $idcs, + 'S_USERNAME' => $idun, + 'S_PASSWORD' => $idps, + 'S_ACTIVATION' => $idak, + 'S_SUBSCRIPTION_FILE' => $idsf, 'S_SUBMIT' => $this->u_action )); } -- cgit 1.4.1