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