ok...voici mon fichier index
<?php
session_unset();
//require('connexion.php');
?>
<html><!-- InstanceBegin template="/Templates/conge.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Gestion des congés</title>
<!-- InstanceEndEditable --><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK href="anas.css" type=text/css rel=stylesheet>
<link rel="shortcut icon" href="<?php echo $_SESSION['sigle'] ?>">
<SCRIPT language=javascript>
// Paramétrage ici :
var MenuToolBar=new CreerMenuToolBar('#316AC5', '#6699FF', '#000099',
'#6699FF',
'font-family:verdana;font-size:11px;color:white;font-weight:bold', 16,
16)
MenuToolBar.Add('membreoff.gif', 'membreon.gif', 'Personnel', 'liste_personnel.php');
//MenuToolBar.Add('pouceoff.gif', 'pouceon.gif', 'Type congé', 'liste_typ_conge.php');
MenuToolBar.Add('pouceoff.gif', 'pouceon.gif', 'Demande Congé', 'dde_conge.php');
MenuToolBar.Add('pouceoff.gif', 'pouceon.gif', 'Alimentation congés', 'mvt_conge.php');
MenuToolBar.Add('helpoff.gif', 'helpon.gif', 'A propos', 'a_propos.php');
// Fonctions internes
function CreerMenuToolBar(colFond, colClair, colOmbre, colCligno,
style, hauteur, largeur)
{this.nb=0;this.colFond=colFond;this.colClair=colClair;this.colOmbre=colOmbre;this.colCligno=colCligno;this.hauteur=hauteur;this.largeur=largeur;this.style=style;this.Indice=-1;this.Nbcligno=0;this.Add=AddMenuToolBar;this.Aff=AffMenuToolBar;}
function AddMenuToolBar(imgOff, imgOn, libelle, url) {var link=new
Object();link.imgOff=imgOff;link.imgOn=imgOn;link.libelle=libelle;link.url=url;this[this.nb]=link;this.nb++;}
function AffMenuToolBar() {
if (document.getElementById || document.all) {
var Z="<TABLE border=0 cellpadding=1 cellspacing=1><TR>";
for (var i=0; i<this.nb; i++) {
Z+="<TD
onMouseOver='AffMenuToolBarOver(this,"+i+")'
onMouseOut='AffMenuToolBarOut(this,"+i+")'
onMouseDown='AffMenuToolBarDown(this,"+i+")'
onClick='AffMenuToolBarClic(this,"+i+")'
style='border-style:solid;border-width:1px;border-color:"+this.colFond+";"+this.style+";cursor:pointer'><IMG
name='MenuToolBarIMG"+i+"' src='"+this[i].imgOff+"' border=0
width="+this.largeur+" height="+this.hauteur+"
align=top> "+this[i].libelle+"</TD>";
}
Z+="</TR></TABLE>";
} else {
var Z="| ";
for (var i=0; i<this.nb; i++) {
Z+="<A
href='"+this[i].url+"' style='"+this.style+"'><IMG
name='MenuToolBarIMG"+i+"' src=\""+this[i].imgOff+"\" border=0
width="+this.largeur+" height="+this.hauteur+"
align=top> "+this[i].libelle+"</A> | ";
}
}
document.write(Z);
}
function AffMenuToolBarOver(obj,ind)
{obj.style.borderTopColor=MenuToolBar.colClair;
obj.style.borderLeftColor=MenuToolBar.colClair;
obj.style.borderBottomColor=MenuToolBar.colOmbre;
obj.style.borderRightColor=MenuToolBar.colOmbre;
document.images['MenuToolBarIMG'+ind].src=MenuToolBar[ind].imgOn;}
function AffMenuToolBarOut(obj,ind)
{obj.style.borderTopColor=MenuToolBar.colFond;
obj.style.borderBottomColor=MenuToolBar.colFond;
obj.style.borderLeftColor=MenuToolBar.colFond;
obj.style.borderRightColor=MenuToolBar.colFond;
document.images['MenuToolBarIMG'+ind].src=MenuToolBar[ind].imgOff;}
function AffMenuToolBarDown(obj,ind)
{obj.style.borderTopColor=MenuToolBar.colOmbre;
obj.style.borderLeftColor=MenuToolBar.colOmbre;
obj.style.borderBottomColor=MenuToolBar.colClair;
obj.style.borderRightColor=MenuToolBar.colClair;}
function AffMenuToolBarClic(obj,ind) {MenuToolBar.Indice=ind;MenuToolBar.obj=obj;MenuToolBar.Nbcligno=0;MenuToolBarCligno()}
function MenuToolBarCligno() {
MenuToolBar.Nbcligno++;
if (Math.round(MenuToolBar.Nbcligno/2) != MenuToolBar.Nbcligno/2) {
MenuToolBar.obj.style.backgroundColor=MenuToolBar.colCligno;
} else {
MenuToolBar.obj.style.backgroundColor=MenuToolBar.colFond;
}
if (MenuToolBar.Nbcligno < 8) {
setTimeout('MenuToolBarCligno()',50-5*MenuToolBar.Nbcligno);
} else {
window.location=MenuToolBar[MenuToolBar.Indice].url;
}
}
function fct_fermer() {
window.close();
}
</script>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<body>
<table border="0" align="center" width="100%">
<tr>
<td width="10%" align="center"><a href="index.php"><img
src="<?php echo $_SESSION['sigle'] ?>"
border="0"></a></td>
<td width="25%" align="left"><?php echo $_SESSION['rs'] ?></td>
<td width="40%" align="center"><strong><font
size="3">Gestion des congés</font></strong></td>
<td align="center" width="25%">
Bonjour, <font size="2"><b>
<?php
echo $_SESSION['user'];
?>
</b></font>
<br><a href="#" onClick="fct_fermer()">Me déconnecter</a>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" bgcolor="#316AC5">
<tr>
<td align="center"><script language="javascript">MenuToolBar.Aff();</script></td>
</tr>
</table>
<table width="100%" align="center" border="0">
<tr>
<td><!-- InstanceBeginEditable name="body" -->
<!-- InstanceEndEditable --></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
et voici le fichier authentification
<?php
//Boite de dialogue d'authentification de l'utilisateur
if(!isset($_SERVER['PHP_AUTH_USER'])) {//l'utilisateur a annuler l'opération d'authentification
header('WWW-Authenticate: Basic realm="Conges SITEC"');
header('HTTP/1.0 401 Unauthorized');
print("Authentification annulée par l'utilisateur !");
exit;
}
else
{//vérification des données
$monsql = "select * from users where users.user_name = '" . $_SERVER['PHP_AUTH_USER'] . "'";
$monrs = mysql_query($monsql);
if($maligne = mysql_fetch_array($monrs)) {//vérification de l'existance de l'utilisateur dans la base
if($_SERVER['PHP_AUTH_PW'] !=
$maligne['user_pwd']) {//Vérification de l'exactitude du mot de passe
print("Mot de passe incorrecte.");
exit;
}
$_SESSION['user'] = $_SERVER['PHP_AUTH_USER'];
$_SESSION['admin'] = $maligne['admin'];
$monsql = "SELECT * FROM parametres";
$monrs = mysql_query($monsql);
$ligne = mysql_fetch_array($monrs);
$_SESSION['sigle'] = $ligne['sigle'];
$_SESSION['rs'] = $ligne['rs'];
}
else {
print("vous n'etes pas autorisé a voir ce site.");
exit;
}
}
?>
ca ne marche pas...