NeRo Emulated
Banni
Bonjour j'aimerai savoir comment on met un autobuy sur son site internet. Merci
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Un autobuy ?Bonjour j'aimerai savoir comment on met un autobuy sur son site internet. Merci
Regarde plus hautMon commentaire sert a rien mais sa sert a quoi un autobuy ??
<img src="https://www.paypal.com/fr_FR/FR/i/btn/btn_xpressCheckout.gif" align="left" style="margin-right:7px;">
<img src="https://www.paypal.com/fr_FR/FR/i/logo/PayPal_mark_37x23.gif" align="left" style="margin-right:7px;"><span style="font-size:11px; font-family: Arial, Verdana;">Le réflexe sécurité.</span>
<?php
if(isset($_GET['id']) && Is_Numeric($_GET['id']))
include 'config.php';
include 'includes/functions.php';
if (!$user -> loggedIn())
{
$temp = "http://".$_SERVER['HTTP_HOST'];
if($_SERVER['PHP_SELF'][strlen($_SERVER['PHP_SELF'])-1] == "/")
{
$temp.=$_SERVER['PHP_SELF'];
} else {
$temp.=dirname($_SERVER['PHP_SELF']);
}
if($temp[strlen($temp)-1]=="/")
{
$temp = substr($temp, 0, strlen($temp)-1);
}
return dirname($temp);
}
$id = (int)$_GET['id'];
$paypalemail = $odb -> query("SELECT `email` FROM `gateway` LIMIT 1") -> fetchColumn(0);
$plansql = $odb -> prepare("SELECT * FROM `months` WHERE `ID` = :id");
$plansql -> execute(array(":id" => $id));
$row = $plansql -> fetch();
if($row === NULL) { die("Bad ID"); }
$paypalurl = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amount=".urlencode($row['price'])."&business=".urlencode($paypalemail)."&item_name=".urlencode($row['name'])."&item_number=".urlencode($row['ID']."_".$_SESSION['ID'])."&return=http://tonsite.com/ipn.php"."&rm=2¬ify_url=http://tonsite.com/ipn.php"."&cancel_return=http://tonsite.com/pack.php"."&no_note=1¤cy_code=EUR";
header("Location: ".$paypalurl);
?>