aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_main.php
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2015-06-30 16:36:34 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-07-08 01:28:10 +0200
commit10f6716566fce9d9c38f3dd99419595b2a1cba4c (patch)
tree435a7a88bea17219187c271e38f2b07a677223aa /phpBB/install/install_main.php
parent249345d9cc6d6bff380436d6e05f24918d762c0d (diff)
downloadforums-10f6716566fce9d9c38f3dd99419595b2a1cba4c.tar
forums-10f6716566fce9d9c38f3dd99419595b2a1cba4c.tar.gz
forums-10f6716566fce9d9c38f3dd99419595b2a1cba4c.tar.bz2
forums-10f6716566fce9d9c38f3dd99419595b2a1cba4c.tar.xz
forums-10f6716566fce9d9c38f3dd99419595b2a1cba4c.zip
[ticket/13740] Restore original install folder
This reverts commit 934e2821f1cef5e2e21ad6d96f7beb45647ed81c. PHPBB3-13740
Diffstat (limited to 'phpBB/install/install_main.php')
-rw-r--r--phpBB/install/install_main.php78
1 files changed, 78 insertions, 0 deletions
diff --git a/phpBB/install/install_main.php b/phpBB/install/install_main.php
new file mode 100644
index 0000000000..d5874dac83
--- /dev/null
+++ b/phpBB/install/install_main.php
@@ -0,0 +1,78 @@
+<?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>',
+ ));
+ }
+}