// TODO: add lang detection here if empty $_REQUEST['lang']
+// distro specific customisation
+$distro = null;
+if (file_exists('install/versions.php')) {
+ $a = null;
+ include('install/versions.php');
+ if ($a) {
+ $distro = $a;
+ unset($a);
+ }
+}
+
$config = new stdClass();
$config->lang = $lang;
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) {
- // TODO: reimplement welcome.html support for win installer
- $config->stage = INSTALL_PATHS;
+ if (!$distro) {
+ $config->stage = INSTALL_PATHS;
+ } else {
+ include('install/distribution.html');
+ die;
+ }
}
--- /dev/null
+<?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>
+ <li><?php p($distro->phpname) ?> <?php p($distro->phpversion) ?></li>
+ <li><?php p($distro->dbname) ?> <?php p($distro->dbversion) ?></li>
+</ul>
+<p><?php print_string('welcomep40', 'install', $distro) ?></p>
+<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
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';