• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

PayPal log?

lenidas

New Member
Joined
Mar 18, 2010
Messages
149
Reaction score
0
Witam, gdzie mogę znaleźć historię transakcji przez PayPala (nie wchodząc na konto na paypalu). Chodzi mi o coś takiego jak dotpay.log
rep+
 
Mash moj skrypcik:
Code:
<?PHP
	$config = array("host" => "localhost", "user" => "root", "password" => "pass123", "database" => "ots", "email" => "PayPal Login", "mc_gross" => 5.00, "points" => 200);
	mysql_connect($config["host"], $config["user"], $config["password"]) or die(mysql_error());
	mysql_select_db($config["database"]) or die(mysql_error());

	if ($_REQUEST["payment_status"] == "Completed" && $_REQUEST["receiver_email"] == $config["email"] && $_REQUEST["mc_gross"] == $config["mc_gross"])
	{
		mysql_query("UPDATE `accounts` SET `premium_points` = `premium_points` + ".$config['points']." WHERE `name` = ".strtolower($_REQUEST['custom']).";");
		$log = fopen("./PayPal.log.txt", "a");
		fwrite($log, ">> ".date('d m Y - g:i A')." | Account: ".$_REQUEST['custom']);
		fclose($log);
	}
	else
		die "An error occured!<br />Please contact with administrator.";
?>
 
Last edited:
Back
Top