Exemple #1
0
 echo "groupes={$groupes}<br />";
 echo "groupes_aff={$groupes_aff}<br />";
 echo "prof={$prof}<br />";
 if ($matiere != "" && $prof != "") {
     $edt_cours_login_prof = $prof;
     $prof_aff = "";
     if ($prof != "") {
         if (!isset($tab_prof[$prof])) {
             $tab_prof[$prof] = civ_nom_prenom($prof);
         }
         $prof_aff = $tab_prof[$prof];
     }
     echo "prof_aff={$prof_aff}<br />";
     $reg_matiere = $matiere;
     $matiere_nom_complet = get_valeur_champ('matieres', "matiere='{$matiere}'", "nom_complet");
     $matiere_categorie_id = get_valeur_champ('matieres', "matiere='{$matiere}'", "categorie_id");
     if ($matiere_nom_complet == "") {
         echo "<span style='color:red'>Matière non trouvée dans la table 'matieres'... on n'enregistre pas.</span><br />";
     } else {
         $reg_nom_groupe = $matiere;
         $reg_nom_complet = $matiere_nom_complet;
         $reg_categorie = $matiere_categorie_id;
         $chaine_id_classe = "";
         $reg_clazz = array();
         if ($classe != "") {
             $reg_clazz[] = $classe;
             $chaine_id_classe = $classe;
         } else {
             // C'est un regroupement (en principe).
             $temp = explode("|", trim($groupes));
             sort($temp);
		}
		echo "</td>\n";
		echo "<td align='center' title=\"Cliquez pour activer/désactiver le compte\">";
			echo "<a href='edit_responsable.php?action=changer_etat_user&amp;mode=individual&amp;parent_login="******"' onclick=\"changer_etat_utilisateur('$current_parent->login', 'etat_".$current_parent->login."') ;return false;\" title=\"Changer l'état actif/inactif.\"><span id='etat_".$current_parent->login."'>";
			if ($current_parent->etat == "actif") {
				echo "<img src='../images/icons/buddy.png' width='16' height='16' title='Compte actif' />";
			} else {
				echo "<img src='../images/icons/buddy_no.png' width='16' height='16' title='Compte inactif' />";
			}
			echo "</span></a>\n";
		echo "</td>\n";

		$sso_table_login_ent="";
		//if(($current_parent->auth_mode=="sso")&&(getSettingAOui('sso_cas_table'))) {
		if(getSettingAOui('sso_cas_table')) {
			$sso_table_login_ent=get_valeur_champ('sso_table_correspondance', "login_gepi='$current_parent->login'", 'login_sso');
		}

		echo "<td title=\"Cliquez pour modifier le mode d'authentification du compte\">";
			echo "<a href='ajax_modif_utilisateur.php?mode=changer_auth_mode2&amp;login_user="******"&amp;auth_mode_user="******"&amp;test_recup_critere=y".add_token_in_url()."' onclick=\"afficher_changement_auth_mode('$current_parent->login', '$current_parent->auth_mode', '$sso_table_login_ent') ;return false;\">";
			echo "<span id='auth_mode_$current_parent->login'>";
			echo $current_parent->auth_mode;
			echo "</span>";
			echo "</a>";
		echo "</td>\n";

		echo "<td>";
		echo "<a href='edit_responsable.php?action=supprimer&amp;mode=individual&amp;parent_login="******"&amp;test_recup_critere=y".add_token_in_url()."' onclick=\"javascript:return confirm('Êtes-vous sûr de vouloir supprimer l\'utilisateur ?')\">Supprimer</a>";
		echo "</td>";

		if($current_parent->etat == "actif" && ($current_parent->auth_mode == "gepi" || $gepiSettings['ldap_write_access'] == "yes")) {
Exemple #3
0
	<td><select id="select_auth_mode" name="reg_auth_mode" size="1" onchange="<?php echo $onchange_value; ?>">
<option value='gepi' <?php if ($user_auth_mode=='gepi') echo " selected ";  ?>>Locale (base Gepi)</option>
<option value='ldap' <?php if ($user_auth_mode=='ldap') echo " selected ";  ?>>LDAP</option>
<option value='sso' <?php if ($user_auth_mode=='sso') echo " selected ";  ?>>SSO (Cas, LCS, LemonLDAP)</option>
</select>
<?php
	if(isset($user_login)) {
		echo temoin_compte_sso($user_login);
	}
?>
</td></tr>
<?php
if(($_SESSION['statut']=='administrateur')&&(getSettingAOui('sso_cas_table'))) {
	$sso_table_login_ent="";
	if((isset($user_login))&&($user_login!='')) {
		$sso_table_login_ent=get_valeur_champ('sso_table_correspondance', "login_gepi='$user_login'", 'login_sso');
	}
	echo "
<tr>
	<td>Correspondance SSO&nbsp;:</td>
	<td><input type='text' name='login_sso' id='login_sso' value='".$sso_table_login_ent."' /></td>
</tr>";
}

if ($ldap_write_access) {
	echo "<tr><td></td>&nbsp;<td>";
	echo "<p style='font-size: small;'><input type='checkbox' name='prevent_ldap_removal' value='yes' checked onchange=\"changement()\" /> Ne pas supprimer du LDAP<br/>(si cette case est décochée et que vous passez d'un mode d'authentification LDAP ou SSO à un mode d'authentification locale, l'utilisateur sera supprimé de l'annuaire LDAP).</p>";
	echo "</td></tr>";
}
 ?>
<tr><td>Nom&nbsp;:</td><td><input type='text' name='reg_nom' id='reg_nom' size='20' onchange="changement()" <?php