2006-03-12 15:52:10 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @package install
|
|
|
|
* @version $Id$
|
|
|
|
* @copyright (c) 2005 phpBB Group
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
*/
|
|
|
|
|
2006-06-19 20:52:01 +00:00
|
|
|
if ( !defined('IN_INSTALL') )
|
|
|
|
{
|
|
|
|
// Someone has tried to access the file direct. This is not a good idea, so exit
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
2006-03-12 15:52:10 +00:00
|
|
|
if (!empty($setmodules))
|
|
|
|
{
|
|
|
|
$module[] = array(
|
2006-06-16 16:54:51 +00:00
|
|
|
'module_type' => 'install',
|
|
|
|
'module_title' => 'OVERVIEW',
|
|
|
|
'module_filename' => substr(basename(__FILE__), 0, -strlen($phpEx)-1),
|
|
|
|
'module_order' => 0,
|
|
|
|
'module_subs' => array('INTRO', 'LICENSE', 'SUPPORT'),
|
|
|
|
'module_stages' => '',
|
|
|
|
'module_reqs' => ''
|
2006-03-12 15:52:10 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2006-05-05 17:56:33 +00:00
|
|
|
/**
|
|
|
|
* Main Tab - Installation
|
2006-06-13 18:32:48 +00:00
|
|
|
* @package install
|
2006-05-05 17:56:33 +00:00
|
|
|
*/
|
2006-03-12 15:52:10 +00:00
|
|
|
class install_main extends module
|
|
|
|
{
|
|
|
|
function install_main(&$p_master)
|
|
|
|
{
|
|
|
|
$this->p_master = &$p_master;
|
|
|
|
}
|
|
|
|
|
|
|
|
function main($mode, $sub)
|
|
|
|
{
|
2006-07-23 20:59:08 +00:00
|
|
|
global $lang, $template, $language;
|
2006-03-12 15:52:10 +00:00
|
|
|
|
2006-03-22 21:03:47 +00:00
|
|
|
switch ($sub)
|
2006-03-12 15:52:10 +00:00
|
|
|
{
|
|
|
|
case 'intro' :
|
2006-04-29 13:14:33 +00:00
|
|
|
$title = $lang['SUB_INTRO'];
|
|
|
|
$body = $lang['OVERVIEW_BODY'];
|
2006-03-12 15:52:10 +00:00
|
|
|
break;
|
2006-06-16 16:54:51 +00:00
|
|
|
|
2006-03-12 15:52:10 +00:00
|
|
|
case 'license' :
|
2006-04-29 13:14:33 +00:00
|
|
|
$title = $lang['GPL'];
|
2006-03-12 15:52:10 +00:00
|
|
|
$body = implode("<br/>\n", file('../docs/COPYING'));
|
|
|
|
break;
|
2006-06-16 16:54:51 +00:00
|
|
|
|
2006-03-12 15:52:10 +00:00
|
|
|
case 'support' :
|
2006-04-29 13:14:33 +00:00
|
|
|
$title = $lang['SUB_SUPPORT'];
|
|
|
|
$body = $lang['SUPPORT_BODY'];
|
2006-03-12 15:52:10 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->tpl_name = 'install_main';
|
|
|
|
$this->page_title = $title;
|
|
|
|
|
|
|
|
$template->assign_vars(array(
|
|
|
|
'TITLE' => $title,
|
|
|
|
'BODY' => $body,
|
2006-07-23 16:04:51 +00:00
|
|
|
|
2006-08-06 17:25:29 +00:00
|
|
|
'S_LANG_SELECT' => '<select id="language" name="language">' . $this->p_master->inst_language_select($language) . '</select>',
|
2006-03-12 15:52:10 +00:00
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
2006-06-16 16:54:51 +00:00
|
|
|
|
2006-03-12 15:52:10 +00:00
|
|
|
?>
|