From e554fa7fbceeab7ca16b4be9b2671c19c8c36d90 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 6 Aug 2008 00:44:44 +0000 Subject: Update: Started InstaDisc ACP for phpBB3 plugin Refs #7 --- .../trunk/root/includes/acp/acp_instadisc.php | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php (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 new file mode 100644 index 0000000..77b9b75 --- /dev/null +++ b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php @@ -0,0 +1,44 @@ +add_lang('mods/instadisc'); + + // Set up the page + $this->tpl_name = 'acp_instadisc'; + $this->page_title = 'ACP_INSTADISC'; + + // Set up general vars + $greeter = request_var('hello', '', true); + $submit = isset($_POST['submit']) ? true : false; + $hello = 'Starla'; + + if ($submit) + { + trigger_error(sprintf($user->lang['SAY_HELLO'], $greeter, $hello) . adm_back_link($this->u_action), E_USER_WARNING); + } else { + $template->assign_vars(array( + 'S_HELLO' => $hello, + 'S_SUBMIT' => $this->u_action + )); + } + } +} -- cgit 1.4.1