diff --git a/main/install/install_functions.inc.php b/main/install/install_functions.inc.php
index 56997d8b26..819f4f1f50 100755
--- a/main/install/install_functions.inc.php
+++ b/main/install/install_functions.inc.php
@@ -269,10 +269,10 @@ function get_config_param_from_db($host, $login, $pass, $db_name, $param = '') {
}
/**
-* Return a list of language directories.
-* @todo function does not belong here, move to code library,
-* also see infocours.php which contains similar function
-*/
+ * Return a list of language directories.
+ * @todo function does not belong here, move to code library,
+ * also see infocours.php which contains similar function
+ */
function get_language_folder_list($dirname) {
if ($dirname[strlen($dirname)-1] != '/') {
$dirname .= '/';
@@ -359,7 +359,7 @@ function display_language_selection() { ?>
*
* @author unknow
* @author Patrick Cool , Ghent University
-*/
+ */
function display_requirements($installType, $badUpdatePath, $updatePath = '', $update_from_version_8 = array(), $update_from_version_6 = array()) {
echo '
';
}
+
//and now display the choice buttons (go back or install)
?>
@@ -662,10 +664,10 @@ function display_requirements($installType, $badUpdatePath, $updatePath = '', $u
}
/**
-* Displays the license (GNU GPL) as step 2, with
-* - an "I accept" button named step3 to proceed to step 3;
-* - a "Back" button named step1 to go back to the first step.
-*/
+ * Displays the license (GNU GPL) as step 2, with
+ * - an "I accept" button named step3 to proceed to step 3;
+ * - a "Back" button named step1 to go back to the first step.
+ */
function display_license_agreement() {
echo '
'.display_step_sequence().get_lang('Licence').'
';
echo '
'.get_lang('DokeosLicenseInfo').'
';
@@ -696,19 +698,18 @@ function display_license_agreement() {
}
/**
-* Displays a parameter in a table row.
-* Used by the display_database_settings_form function.
-* @param string Type of install
-* @param string Name of parameter
-* @param string Field name (in the HTML form)
-* @param string Field value
-* @param string Extra notice (to show on the right side)
-* @param boolean Whether to display in update mode
-* @param string Additional attribute for the
element
-* @return void Direct output
-*/
-function display_database_parameter($install_type, $parameter_name, $form_field_name, $parameter_value, $extra_notice, $display_when_update = true, $tr_attribute = '')
-{
+ * Displays a parameter in a table row.
+ * Used by the display_database_settings_form function.
+ * @param string Type of install
+ * @param string Name of parameter
+ * @param string Field name (in the HTML form)
+ * @param string Field value
+ * @param string Extra notice (to show on the right side)
+ * @param boolean Whether to display in update mode
+ * @param string Additional attribute for the
\n";
if ($install_type == INSTALL_TYPE_UPDATE && $display_when_update) {
@@ -863,16 +864,17 @@ function display_database_settings_form($installType, $dbHostForm, $dbUsernameFo
+ if ($dbConnect == 1): ?>
- MySQL host info:
- MySQL server version:
- MySQL protocol version:
+ MySQL host info:
+ MySQL server version:
+ MySQL client version:
+ MySQL protocol version:
@@ -884,8 +886,8 @@ function display_database_settings_form($installType, $dbHostForm, $dbUsernameFo
-->
- MySQL error:
- '; ?>
+ MySQL error:
+ '; ?>
@@ -902,9 +904,9 @@ function display_database_settings_form($installType, $dbHostForm, $dbUsernameFo
}
/**
-* Displays a parameter in a table row.
-* Used by the display_configuration_settings_form function.
-*/
+ * Displays a parameter in a table row.
+ * Used by the display_configuration_settings_form function.
+ */
function display_configuration_parameter($install_type, $parameter_name, $form_field_name, $parameter_value, $display_when_update = 'true') {
echo "
\n";
echo "
$parameter_name
\n";
@@ -1093,8 +1095,8 @@ function display_configuration_settings_form($installType, $urlForm, $languageFo
}
/**
-* After installation is completed (step 6), this message is displayed.
-*/
+ * After installation is completed (step 6), this message is displayed.
+ */
function display_after_install_message($installType, $nbr_courses) {
?>
@@ -1116,16 +1118,17 @@ function display_after_install_message($installType, $nbr_courses) {
echo '';
?>
-