hey guys i wanna make a donate page
how to make a page that players can get silk from after paying throw paypall cashu what ever
how to make a page that players can get silk from after paying throw paypall cashu what ever
<?php
#--- Error reporting ---#
error_reporting(-1);
#--- Timezone status ---#
date_default_timezone_set("Europe/Stockholm");
#--- read the post from PayPal system and add 'cmd' ---#
$req = 'cmd=_notify-validate';
foreach ($_POST as $key => $value) {
$value = urlencode(stripslashes($value));
$req .= "&$key=$value";
}
#--- Post back header ---#
$header = "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
#--- Fscoket open shit ---#
$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);
#--- Database connection ---#
mssql_connect("IP", "sa", "password") or die("ERROR ON LINE 24");
#--- CHECK LEGIT PAYMENTS ---#
if (!$fp) {
echo "SSL certification is not loaded correctly.";
} else {
fputs ($fp, $header . $req);
while (!feof($fp)) {
$res = fgets ($fp, 1024);
#--- Not sure yet -___- ---#
if (strcmp($res, "VERIFIED") == 0) {
#--- Payment seem to be verified ---#
$date = date('Y-m-d H:i:s');
$email = $_POST['payer_email'];
$item_name = $_POST['item_name'];
$option_name1 = $_POST['option_selection1'];
$payment_status = $_POST['payment_status'];
$payer_status = $_POST['payer_status'];
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$item_number = $_POST['item_number'];
#--- MICKE WAS HERE ---#
#--- If payment is accepted ---#
if($payment_status == "Completed"){
#--- Select Database ---#
mssql_select_db("SUPERMAN") or die("ERROR ON LINE 57");
#--- INSERT SILK, NEW METHOD MAKAVELI PROZ0R ---#
mssql_query("EXEC [SUPERMAN].[dbo].[_SilkSystem] '$option_name1','$item_number', 'silk'");
}
#--- Payment is not verified ---#
} elseif(strcmp ($res, "INVALID") == 0) {
echo 'No payment recieved, Are you mad bro?';
}
}
}
fclose ($fp);
?>
Quote:
[Only registered and activated users can see links. Click Here To Register...]Quote:
They changed option_name1 to option_selection1