Blame Identity/Models/Html/phpBB/3.0.4/install/install_main.php

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