diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-03-12 15:52:10 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-03-12 15:52:10 +0000 |
commit | f4cfd3665f7cf1ed96ce4c2eca03ac6854aae258 (patch) | |
tree | 60a7362769f8fed7ffd6f276760a34034ebc6bfa /phpBB/install/install_main.php | |
parent | 1adfb39cbae433eccda37d50b7ed7a01bbabd4e3 (diff) | |
download | forums-f4cfd3665f7cf1ed96ce4c2eca03ac6854aae258.tar forums-f4cfd3665f7cf1ed96ce4c2eca03ac6854aae258.tar.gz forums-f4cfd3665f7cf1ed96ce4c2eca03ac6854aae258.tar.bz2 forums-f4cfd3665f7cf1ed96ce4c2eca03ac6854aae258.tar.xz forums-f4cfd3665f7cf1ed96ce4c2eca03ac6854aae258.zip |
Building the foundations for some later changes to the installer
This code doesn't actually do anything yet ;-)
git-svn-id: file:///svn/phpbb/trunk@5620 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/install_main.php')
-rwxr-xr-x | phpBB/install/install_main.php | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/phpBB/install/install_main.php b/phpBB/install/install_main.php new file mode 100755 index 0000000000..271705b51d --- /dev/null +++ b/phpBB/install/install_main.php @@ -0,0 +1,64 @@ +<?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' => '' + ); + return; +} + +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, + )); + } +} +?>
\ No newline at end of file |