1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
|
<?php require_once('connections/connect_pau_web2.php');
if (!isset($erreurlog)) $erreurlog=0;
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['nom_u'])) {
$loginUsername=$_POST['nom_u'];
$password=$_POST['pass'];
$password=md5($password);
echo $password;
$MM_fldUserAuthorization = "droits";
$MM_redirectLoginSuccess = "accueil.php";
$MM_redirectLoginFailed = "public/registre.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_connect_pau_web2, $connect_pau_web2);
$LoginRS__query=sprintf("SELECT nom_u, pass, droits FROM utilisateur WHERE nom_u='%s' AND pass='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $connect_pau_web2) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = mysql_result($LoginRS,0,'droits');
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
$erreurlog=1;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<!-- DW6 -->
<head>
<title>login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="sintel_production.css" type="text/css">
<style type="text/css">
<!--
.Style1 {font-size: small}
-->
</style>
</head>
<body bgcolor="#ffffff" background="images/page_fond.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Bandeau de navigation">
<tr>
<td width="100" rowspan="3"><a href="index.htm"></a><img src="images/spacer.gif" width="8" height="1"><img src="images/modele.marianne.sante.solidarite2_mini.jpg" width="80" height="71"></td>
<td height="33" colspan="2" class="titreApplication">Plan d'Alerte et d'Urgence du Haut-Rhin (68) </td>
</tr>
<tr>
<td>
<table height="27" border="0" cellpadding="0" cellspacing="0" summary="Modules du site">
<tr> </tr>
</table> </td>
<td><a href="#"></a></td>
</tr>
<tr>
<td height="21"><h1>LOGIN</h1></td>
<td height="21"> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="corps"><a href="#haut" accesskey="H"></a> <form ACTION="<?php echo $loginFormAction; ?>" name="form1" method="POST">
<table width="300" border="0" align="center">
<tr>
<td><p align="justify" class="corps">
<MARQUEE class="navAction2 Style1">
<strong> Niveau actuel : veille sanitaire - pas d'alerte en cours </strong>
</MARQUEE>
</p></td>
</tr>
</table>
<br>
<table width="100%" border="0">
<tr>
<td><p> </p>
<table border="2" align="center" cellspacing="0" bordercolor="#000066">
<tr>
<td><table width="353" border="0" align="center" cellspacing="0">
<tr class="detailMaj">
<td width="350" height="30" class="titre">Veuillez vous authentifier svp : </td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="353" border="0" align="center" cellspacing="0">
<tr>
<td height="20" colspan="2"> </td>
</tr>
<tr>
<td><div align="right">votre login : </div></td>
<td width="198"><label>
<input name="nom_u" type="text" id="nom_u">
</label></td>
</tr>
<tr>
<td><div align="right">votre mot de passe : </div></td>
<td><label>
<input name="pass" type="password" id="pass">
</label></td>
</tr>
<tr>
<td height="20" colspan="2"> </td>
</tr>
<tr bordercolor="0">
<td colspan="2"><label> </label>
<div align="center">
<input type="submit" name="submit" value="connection">
<input name="valider" type="hidden" id="valider" value="ok">
</div></td>
</tr>
<tr>
<td height="20" colspan="2"> </td>
</tr>
</table></td>
</tr>
</table>
<p> </p>
<p align="center">
<?php
if ($erreurlog==1)
{
?>
</p>
<p align="center" class="normal"><font color="#FF0000" size="3" face="Verdana, Arial, Helvetica, sans-serif">Votre login ou votre mot de passe sont érronés,<br>
si le problème persiste, veuillez contacter l'administrateur
du site.</font></p>
<div align="center">
<?php
}
?>
</div>
<p align="center"> </p></td>
</tr>
</table>
</form></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/page_bas_fond.gif" summary="Pied de page">
<tr>
<td height="23" alt="Envoyer un mail au Webmaster" width="150" height="23" border="0"></a></td>
<td><a href="#"><img src="images/page_bas_top.gif" alt="Retour en haut de page" width="89" height="23" border="0" align="right"></a></td>
</tr>
</table>
</body>
</html> |
Partager