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.php44
1 files changed, 44 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 new file mode 100644 index 0000000..77b9b75 --- /dev/null +++ b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php
@@ -0,0 +1,44 @@
1<?php
2/**
3*
4* @package acp
5* @version $Id: v3_modules.xml 52 2008-08-05 18:55:00Z hatkirby $
6* @copyright (c) 2008 Starla Insigna
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
8*
9*/
10
11/**
12* @package acp
13*/
14class acp_instadisc
15{
16 var $u_action;
17
18 function main($id, $mode)
19 {
20 global $db, $user, $auth, $template;
21 global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
22
23 $user->add_lang('mods/instadisc');
24
25 // Set up the page
26 $this->tpl_name = '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;
32 $hello = 'Starla';
33
34 if ($submit)
35 {
36 trigger_error(sprintf($user->lang['SAY_HELLO'], $greeter, $hello) . adm_back_link($this->u_action), E_USER_WARNING);
37 } else {
38 $template->assign_vars(array(
39 'S_HELLO' => $hello,
40 'S_SUBMIT' => $this->u_action
41 ));
42 }
43 }
44}