2009-02-17 13:14:53 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (isset($_REQUEST['login']) && isset($_REQUEST['pass'])){
|
2009-02-17 17:04:07 +00:00
|
|
|
header('Location: http://'.$_SERVER['SERVER_NAME'].'/?page=main&lang=fr&secure=8f66c76ce72b8f45dadfe49fd5db90e0&action=logon&login='.$_REQUEST['login'].'&pass='.$_REQUEST['pass'].'&hach='.$_REQUEST['hach']);
|
2009-02-17 13:14:53 +00:00
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
<html>
|
2009-09-14 10:15:56 +00:00
|
|
|
<head>
|
|
|
|
<title>CONNEXION EXTRANET</title>
|
|
|
|
<link rel="stylesheet" type="text/css" media="all" href="./style.css" />
|
2009-02-17 13:14:53 +00:00
|
|
|
<script type="text/javascript" src="./md5.js"></script>
|
|
|
|
<script language="javascript">
|
|
|
|
<!--
|
|
|
|
function doChallengeResponse() {
|
2009-04-21 12:47:06 +00:00
|
|
|
if (document.forms[0].login.value!='' && document.forms[0].pass.value!=''){
|
|
|
|
str = document.forms[0].login.value+'|'+document.forms[0].pass.value;
|
|
|
|
document.forms[0].hach.value = MD5(str);
|
|
|
|
document.forms[0].pass.value = '';
|
|
|
|
return true;
|
|
|
|
}else{
|
|
|
|
alert('Veuillez remplir les champs "login" et "pass".');
|
|
|
|
return false;
|
|
|
|
}
|
2009-02-17 13:14:53 +00:00
|
|
|
}
|
|
|
|
// -->
|
|
|
|
</script>
|
2009-09-14 10:15:56 +00:00
|
|
|
</head>
|
2009-02-17 13:14:53 +00:00
|
|
|
<body>
|
|
|
|
|
2009-04-21 12:47:06 +00:00
|
|
|
<form name="form_logon" action="./index.php" enctype="multipart/form-data" method="post" onsubmit="return doChallengeResponse();">
|
2009-02-17 13:14:53 +00:00
|
|
|
<h2>CONNEXION EXTRANET</h2>
|
|
|
|
<table>
|
|
|
|
<tbody><tr>
|
|
|
|
<td class="data">Login</td>
|
2009-02-19 17:20:54 +00:00
|
|
|
<td colspan="2" class="inserttext"><input id="login" name="login" size="20" value="" type="text"></td>
|
2009-09-14 10:15:56 +00:00
|
|
|
</tr>
|
2009-02-17 13:14:53 +00:00
|
|
|
<tr>
|
|
|
|
<td class="data">Pass</td>
|
2009-02-19 17:20:54 +00:00
|
|
|
<td colspan="2" class="inserttext"><input id="pass" name="pass" size="20" value="" type="password"></td>
|
2009-02-17 13:14:53 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="data"></td>
|
|
|
|
<td colspan="2" class="inserttext"><input value="OK" class="bouton" type="submit"></td>
|
|
|
|
</tr>
|
|
|
|
</tbody></table>
|
|
|
|
<input name="hach" value="" type="hidden">
|
|
|
|
<input name="action" value="logon" type="hidden">
|
|
|
|
<input name="lang" value="fr" type="hidden">
|
|
|
|
<input name="resolution" value="1280*800" type="hidden">
|
|
|
|
<input name="nbcolors" value="16" type="hidden">
|
|
|
|
<input name="secure" value="8f66c76ce72b8f45dadfe49fd5db90e0" type="hidden">
|
|
|
|
</form>
|
|
|
|
|
2009-09-14 10:15:56 +00:00
|
|
|
<?php include('footer.php');?>
|
|
|
|
|
2009-02-17 13:14:53 +00:00
|
|
|
</body>
|
|
|
|
</html>
|