diff --git a/install.php b/install.php index be4f20aabd7..973f8334e0c 100644 --- a/install.php +++ b/install.php @@ -427,43 +427,56 @@ if ($config->stage == INSTALL_DATABASE) { $strdbport = get_string('databaseport', 'install'); $strdbsocket = get_string('databasesocket', 'install'); - echo '
'; + echo '
'; $disabled = empty($distro->dbhost) ? '' : 'disabled="disabled'; - echo '
'; - echo '
'; + echo '
'; + echo '
'; + echo '
'; echo '
'; - echo '
'; - echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; echo '
'; $disabled = empty($distro->dbuser) ? '' : 'disabled="disabled'; - echo '
'; - echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; echo '
'; - echo '
'; + echo '
'; + echo '
'; // no password field here, the password may be visible in config.php if we can not write it to disk - echo '
'; + echo '
'; + echo '
'; echo '
'; - echo '
'; - echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; echo '
'; - echo '
'; - echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; echo '
'; if (!(stristr(PHP_OS, 'win') && !stristr(PHP_OS, 'darwin'))) { - echo '
'; - echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; echo '
'; } if ($hint_database !== '') { - echo '
'.$hint_database.'
'; + echo '
'.$hint_database.'
'; } echo '
'; install_print_footer($config); @@ -486,9 +499,10 @@ if ($config->stage == INSTALL_DATABASETYPE) { 'sqlsrv' => moodle_database::get_driver_instance('sqlsrv', 'native'), // MS SQL*Server PHP driver ); - echo '
'; - echo '
'; - echo '
'; $disabled = array(); $options = array(); foreach ($databases as $type=>$database) { @@ -506,7 +520,6 @@ if ($config->stage == INSTALL_DATABASETYPE) { echo ''; } echo '
'; - echo '
'; install_print_footer($config); die; @@ -565,28 +578,36 @@ if ($config->stage == INSTALL_PATHS) { $strdataroot = get_string('dataroot', 'install'); $stradmindirname = get_string('admindirname', 'install'); - echo '
'; - echo '
'; - echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; echo '
'; - echo '
'; - echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; echo '
'; - echo '
'; - echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; if ($hint_dataroot !== '') { - echo '
'.$hint_dataroot.'
'; + echo '
'.$hint_dataroot.'
'; } - echo '
'; if (!file_exists("$CFG->dirroot/admin/environment.xml")) { - echo '
'; - echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; if ($hint_admindir !== '') { - echo '
'.$hint_admindir.'
'; + echo '
'.$hint_admindir.'
'; } echo '
'; } @@ -617,14 +638,15 @@ if ($distro) { } $languages = get_string_manager()->get_list_of_translations(); -echo '
'; -echo '
'; -echo '
'; foreach ($languages as $name=>$value) { $selected = ($name == $CFG->lang) ? 'selected="selected"' : ''; echo ''; } -echo '
'; +echo '
'; echo '
'; install_print_footer($config); diff --git a/install/css.php b/install/css.php index 0fa88bd1709..94254a9cb30 100644 --- a/install/css.php +++ b/install/css.php @@ -60,7 +60,6 @@ textarea, .uneditable-input { } #installdiv { - width: 800px; margin-left:auto; margin-right:auto; padding: 5px; diff --git a/lib/installlib.php b/lib/installlib.php index 3de940a9921..48bcdef79a3 100644 --- a/lib/installlib.php +++ b/lib/installlib.php @@ -343,18 +343,13 @@ function install_print_header($config, $stagename, $heading, $stagetext, $stagec '; echo ' -
+
'; @@ -385,9 +380,9 @@ function install_print_footer($config, $reload=false) { global $CFG; if ($config->stage > INSTALL_WELCOME) { - $first = ''; + $first = ''; } else { - $first = ''; + $first = ''; $first .= '