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:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-06 00:44:44 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-06 00:44:44 +0000
commite554fa7fbceeab7ca16b4be9b2671c19c8c36d90 (patch)
tree335ff48807261d4b27b55ec6d2585b96bab88b0f /update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php
parentad7b861b840c12637097c7ee20e14227d6aae571 (diff)
downloadinstadisc-e554fa7fbceeab7ca16b4be9b2671c19c8c36d90.tar.gz
instadisc-e554fa7fbceeab7ca16b4be9b2671c19c8c36d90.tar.bz2
instadisc-e554fa7fbceeab7ca16b4be9b2671c19c8c36d90.zip
Update: Started InstaDisc ACP for phpBB3 plugin
Refs #7
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}