tilarm
Messages postés4Date d'inscriptiondimanche 29 mars 2009StatutMembreDernière intervention 6 mars 2020
-
29 mars 2009 à 10:13
boss2no -
17 juin 2009 à 13:55
Bonjour, c'est la première foi que j'essaye d'installer allopass sur mon site mais sur la page qui est censé autoriser le membre à s'inscrire au site j'ai le message suivant:
Notice: Undefined index: RECALL in C:\wamp\www\zone membre\inscription.php on line 11
Sa va de Allopass.php (on entre les codes) => inscription.php (on vérifie et on laisse s'inscrire)
allopass.php ;
<?php include("pages/header.php"); ?>
Etape de payemment du compte par appels telephoniques<br />
<br />
<table border="0" width="436" height="411" style="border: 1px solid #E5E3FF;" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" width="436">
<table width="436" border="0" cellpadding="0" cellspacing="0">
<tr height="27">
<td width="127" align="left" bgcolor="#D0D0FD">
<a href="http://www.allopass.com/" target="_blank"><img src="http://payment.allopass.com/imgweb/common/access/logo.gif" width="127" height="27" border="0" alt="Allopass"></a>
</td>
<td width="309" align="right" bgcolor="#D0D0FD">
<font style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000084; font-style : none; font-weight: bold; text-decoration: none;">
Solution de micro paiement sécurisé<br>Secure micro payment solution
</font>
</td>
</tr>
<tr height="30">
<td colspan="2" width="436" align="center" valign="middle" bgcolor="#F1F0FF">
<font style="font-family: Arial, Helvetica, sans-serif; font-size: 9px; color: #000084; font-style : none; font-weight: bold; text-decoration: none;">
Pour acheter ce contenu, insérez le code obtenu en cliquant sur le drapeau de votre pays </font>
<br>
<font style="font-family: Arial, Helvetica, sans-serif; font-size: 9px; color: #5E5E90; font-style : none; font-weight: bold; text-decoration: none;">
To buy this content, insert your access code obtained by clicking on your country flag
</font>
</td>
</tr>
<tr height="2"><td colspan="2" width="436" bgcolor="#E5E3FF"></td></tr>
</table>
</td>
</tr>
<tr height="347">
<td width="284">
<iframe name="APsleft" width="284" height="347" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://payment.allopass.com/..."></iframe>
</td>
<td width="152">
<iframe name="APsright" width="152" height="347" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://payment.allopass.com/..."></iframe>
</td>
</tr>
<tr height="5"><td colspan="2" bgcolor="#D0D0FD" width="436"></td></tr>
</table>
<?php include("pages/footer.php"); ?>
inscription.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Site.</title>
<link rel="stylesheet" href="default.css" />
</head>
<body>
<?php
$RECALL = $_GET["RECALL"];
if( trim($RECALL) == "" )
{
// La variable RECALL est vide, renvoi de l'internaute
// vers une page d'erreur
exit(1);
}
// $RECALL contient le code d'accès
$RECALL = urlencode( $RECALL );
// $AUTH doit contenir l'identifiant de VOTRE document
$AUTH = urlencode( "177336/485182/3285945" );
/**
* envoi de la requête vers le serveur AlloPAss
* dans la variable $r[0] on aura la réponse du serveur
* dans la variable $r[1] on aura le code du pays d'appel de l'internaute
* (FR,BE,UK,DE,CH,CA,LU,IT,ES,AT,...)
* Dans le cas du multicode, on aura également $r[2],$r[3] etc...
* contenant à chaque fois le résultat et le code pays.
*/
$r = @file( "http://payment.allopass.com/api/checkcode.apu?code=$RECALL&auth=$AUTH" );
// on teste la réponse du serveur
if( substr( $r[0],0,2 ) != "OK" )
{
// Le serveur a répondu ERR ou NOK : l'accès est donc refusé
header( "Location: allopass.php" );
exit(1);
}
/**
* Le code est valide !
* on place un cookie appelé CODE_OK et qui vaut la valeur 1
* Ce cookie est valide jusqu'à ce que l'internaute ferme son navigateur
* Dans les pages suivantes, il n'y aura plus qu'à tester l'existence du cookie
* S'il existe, c'est que l'internaute est autorisé,
* sinon on le renverra sur une page d'erreur
*/
/**
* Remplacez dans la ligne ci-dessus ".mondomaine.com" par le nom de domaine
* de votre site!
* Par exemple, si votre site est accessible à l'adresse :
* http://perso.herbergeur.com/mapage
* alors il faudra que vous mettiez ".herbergeur.com"
* (n'oubliez pas le "." devant le nom de domaine !!)
*/
// ENSUITE C'EST LE FORMULAIRE D'INSCRIPTION
?>
<form method="post" action="verif.php">
<fieldset>
<p><legend>Création de compte</legend></p>
<?php if(isset($etat)) {echo $etat;} else { echo '';}?>
<div id="cont_form" align="right">
Pseudo <input type="text" class="noir" name="nick" maxlength="35"><br>
Adresse email <input type="text" class="noir" name="email" maxlength="40"><br>
Mot de passe <input type="password" class="noir" name="password" maxlength="25"><br />
Retapez votre mot de passe <input type="password" class="noir" name="password_conf" maxlength="25">
</div>
<h6 align="center">J'ai lu et j'accepte <a href="charte.php">les règles du site</a>. <input type="checkbox" name="regagree" value="valeur" onClick="ChangeStatut(this.form)" />
<br />
<br />
<input type="submit" name="validation" value="Confirmer" disabled /></h6>
</fieldset>
</form>
<?php include("pages/footer.php"); ?>
J'ai pourtant bien copier coller les scripts d'allopass et remplacé l'"urlencode" par le mien !
Trouvez des réponses à vos questions sur les langages, les frameworks et les astuces de codage. Échangez avec d'autres développeurs passionnés pour améliorer vos compétences en programmation et rester au fait des dernières tendances du secteur.