~azzar1/unity/add-show-desktop-key

443 by dcoles
Added Forum application along with unmodifed version of phpBB3 "Olympus" 3.0.0
1
<?php
2
/**
3
*
4
* @package install
5
* @version $Id: install_main.php,v 1.13 2007/10/04 11:33:33 acydburn Exp $
6
* @copyright (c) 2005 phpBB Group
7
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
8
*
9
*/
10
11
/**
12
*/
13
14
if ( !defined('IN_INSTALL') )
15
{
16
	// Someone has tried to access the file direct. This is not a good idea, so exit
17
	exit;
18
}
19
20
if (!empty($setmodules))
21
{
22
	$module[] = array(
23
		'module_type'		=> 'install',
24
		'module_title'		=> 'OVERVIEW',
25
		'module_filename'	=> substr(basename(__FILE__), 0, -strlen($phpEx)-1),
26
		'module_order'		=> 0,
27
		'module_subs'		=> array('INTRO', 'LICENSE', 'SUPPORT'),
28
		'module_stages'		=> '',
29
		'module_reqs'		=> ''
30
	);
31
}
32
33
/**
34
* Main Tab - Installation
35
* @package install
36
*/
37
class install_main extends module
38
{
39
	function install_main(&$p_master)
40
	{
41
		$this->p_master = &$p_master;
42
	}
43
44
	function main($mode, $sub)
45
	{
46
		global $lang, $template, $language;
47
48
		switch ($sub)
49
		{
50
			case 'intro' :
51
				$title = $lang['SUB_INTRO'];
52
				$body = $lang['OVERVIEW_BODY'];
53
			break;
54
55
			case 'license' :
56
				$title = $lang['GPL'];
57
				$body = implode("<br/>\n", file('../docs/COPYING'));
58
			break;
59
60
			case 'support' :
61
				$title = $lang['SUB_SUPPORT'];
62
				$body = $lang['SUPPORT_BODY'];
63
			break;
64
		}
65
66
		$this->tpl_name = 'install_main';
67
		$this->page_title = $title;
68
69
		$template->assign_vars(array(
70
			'TITLE'		=> $title,
71
			'BODY'		=> $body,
72
73
			'S_LANG_SELECT'	=> '<select id="language" name="language">' . $this->p_master->inst_language_select($language) . '</select>',
74
		));
75
	}
76
}
77
78
?>