• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Scripter Paypal Script

Kthxbye

New Member
Joined
Jul 11, 2012
Messages
122
Reaction score
2
I have editied a paypal script to where when you type in your account it will tell you if it is good or not
All I need is for it to add the points to that account number, I am not 100% sure how to do this. Thank you!
 
I have editied a paypal script to where when you type in your account it will tell you if it is good or not
All I need is for it to add the points to that account number, I am not 100% sure how to do this. Thank you!
Code:
<?php
$mysql_config = array("user" => "root", "pass" => "XXXX", "db" => "forgottenserver", "host" => "127.0.0.1");

$custom = stripslashes(ucwords(strtolower(trim($_REQUEST['custom']))));
$receiver_email = $_REQUEST['receiver_email'];
$payment_status = $_REQUEST['payment_status'];
$mc_gross = $_REQUEST['mc_gross'];
$mc_currency = $_REQUEST['mc_currency'];

if($payment_status == "Completed" && $receiver_email == "[email protected]" && $mc_gross >= 1 && $mc_currency == "GBP" && preg_match('/^[a-zA-Z0-9]+$/', $custom)){
    $sql->query("UPDATE accounts SET points = points + ".($mc_gross * 100)." WHERE name = '".$custom."'");
}

else  
{  
    echo("Error.");  
}  

?>

this is my ipn script, you edit it to fit your needs. If you need any help just PM me.
 
Code:
<?php
if ($_REQUEST['debug']) {
ini_set("display_errors", True);
error_reporting(E_ALL);
}
$mysql_host = 'xxxx'; //Leave at localhost 
$mysql_user = 'xxxxx'; //DB User 
$mysql_pass = 'xxxxxx'; //DB Pass 
$mysql_db = 'xxxxx'; //DB Name 
$file = 'paypal.log'; //Paypal Log Name will be placed in the same location as your ipn.php file
$payer_email = $_REQUEST['payer_email'];
$ip = $_SERVER['REMOTE_ADDR'];
if($ip != "66.211.170.66" && $ip != "216.113.188.202" && $ip != "216.113.188.203" && $ip != "216.113.188.202" && $ip != "173.0.81.1" ) {
    print "Scammer...";
$hak = fopen("scammer.log", "a");
fwrite($hak, "$ip \r\n");
fclose($hak);
die(0);
}
$time = date("F j, Y, g:i a");
$paylist = array("3.00" => 70, "5.00" => 120, "9.00" => 225, "15.00" => 450);


// connect db 


$db = mysql_connect($mysql_host, $mysql_user, $mysql_pass);


$custom = stripslashes(ucwords(strtolower(trim($_REQUEST['custom'])))); 
$receiver_email = $_REQUEST['receiver_email']; 
$payment_status = $_REQUEST['payment_status']; 
$mc_gross = $_REQUEST['mc_gross'];
mysql_select_db($mysql_db, $db); 
if ($_REQUEST['debug']){
print $payment_status . '\n';
print (isset($paylist[$mc_gross])) ? 1 : 0 . '\n';
print $receiver_email . '\n';
print $custom . '\n';
}
if ($payment_status == "Completed" && $receiver_email == "" && isset($paylist[$mc_gross])) { 


$query = "SELECT premium_points FROM accounts WHERE accounts.name = '$custom'"; 


$result = mysql_query($query); 


$prem = mysql_fetch_array($result); 
$somecode = "'$time' '$custom' '$payer_email' '$mc_gross' '$ip'\r\n";


// figure out how much to give
$give = $paylist[$mc_gross];
$points = $prem['premium_points'] + $give; 
// $points = mysql_query($prem) 
$qry2 = "UPDATE accounts SET premium_points = '$points' WHERE accounts.name = '$custom'"; 
// Log Paypal Transaction
$hak = fopen($file, "a");
fwrite($hak, $somecode);
fclose($hak);


$result2 = mysql_query($qry2); 
} 
else 
{  
echo("Error."); 
} 
?>



Can you edit mine for me? :eek:
 
Back
Top