Blame Identity/Webenv/App/phpBB/3.0.4/install/install_main.php

f2e824
f2e824
/**
f2e824
*
f2e824
* @package install
f2e824
* @version $Id: install_main.php 8598 2008-06-04 15:37:06Z naderman $
f2e824
* @copyright (c) 2005 phpBB Group
f2e824
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
f2e824
*
f2e824
*/
f2e824
f2e824
/**
f2e824
*/
f2e824
f2e824
if ( !defined('IN_INSTALL') )
f2e824
{
f2e824
	// Someone has tried to access the file direct. This is not a good idea, so exit
f2e824
	exit;
f2e824
}
f2e824
f2e824
if (!empty($setmodules))
f2e824
{
f2e824
	$module[] = array(
f2e824
		'module_type'		=> 'install',
f2e824
		'module_title'		=> 'OVERVIEW',
f2e824
		'module_filename'	=> substr(basename(__FILE__), 0, -strlen($phpEx)-1),
f2e824
		'module_order'		=> 0,
f2e824
		'module_subs'		=> array('INTRO', 'LICENSE', 'SUPPORT'),
f2e824
		'module_stages'		=> '',
f2e824
		'module_reqs'		=> ''
f2e824
	);
f2e824
}
f2e824
f2e824
/**
f2e824
* Main Tab - Installation
f2e824
* @package install
f2e824
*/
f2e824
class install_main extends module
f2e824
{
f2e824
	function install_main(&$p_master)
f2e824
	{
f2e824
		$this->p_master = &$p_master;
f2e824
	}
f2e824
f2e824
	function main($mode, $sub)
f2e824
	{
f2e824
		global $lang, $template, $language;
f2e824
f2e824
		switch ($sub)
f2e824
		{
f2e824
			case 'intro' :
f2e824
				$title = $lang['SUB_INTRO'];
f2e824
				$body = $lang['OVERVIEW_BODY'];
f2e824
			break;
f2e824
f2e824
			case 'license' :
f2e824
				$title = $lang['GPL'];
f2e824
				$body = implode("
\n", file('../docs/COPYING'));
f2e824
			break;
f2e824
f2e824
			case 'support' :
f2e824
				$title = $lang['SUB_SUPPORT'];
f2e824
				$body = $lang['SUPPORT_BODY'];
f2e824
			break;
f2e824
		}
f2e824
f2e824
		$this->tpl_name = 'install_main';
f2e824
		$this->page_title = $title;
f2e824
f2e824
		$template->assign_vars(array(
f2e824
			'TITLE'		=> $title,
f2e824
			'BODY'		=> $body,
f2e824
f2e824
			'S_LANG_SELECT'	=> '<select id="language" name="language">' . $this->p_master->inst_language_select($language) . '</select>',
f2e824
		));
f2e824
	}
f2e824
}
f2e824
f2e824
?>