Update code_sniffer build.xml file to be executable on our system
[phpbb.git] / phpBB / install / install_main.php
blob48cd60024988cc4e8c3f5d9f54f1e68c86aee4ab
1 <?php
2 /**
4 * @package install
5 * @version $Id$
6 * @copyright (c) 2005 phpBB Group
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
9 */
11 /**
14 if ( !defined('IN_INSTALL') )
16 // Someone has tried to access the file direct. This is not a good idea, so exit
17 exit;
20 if (!empty($setmodules))
22 $module[] = array(
23 'module_type' => 'install',
24 'module_title' => 'OVERVIEW',
25 'module_filename' => substr(basename(__FILE__), 0, -strlen(PHP_EXT)-1),
26 'module_order' => 0,
27 'module_subs' => array('INTRO', 'LICENSE', 'SUPPORT'),
28 'module_stages' => '',
29 'module_reqs' => ''
33 /**
34 * Main Tab - Installation
35 * @package install
37 class install_main extends module
39 function install_main(&$p_master)
41 $this->p_master = &$p_master;
44 function main($mode, $sub)
46 switch ($sub)
48 case 'intro' :
49 $title = phpbb::$user->lang['SUB_INTRO'];
50 $body = phpbb::$user->lang['OVERVIEW_BODY'];
51 break;
53 case 'license' :
54 $title = phpbb::$user->lang['GPL'];
55 $body = implode("<br />\n", file('../docs/COPYING'));
56 break;
58 case 'support' :
59 $title = phpbb::$user->lang['SUB_SUPPORT'];
60 $body = phpbb::$user->lang['SUPPORT_BODY'];
61 break;
64 $this->tpl_name = 'install/main';
65 $this->page_title = $title;
67 phpbb::$template->assign_vars(array(
68 'TITLE' => $title,
69 'BODY' => $body,
71 'S_LANG_SELECT' => '<select id="language" name="language">' . $this->p_master->inst_language_select(phpbb::$user->lang_name) . '</select>',
72 ));