Achat de points via boutique Allopass.
Posté : 28 sept. 2009, 22:17
Bonjour, je ne sais pas si je suis dans la bonne section. Si ce n'est pas le cas, je m'en excuse d'avance.
Voici mon problème. Je voudrais faire un site internet qui pour le moment est un projet personnel. Ce projet contiendra une boutique en ligne, qui permettra aux internautes d'acheter des points et de télécharger des packs d'images.
Le soucis que je rencontre se fait lors de la validation du code. Je vais donc vous présenter mes 2 pages ( Allopass.php et Validation.php )
Allopass.php
Bien entendu, je n'ai pas détaillé les pages complètes, mais juste les parties importantes. Je ne comprends pas ou st mon problème, je cherche depuis plusieurs jours, et je ne ne sais pas pourquoi lors de la validation j'obtiens en lien de page : http://localhost/validation.php?RECALL=JOJOTEST&DATAS=1 .
Ensuite ce lien de s'actualise pas, et aucun point n'est donné à l'acheteur.
Je vous remercie fortement de votre aide.
Cordialement, Alyson51
Voici mon problème. Je voudrais faire un site internet qui pour le moment est un projet personnel. Ce projet contiendra une boutique en ligne, qui permettra aux internautes d'acheter des points et de télécharger des packs d'images.
Le soucis que je rencontre se fait lors de la validation du code. Je vais donc vous présenter mes 2 pages ( Allopass.php et Validation.php )
Allopass.php
<center><br><br><br>
Bienvenu sur le système allopass d'achats de points automatisé.<br />
Chaque Allopass validés créditera votre compte de <?php echo $point_vote ?> points.
<br /><br /><br />
<div style="width:300px;font-family:Arial,Helvetica,sans-serif;font-size:10px;background-color:white;color:#000">
<a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=144313&idd=511400&lang=fr&country=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_fr.gif" width="35" height="29" alt="FR" title="FR" /></a>
<a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=144313&idd=511400&lang=fr&country=be','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_be.gif" width="35" height="29" alt="BE" title="BE" /></a>
<a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=144313&idd=511400&lang=fr&country=ch','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_ch.gif" width="35" height="29" alt="CH" title="CH" /></a>
<a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=144313&idd=511400&lang=fr&country=de','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_de.gif" width="35" height="29" alt="DE" title="DE" /></a>
<a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=144313&idd=511400&lang=fr&country=uk','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_uk.gif" width="35" height="29" alt="UK" title="UK" /></a>
<a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=144313&idd=511400&lang=fr&country=ca','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_ca.gif" width="35" height="29" alt="CA" title="CA" /></a>
<a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=144313&idd=511400&lang=fr&country=nl','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_nl.gif" width="35" height="29" alt="NL" title="NL" /></a>
<a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=144313&idd=511400&lang=fr&country=es','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_es.gif" width="35" height="29" alt="ES" title="ES" /></a>
<a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=144313&idd=511400&lang=fr&country=it','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_it.gif" width="35" height="29" alt="IT" title="IT" /></a>
</div><br>
<br>
<br>
<br>
Entrer le code AlloPass™ :<br /><br />
<?php
include ('haut.php');
mysql_select_db($realmd);
$points = mysql_query("SELECT * FROM account WHERE id = '$_SESSION[id]'");
$donnees = mysql_fetch_array($points);
if ($_SESSION['logged'] == 0)
{
if ($_SESSION['logged'] == 0)
{
echo "
<h3><center><b>Vous devez être connecté pour acceder à cette partie !</center></b></h3>
<center>
<form action=\"connexion.php?action=connexion\" method=\"post\">
<b>LOGIN :</b></font><br /><input type=\"text\" name=\"pseudo\"><br />
<b>PASSWORD :</b></font><br <input type=\"password\" name=\"pass\"><br /><br />
<input type=\"submit\" value=\"Connexion\" name=\"connexion\" >
</center></form>";
}
else
{
echo "
<h3><center><b>Une erreur est survenue merci de la signaler au WebMaster</center></b></h3>
<center><a href=\"membre.php\">Retour</a></center>";
}
}
else
{
if ($alow_connexion == 0)
{
?>
<center><h2><u>Gestion de compte :</u><h2></center>
<center><h3>La gestion de compte est en maintenance.<h3></center>
<meta http-equiv="refresh" content="5;url=index.php" />
<center>Vous allez être redirigé dans 5 secondes !</center>
<?php
}
else
{
?>
<form action ="http://www.allopass.com/check/index.php4" method="POST">
<div align="center">
<input type="hidden" name="SITE_ID" value="<?php echo $site_id ?>">
<input type="hidden" name="DOC_ID" value="<?php echo $doc_id ?>">
<input type="hidden" name="RECALL" value="1">
<input type="hidden" name="DATAS" value="1">
<input type="text" name="CODE0" size="15">
<input type="submit" value="Entrer">
</form>"
<?php
}
}
include ('bas.php');
?></center>
Ensuite voici la page de validation => Validation.php :<?php
$RECALL = $_GET["RECALL"];
if (trim($RECALL)=="") {
// La variable RECALL est vide, renvoi de l'internaute
//vers une page d'erreur
header("Location: index.php");
exit;
}
$RECALL = urlencode($RECALL);
$AUTH = urlencode("".Securite::bdd($identifiant)."");
$r=@file("http://www.allopass.com/check/vf.php4?CODE=$RECALL&AUTH=$AUTH");
// on teste la réponse du serveur
if (ereg("ERR",$r[0]) || ereg("NOK",$r[0])) {
// Le serveur a répondu ERR ou NOK : l'accès est donc refusé
header("Location: index.php");
exit;
}
mysql_connect($realmd['host'], $realmd['user'], $realmd['password']) or die();
mysql_select_db($realmd['db']) or die();
mysql_query("UPDATE account SET points=points+" . $point_vote . " WHERE username = '".$_SESSION['username']."'") or die(mysql_error());
?>
<meta http-equiv="Refresh" content="3;URL=index.php?page=allopass">
<br><br><br><br><br<br>
<center><b>Merci de votre achat. Code validé. Veuillez patienter.</b></center> .Bien entendu, je n'ai pas détaillé les pages complètes, mais juste les parties importantes. Je ne comprends pas ou st mon problème, je cherche depuis plusieurs jours, et je ne ne sais pas pourquoi lors de la validation j'obtiens en lien de page : http://localhost/validation.php?RECALL=JOJOTEST&DATAS=1 .
Ensuite ce lien de s'actualise pas, et aucun point n'est donné à l'acheteur.
Je vous remercie fortement de votre aide.
Cordialement, Alyson51