// distro specific customisation
$distro = null;
-if (file_exists('install/versions.php')) {
- $a = null;
- include('install/versions.php');
- if ($a) {
- $distro = $a;
- unset($a);
- }
+if (file_exists('install/distro.php')) {
+ include('install/distro.php');
}
$config = new stdClass();
if ($config->stage == INSTALL_ENVIRONMENT or $config->stage == INSTALL_DOWNLOADLANG) {
$config->stage--;
}
- if (INSTALL_DISTRIBUTION and empty($distro)) {
- $config->stage--;
- }
} else if (isset($_POST['next'])) {
$config->stage++;
}
-if ($config->stage == INSTALL_DISTRIBUTION) {
- if (!$distro) {
- $config->stage = INSTALL_PATHS;
- } else {
- include('install/distribution.html');
- die;
- }
-}
-
-
-
if ($config->stage == INSTALL_PATHS) {
$paths = array('wwwroot' => get_string('wwwroot', 'install'),
'dirroot' => get_string('dirroot', 'install'),
$config->stage = INSTALL_WELCOME;
-install_print_header($config, get_string('language'),
- get_string('chooselanguagehead', 'install'),
- get_string('chooselanguagesub', 'install'));
+
+if ($distro) {
+ ob_start();
+ include('install/distribution.html');
+ $sub = ob_get_clean();
+
+ install_print_header($config, get_string('language'),
+ get_string('chooselanguagehead', 'install'),
+ $sub);
+
+} else {
+ install_print_header($config, get_string('language'),
+ get_string('chooselanguagehead', 'install'),
+ get_string('chooselanguagesub', 'install'));
+}
$languages = install_get_list_of_languages();
echo '<div class="userinput">';
-<?php
-install_print_header($config, get_string('distribution', 'install'),
- get_string('welcomep10', 'install', $distro),
- get_string('welcomep20', 'install', $distro));
-?>
-
<p><?php print_string('welcomep30', 'install', $distro) ?></p>
<ul>
<li><?php p($distro->webname) ?> <?php p($distro->webversion) ?></li>
<p><?php print_string('welcomep50', 'install', $distro) ?></p>
<p><?php print_string('welcomep60', 'install', $distro) ?></p>
<p><?php print_string('welcomep70', 'install', $distro) ?></p>
-
-<?php install_print_footer($config); ?>
\ No newline at end of file
environmentsub2
dataroot
dirroot
-distribution
environmentrequireinstall
environmentrequireversion
installation
directly via the web.';
$string['dirroot'] = 'Moodle Directory';
$string['dirrooterror'] = 'The \'Moodle Directory\' setting seems to be incorrect - we can\'t find a Moodle installation there. The value below has been reset.';
-$string['distribution'] = 'Distribution';
$string['download'] = 'Download';
$string['downloadlanguagebutton'] = 'Download the "$a" language pack';
$string['downloadlanguagehead'] = 'Download language pack';
*/
define('INSTALL_WELCOME', 0);
-define('INSTALL_DISTRIBUTION', 1);
-define('INSTALL_ENVIRONMENT', 2);
-define('INSTALL_PATHS', 3);
-define('INSTALL_DOWNLOADLANG', 4);
-define('INSTALL_DATABASETYPE', 5);
-define('INSTALL_DATABASE', 6);
-define('INSTALL_SAVE', 7);
+define('INSTALL_ENVIRONMENT', 1);
+define('INSTALL_PATHS', 2);
+define('INSTALL_DOWNLOADLANG', 3);
+define('INSTALL_DATABASETYPE', 4);
+define('INSTALL_DATABASE', 5);
+define('INSTALL_SAVE', 6);
/**
*Tries to detect the right www root setting.
width:95%;
}
-.stage7 .stage {
+.stage6 .stage {
font-weight: bold;
color: red;
}