about summary refs log tree commit diff stats
path: root/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php
blob: 77b9b7552872bcead0b635a9ef0f281da3b215a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
*
* @package acp
* @version $Id: v3_modules.xml 52 2008-08-05 18:55:00Z hatkirby $
* @copyright (c) 2008 Starla Insigna
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @package acp
*/
class acp_instadisc
{
	var $u_action;

	function main($id, $mode)
	{
		global $db, $user, $auth, $template;
		global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;

		$user->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
			));
		}
	}
}