Ejemplo n.º 1
0
        // For version 1.9
        $urlForm = $_configuration['root_web'];
        $encryptPassForm = get_config_param('password_encryption');
        // Managing the $encryptPassForm
        if ($encryptPassForm == '1') {
            $encryptPassForm = 'sha1';
        } elseif ($encryptPassForm == '0') {
            $encryptPassForm = 'none';
        }
        $allowSelfReg = false;
        $tmp = get_config_param_from_db('allow_registration');
        if (!empty($tmp)) {
            $allowSelfReg = $tmp;
        }
        $allowSelfRegProf = false;
        $tmp = get_config_param_from_db('allow_registration_as_teacher');
        if (!empty($tmp)) {
            $allowSelfRegProf = $tmp;
        }
    }
    display_configuration_settings_form($installType, $urlForm, $languageForm, $emailForm, $adminFirstName, $adminLastName, $adminPhoneForm, $campusForm, $institutionForm, $institutionUrlForm, $encryptPassForm, $allowSelfReg, $allowSelfRegProf, $loginForm, $passForm);
} elseif (@$_POST['step5']) {
    //STEP 6 : LAST CHECK BEFORE INSTALL
    ?>
    <div class="RequirementHeading">
       <h3><?php 
    echo display_step_sequence() . get_lang('LastCheck');
    ?>
</h3>
    </div>
    <div class="RequirementContent">
Ejemplo n.º 2
0
		} else {   //for version 1.8
			$urlForm = $_configuration['root_web'];
			$encryptPassForm = get_config_param('userPasswordCrypted');
			// Managing the $encryptPassForm
			if ($encryptPassForm == '1') {
				$encryptPassForm = 'sha1';
			} elseif ($encryptPassForm == '0') {
				$encryptPassForm = 'none';
			}

			$allowSelfReg = false;
			$tmp = get_config_param_from_db($dbHostForm, $dbUsernameForm, $dbPassForm, $db_name, 'allow_registration');
			if (!empty($tmp)) $allowSelfReg = $tmp;

			$allowSelfRegProf = false;
			$tmp = get_config_param_from_db($dbHostForm, $dbUsernameForm, $dbPassForm, $db_name, 'allow_registration_as_teacher');
			if (!empty($tmp)) $allowSelfRegProf = $tmp;
		}
	}
	display_configuration_settings_form($installType, $urlForm, $languageForm, $emailForm, $adminFirstName, $adminLastName, $adminPhoneForm, $campusForm, $institutionForm, $institutionUrlForm, $encryptPassForm, $allowSelfReg, $allowSelfRegProf, $loginForm, $passForm);

} elseif (@$_POST['step5']) {
	//STEP 6 : LAST CHECK BEFORE INSTALL
?>
    <div class="RequirementHeading">
		<h2><?php echo display_step_sequence().get_lang('LastCheck'); ?></h2>
	</div>
    <div class="RequirementContent">
		<?php echo get_lang('HereAreTheValuesYouEntered'); ?>
	</div><br />