Exemplo n.º 1
0
	(
		($_SESSION['statut']=="administrateur")||
		(($_SESSION['statut']=='scolarite')&&(getSettingAOui('ScolResetPassResp')))||
		(($_SESSION['statut']=='cpe')&&(getSettingAOui('CpeResetPassResp')))
	)
) {
	echo "<div style='float: right; width:15 em; text-align: center; border: 1px solid black; background-image: url(\"../images/background/opacite50.png\");'>\n";
	if($_SESSION['statut']=="administrateur") {
		echo affiche_actions_compte($resp_login);
		echo "<br />\n";
	}

	if((($resp_auth_mode=='gepi')||
	(($resp_auth_mode=='ldap')&&($gepiSettings['ldap_write_access'] == "yes")))&&
	(acces('/utilisateurs/reset_passwords.php', $_SESSION['statut']))) {
		echo affiche_reinit_password($resp_login);
	}
	echo "</div>\n";
}
//==============================================

echo "<a name='adresse'></a>\n";
echo "<p><b>Adresse:</b>";
if(isset($adr_id)){echo " (<i>n°$adr_id</i>)";}
echo "</p>\n";

echo "<div id='div_saisie_ad'>\n";
if($temoin_adr==1){
	$sql="SELECT * FROM resp_pers WHERE adr_id='$adr_id'";
	//echo "$sql<br />\n";
	$res_adr=mysqli_query($GLOBALS["mysqli"], $sql);
Exemplo n.º 2
0
     }
     echo "</td></tr>\n";
     if ($_SESSION['statut'] == 'administrateur' || $_SESSION['statut'] == 'scolarite' && getSettingAOui('ScolResetPassResp') || $_SESSION['statut'] == 'cpe' && getSettingAOui('CpeResetPassResp')) {
         if ($_SESSION['statut'] == "administrateur") {
             $alt = $alt * -1;
             echo "<tr class='lig{$alt}'><th style='text-align: left;'>Dépannage :</th><td>";
             echo affiche_actions_compte($tab_ele['resp'][$i]['login']);
             if ($tab_ele['resp'][$i]['auth_mode'] == 'gepi' || $tab_ele['resp'][$i]['auth_mode'] == 'ldap' && $gepiSettings['ldap_write_access'] == "yes") {
                 echo "<br />\n";
                 echo affiche_reinit_password($tab_ele['resp'][$i]['login']);
             }
             echo "</td></tr>\n";
         } elseif (($tab_ele['resp'][$i]['auth_mode'] == 'gepi' || $tab_ele['resp'][$i]['auth_mode'] == 'ldap' && $gepiSettings['ldap_write_access'] == "yes") && acces('/utilisateurs/reset_passwords.php', $_SESSION['statut'])) {
             $alt = $alt * -1;
             echo "<tr class='lig{$alt}'><th style='text-align: left;'>Dépannage :</th><td>";
             echo affiche_reinit_password($tab_ele['resp'][$i]['login']);
             echo "</td></tr>\n";
         }
     }
 }
 if ($tab_ele['resp'][$i]['adr1'] != '') {
     $alt = $alt * -1;
     echo "<tr class='lig{$alt}'><th style='text-align: left;'>Ligne 1 adresse:</th><td>" . $tab_ele['resp'][$i]['adr1'] . "</td></tr>\n";
 }
 if ($tab_ele['resp'][$i]['adr2'] != '') {
     $alt = $alt * -1;
     echo "<tr class='lig{$alt}'><th style='text-align: left;'>Ligne 2 adresse:</th><td>" . $tab_ele['resp'][$i]['adr2'] . "</td></tr>\n";
 }
 if ($tab_ele['resp'][$i]['adr3'] != '') {
     $alt = $alt * -1;
     echo "<tr class='lig{$alt}'><th style='text-align: left;'>Ligne 3 adresse:</th><td>" . $tab_ele['resp'][$i]['adr3'] . "</td></tr>\n";
Exemplo n.º 3
0
		$remarque .= "l'authentification ";
		if (!$session_gepi->auth_ldap) {
			$remarque .= "LDAP ";
		} else {
			$remarque .= "SSO ";
		}
		$remarque .= "est actuellement inactive. Si vous choisissez ce mode d'authentification, l'utilisateur ne disposera d'aucun moyen de s'authentifier dans Gepi.</em></p>";
	}
	echo $remarque;
}

if (($_SESSION['statut']=='administrateur') and (isset($user_login)) and ($user_login!='')) {
	echo "<div style='float:right; width:10em; margin-top: 0.5em; padding:3px; text-align:center; border: 1px solid black; background-image: url(\"../images/background/opacite50.png\");'>\n";
	echo affiche_actions_compte($user_login, '_blank');
	echo "<br />\n";
	echo affiche_reinit_password($user_login);
	echo "</div>\n";
}

if(($auth_sso=='lcs')||($gepi_non_plugin_lcs_mais_recherche_ldap)) {
	echo "<div id='suggestion_login' style='float:right; width:400px; height: 200px; border: 1px solid black; overflow:auto; display:none; margin-right:0.5em; padding:3px; background-image: url(\"../images/background/opacite50.png\");'></div>\n";
}
?>

<table summary="Infos">
	<tr><td>
	<table summary="Authentification">
<tr><td>Authentification&nbsp;:</td>
<?php
if (!isset($user_login) or $user_login == '') {
	$rw_access = $ldap_write_access ? "true":"false";