<?php // Licence Publique Générale GNU (GNU General Publique License), Copyright 2005-2008 Geffrotin Yann
if(!isset($_SESSION["mailcli"]))
{
echo "<div class='cache'> <p align='right' style='padding-right:22px;'>"; //debut en-tête
// Variables de session
if( empty($_SESSION["mailcli"]) ) //si les sessions sont vides
{
echo '<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'].'?lang=fr">Fr</a> | <a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'].'?lang=en">En</a>     
<a href="'.$AdresseFreePay.'support/client/connexion.php">'.$Connexion[$lang].'</a> |
<a href="'.$AdresseFreePay.'support/mail.php?destinataire=info@'.$_SERVER['HTTP_HOST'].'">'.$Aide[$lang].'</a>';
}
echo "</p>";
// Mon Logo
echo '<p class="logo">
<a href="'.$AdresseFreePay.'">
<img id=\'logo\' src="'.$AdresseFreePay.'images/logo_blue_'.$lang.'.PNG" alt="'.$Logo[$lang].'" />
</a>
</p>';
include("../../menu.php"); //inclue aussi le menu
echo "</div>";
echo "<div></div>";
echo '<div class="corps" onmouseover="javascript:cache(\'smenu1\'); javascript:cache(\'smenu2\'); javascript:cache(\'smenu3\'); javascript:cache(\'smenu4\'); javascript:cache(\'smenu5\'); javascript:cache(\'smenu6\'); ">'; // debut du corps de la page
echo $NonResponsabilite[$lang];
echo '
<form action="connexion.php" method="post" onsubmit="return client_verification();">';
/*
if( $URLRetour != $AdresseFreePay.'nav_mon_compte.php' ){
echo "<p class='info'>Vous devez vous identifier sur FreePay auparavant.</p>";
}*/
if( !empty($_GET['message'])){
if($_GET['message'] == "b"){
echo "<p class='info'>Le mail de la session n'est pas le même que celui entré dans le formulaire d'E-commerce. <strong>Veuillez-vous re-connecter.</strong></p>";
}
}
if(isset($_POST['mailcli'])){
if(empty($_POST['mailcli']) ){
echo "<p class='erreur'>Vous devez mettre un <strong>mailcli</strong>.</p>";
}else{
if (!strpos($_POST['mailcli'], '@') or !strpos($_POST['mailcli'], '.')) {
echo "<p class='erreur'>Le <strong>mailcli</strong> est invalide.</p>";
}
}
}
if(isset($_POST['merchant_id'])){
if(empty($_POST['merchant_id']) ){
echo "<p class='erreur'>Vous devez mettre un <strong>merchant_id</strong>.</p>";
}
}
echo '<h4 class="titre">'.$Connexion[$lang].'</h4>
<p>'.$PasDeCompte[$lang].' ';
if(isset($mailcli) and isset($mdpcli)) {
echo '<a href="https://www.moneybookers.com/app/?rid='.$rid.'">'.$CreerUnCompte[$lang].'</a>.</p>';
}else{
if(isset($mailcli)){
echo '<a href="https://www.moneybookers.com/app/?rid='.$rid.'">'.$CreerUnCompte[$lang].'</a>.</p>';
}
if(isset($mdpcli)){
echo '<a href="https://www.moneybookers.com/app/?rid='.$rid.'">'.$CreerUnCompte[$lang].'</a>.</p>';
}
if(!isset($mailcli) and !isset($mdpcli)){
echo '<a href="https://www.moneybookers.com/app/?rid='.$rid.'">'.$CreerUnCompte[$lang].'</a>.</p>';
}
}
echo'
<map id="connexionid">
<input type="hidden" name="URLRetour" id="URLRetour" size="30" value="'.$URLRetour.'"/>
<table>
<tr>
<td class="historique"
onmouseover="this.style.backgroundColor=\'white\'"
onmouseout="this.style.backgroundColor=\'#c8d7e3\'"
>'.$AdresseCourriel[$lang].'</td>
<td><input type="text" name="mailcli" id="mailcli" size="30" ';
if(isset($mailcli)){ echo ' value="'.$mailcli.'" ';} echo '/></td><td></td>
</tr>
<tr>
<td class="historique"
onmouseover="this.style.backgroundColor=\'white\'"
onmouseout="this.style.backgroundColor=\'#c8d7e3\'"
>Customer ID</td>
<td><input type="text" name="merchant_id" id="merchant_id" size="30" ';
if(isset($merchant_id)){ echo ' value="'.$merchant_id.'" ';} echo '/></td><td></td>
</tr>
<tr>
<td><input type="hidden" name="URLRetour" id="URLRetour" size="30" ';
if(isset($URLRetour)){ echo ' value="'.$URLRetour.'" ';} echo '/></td>
</tr>
<tr>
<td></td><td><input type="submit" value="'.$Connexion[$lang].'" /></td>
</tr>
</table>
</map>
</form>';
//include("liste_clients_exemple.php");
//Focus sur le champs du courriel en javascript
echo '<script type="text/javascript">document.getElementById("mailcli").focus();</script>';
//Vérification du mailcli et du mdpcli
echo '<script type="text/javascript" src="client_verification_'.$lang.'.js"></script>';
echo'</div>'; // fin du corps de la page
include("../../nav_bas.php"); // Inclure le bas de la page
}else {
echo '<META HTTP-EQUIV=REFRESH CONTENT="0; URL='.$URLRetour.'">';
}
?>