1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/install/install_main.php Wed Mar 07 16:41:10 2012 +0400
1.3 @@ -0,0 +1,78 @@
1.4 +<?php
1.5 +/**
1.6 +*
1.7 +* @package install
1.8 +* @version $Id$
1.9 +* @copyright (c) 2005 phpBB Group
1.10 +* @license http://opensource.org/licenses/gpl-license.php GNU Public License
1.11 +*
1.12 +*/
1.13 +
1.14 +/**
1.15 +*/
1.16 +
1.17 +if ( !defined('IN_INSTALL') )
1.18 +{
1.19 + // Someone has tried to access the file direct. This is not a good idea, so exit
1.20 + exit;
1.21 +}
1.22 +
1.23 +if (!empty($setmodules))
1.24 +{
1.25 + $module[] = array(
1.26 + 'module_type' => 'install',
1.27 + 'module_title' => 'OVERVIEW',
1.28 + 'module_filename' => substr(basename(__FILE__), 0, -strlen($phpEx)-1),
1.29 + 'module_order' => 0,
1.30 + 'module_subs' => array('INTRO', 'LICENSE', 'SUPPORT'),
1.31 + 'module_stages' => '',
1.32 + 'module_reqs' => ''
1.33 + );
1.34 +}
1.35 +
1.36 +/**
1.37 +* Main Tab - Installation
1.38 +* @package install
1.39 +*/
1.40 +class install_main extends module
1.41 +{
1.42 + function install_main(&$p_master)
1.43 + {
1.44 + $this->p_master = &$p_master;
1.45 + }
1.46 +
1.47 + function main($mode, $sub)
1.48 + {
1.49 + global $lang, $template, $language;
1.50 +
1.51 + switch ($sub)
1.52 + {
1.53 + case 'intro' :
1.54 + $title = $lang['SUB_INTRO'];
1.55 + $body = $lang['OVERVIEW_BODY'];
1.56 + break;
1.57 +
1.58 + case 'license' :
1.59 + $title = $lang['GPL'];
1.60 + $body = implode("<br/>\n", file('../docs/COPYING'));
1.61 + break;
1.62 +
1.63 + case 'support' :
1.64 + $title = $lang['SUB_SUPPORT'];
1.65 + $body = $lang['SUPPORT_BODY'];
1.66 + break;
1.67 + }
1.68 +
1.69 + $this->tpl_name = 'install_main';
1.70 + $this->page_title = $title;
1.71 +
1.72 + $template->assign_vars(array(
1.73 + 'TITLE' => $title,
1.74 + 'BODY' => $body,
1.75 +
1.76 + 'S_LANG_SELECT' => '<select id="language" name="language">' . $this->p_master->inst_language_select($language) . '</select>',
1.77 + ));
1.78 + }
1.79 +}
1.80 +
1.81 +?>
1.82 \ No newline at end of file