about summary refs log tree commit diff stats
path: root/update/plugin/phpBB3/trunk/root/includes/acp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-06 01:40:15 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-06 01:40:15 +0000
commit4151ceff62e900e4d0bcf7f7a284bce89289b1ce (patch)
tree6ed9fde5cbc9157c9c873a348a3c0645341ba035 /update/plugin/phpBB3/trunk/root/includes/acp
parent28dc434be00db44ebd028fc7663fd794a5a4e964 (diff)
downloadinstadisc-4151ceff62e900e4d0bcf7f7a284bce89289b1ce.tar.gz
instadisc-4151ceff62e900e4d0bcf7f7a284bce89289b1ce.tar.bz2
instadisc-4151ceff62e900e4d0bcf7f7a284bce89289b1ce.zip
Update: Continued to work on ACP for phpBB3 plugin
The module now has two working form
elements, Subscription Title and Central
Server (URL). They both read and write to
the database. Refs #7
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 }