1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-23 03:19:01 +01:00
php-phpbb/phpBB/install/install_main.php
Graham Eames 8017db012b Fix an issue affecting eaccelerator users
git-svn-id: file:///svn/phpbb/trunk@5780 89ea8834-ac86-4346-8a33-228a782c2dd0
2006-04-10 20:12:30 +00:00

63 lines
1.1 KiB
PHP
Executable File

<?php
/**
*
* @package install
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*/
if (!empty($setmodules))
{
$module[] = array(
'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' => ''
);
}
class install_main extends module
{
function install_main(&$p_master)
{
$this->p_master = &$p_master;
}
function main($mode, $sub)
{
global $lang, $template;
switch ($sub)
{
case 'intro' :
$title = $lang['SUB_INTRO'];
$body = $lang['OVERVIEW_BODY'];
break;
case 'license' :
$title = $lang['GPL'];
$body = implode("<br/>\n", file('../docs/COPYING'));
break;
case 'support' :
$title = $lang['SUB_SUPPORT'];
$body = $lang['SUPPORT_BODY'];
break;
}
$this->tpl_name = 'install_main';
$this->page_title = $title;
$template->assign_vars(array(
'TITLE' => $title,
'BODY' => $body,
));
}
}
?>