mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/13740] Moving old installer to install_old
PHPBB3-13740
This commit is contained in:
parent
2fbfb0e004
commit
14e8f712ae
10 changed files with 0 additions and 2446 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,78 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* This file is part of the phpBB Forum Software package.
|
|
||||||
*
|
|
||||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
|
||||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
|
||||||
*
|
|
||||||
* For full copyright and license information, please see
|
|
||||||
* the docs/CREDITS.txt file.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
|
|
||||||
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' => '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' => ''
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Main Tab - Installation
|
|
||||||
*/
|
|
||||||
class install_main extends module
|
|
||||||
{
|
|
||||||
function install_main(&$p_master)
|
|
||||||
{
|
|
||||||
$this->p_master = &$p_master;
|
|
||||||
}
|
|
||||||
|
|
||||||
function main($mode, $sub)
|
|
||||||
{
|
|
||||||
global $lang, $template, $language;
|
|
||||||
|
|
||||||
switch ($sub)
|
|
||||||
{
|
|
||||||
case 'intro' :
|
|
||||||
$title = $lang['SUB_INTRO'];
|
|
||||||
$body = $lang['OVERVIEW_BODY'];
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'license' :
|
|
||||||
$title = $lang['GPL'];
|
|
||||||
$body = implode("<br/>\n", file(__DIR__ . '/../docs/LICENSE.txt'));
|
|
||||||
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,
|
|
||||||
|
|
||||||
'S_LANG_SELECT' => '<select id="language" name="language">' . $this->p_master->inst_language_select($language) . '</select>',
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue