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