about summary refs log tree commit diff stats
path: root/update/plugin/phpBB3/trunk/root/includes/acp
diff options
context:
space:
mode:
Diffstat (limited to 'update/plugin/phpBB3/trunk/root/includes/acp')
-rw-r--r--update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php44
-rw-r--r--update/plugin/phpBB3/trunk/root/includes/acp/info/acp_instadisc.php39
2 files changed, 83 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}
diff --git a/update/plugin/phpBB3/trunk/root/includes/acp/info/acp_instadisc.php b/update/plugin/phpBB3/trunk/root/includes/acp/info/acp_instadisc.php new file mode 100644 index 0000000..5692f6c --- /dev/null +++ b/update/plugin/phpBB3/trunk/root/includes/acp/info/acp_instadisc.php
@@ -0,0 +1,39 @@
1<?php
2/**
3*
4* @package acp
5* @version $Id: v3_modules.xml 52 2008-08-05 18:46: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 module_install
13*/
14class acp_instadisc_info
15{
16 function module()
17 {
18 return array(
19 'filename' => 'acp_instadisc',
20 'title' => 'ACP_INSTADISC',
21 'version' => '1.0.0',
22 'modes' => array(
23 'instadisc' => array(
24 'title' => 'INSTADISC',
25 'auth' => 'acl_a_board && acl_a_server',
26 'cat' => array('ACP_AUTOMATION')
27 )
28 )
29 );
30 }
31
32 function install()
33 {
34 }
35
36 function uninstall()
37 {
38 }
39}