<?php
/**
*
* @package phpBB Statistics
* @version $Id: install_main.php 62 2009-09-01 12:25:31Z marc1706 $
* @copyright (c) 2009 Marc Alexander(marc1706) www.m-a-styles.de
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @based on: Board3 Portal Installer (www.board3.de)
*/

/**
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if ( !defined('IN_INSTALL') )
{
	// Someone has tried to access the file direct. This is not a good idea, so exit
	exit;
}

if (!empty($setmodules))
{
	$module[] = array(
		'module_type'		=> 'overview',
		'module_title'		=> 'OVERVIEW',
		'module_filename'	=> substr(basename(__FILE__), 0, -strlen($phpEx)-1),
		'module_order'		=> 0,
		'module_subs'		=> array('SUPPORT', 'LICENSE'),
		'module_stages'		=> '',
		'module_reqs'		=> ''
	);
}

/**
* Main Tab - Installation
* @package install
*/
class install_main extends module
{
	function install_main(&$p_master)
	{
		$this->p_master = &$p_master;
	}

	function main($mode, $sub)
	{
		global $user, $template, $language;

		switch ($sub)
		{
		
			case 'support' :
				$title = $user->lang['SUB_SUPPORT'];
				$body = $user->lang['SUPPORT_BODY'];
			break;
			
			case 'license' :
				$title = $user->lang['GPL'];
				$body = implode("<br/>\n", file('../docs/COPYING'));
			break;
		}

		$this->tpl_name = 'install_main';
		$this->page_title = $title;

		$template->assign_vars(array(
			'TITLE'		=> $title,
			'BODY'		=> $body,
		));
	}
}

?>