Exemplo n.º 1
0
 echo "<p><input type='file' size='80' name='dbf_file' />";
 echo "<br /><br /><p>Quelle formule appliquer pour la génération du login ?</p>\n";
 //if(getSettingValue("use_ent")!='y') {
 // A MODIFIER : Pouvoir gérer use_ent et NetCollege ITOP hors 27:
 if (getSettingValue("use_ent") != 'y' || preg_match("/^027/", getSettingValue('gepiSchoolRne'))) {
     $default_login_gen_type = getSettingValue('mode_generation_login');
     if ($default_login_gen_type == '' || !check_format_login($default_login_gen_type)) {
         $default_login_gen_type = 'nnnnnnnnnnnnnnnnnnnn';
     }
 } else {
     $default_login_gen_type = "";
 }
 if (getSettingValue('auth_sso') == "lcs") {
     echo "<span style='color:red'>Votre Gepi utilise une authentification LCS; Le format de login ci-dessous ne sera pas pris en compte. Les comptes doivent avoir été importés dans l'annuaire LDAP du LCS avant d'effectuer l'import dans GEPI.</span><br />\n";
 }
 echo champ_input_choix_format_login('login_gen_type', $default_login_gen_type);
 // A MODIFIER : Pouvoir gérer use_ent et NetCollege ITOP hors 27:
 if (getSettingValue("use_ent") == 'y' && !preg_match("/^027/", getSettingValue('gepiSchoolRne'))) {
     echo "<input type='radio' name='login_gen_type' id='login_gen_type_ent' value='ent' checked=\"checked\" />\n";
     echo "<label for='login_gen_type_ent'  style='cursor: pointer;'>Les logins sont produits par un ENT (<span title=\"cette case permet l'utilisation de la table 'ldap_bx', assurez vous qu'elle soit remplie avec les bonnes informations.\">Attention !</span>)</label>\n";
     echo "<br />\n";
 }
 echo "<br />\n";
 // Modifications jjocal dans le cas où c'est un serveur CAS qui s'occupe de tout
 if (getSettingValue("use_sso") == "cas" || getSettingValue('auth_sso') == "lcs") {
     $checked1 = ' checked="checked"';
     $checked0 = '';
 } else {
     $checked1 = '';
     $checked0 = ' checked="checked"';
 }
Exemplo n.º 2
0
?>
		</span>
	</p>

	<p class="ligneCaps">
		<label for='mode_generation_login_responsable' class="cellTab70">
			<a name='format_login_resp'></a>
			Mode de génération automatique des logins responsables&nbsp;:
		</label>
		<span class="cellTab plusPetit">
			<?php 
$default_login_gen_type = getSettingValue('mode_generation_login_responsable');
if ($default_login_gen_type == '' || !check_format_login($default_login_gen_type)) {
    $default_login_gen_type = "nnnnnnnnnnnnnnnnnnnn";
}
echo champ_input_choix_format_login('mode_generation_login_responsable', $default_login_gen_type);
?>
		</span>
	</p>

	<p class="ligneCaps">
		<a name='filtrage_strict_nom_prenom_pour_login'></a>
		Filtrer strictement des noms et prénoms pour la génération de logins&nbsp;:<br />
		(<em>on ne garde que les caractères alphabétiques (on supprime les espaces, tirets,...)</em>)
		<span class="cellTab plusPetit">
			<span class="cellTab">
				<input type="radio" name="FiltrageStrictAlphaNomPrenomPourLogin" id="FiltrageStrictAlphaNomPrenomPourLogin_y" value="y" <?php 
if (getSettingAOui("FiltrageStrictAlphaNomPrenomPourLogin")) {
    echo "checked='checked'";
}
?>