Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $sql_host = "localhost";
- $sql_user = "rapidpkn_store";
- $sql_pass = "Australia77";
- $sql_data = "rapidpkn_store";
- $pp_config = array(
- 'business' => "luisantonio.victoria@hotmail.com", // edit
- 'cmd' => "_xclick",
- 'item_name' => "Donation", // edit if you want
- 'address_override' => 1,
- 'no_shipping' => 1,
- 'return' => "http://rapidpk.net/store/", // edit
- 'cancel_return' => "http://rapidpk.net/store/", // edit
- 'notify_url' => "http://rapidpk.net/store/pp_ipn.php", // edit
- 'cpp_header_image' => "http://rapidpk.net/store/assets/img/logo.png" // edit
- );
- define("DEBUG", 1);
- define("USE_SANDBOX", 0);
- define("LOG_FILE", "./ipn.log");
- function formatName($string) {
- return ucwords(str_replace("_", " ", $string));
- }
- function cleanPass($string) {
- return preg_replace("/[^A-Za-z0-9 \-]/", ' ', $string);
- }
- function cleanString($string) {
- return preg_replace("/[^A-Za-z0-9 ]/", ' ', $string);
- }
- function cleanInt($string) {
- return preg_replace("/[^0-9]/", ' ', $string);
- }
- function encrypt($data, $key) {
- $size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_CBC);
- $iv = mcrypt_create_iv($size, MCRYPT_RAND);
- $crypt = mcrypt_encrypt(MCRYPT_BLOWFISH, $key, $data, MCRYPT_MODE_CBC, $iv);
- return bin2hex($iv . $crypt);
- }
- function decrypt($data, $key) {
- $iv = pack("H*", substr($data, 0, 16));
- $x = pack("H*", substr($data, 16));
- $res = mcrypt_decrypt(MCRYPT_BLOWFISH, $key, $x, MCRYPT_MODE_CBC, $iv);
- return $res;
- }
- ?>
Add Comment
Please, Sign In to add comment