<?php
/**
* This is shop system taken from Gesior, modified for MyAAC.
*
* @name myaac-gesior-shop-system
* @author Gesior <[email protected]>
* @author Slawkens <[email protected]>
* @website github.com/slawkens/myaac-gesior-shop-system
* @version 2.1
*/
require_once('../common.php');
require_once(SYSTEM . 'functions.php');
require_once(SYSTEM . 'init.php');
require_once(LIBS . 'shop-system.php');
require_once(PLUGINS . 'gesior-shop-system/config.php');
if(!isset($config['paypal']) || !count($config['paypal']) || !count($config['paypal']['options']))
die('PayPal disabled.');
$ip = $_SERVER['REMOTE_ADDR'];
require(LIBS . 'paypal.php');
$ipn = new PaypalIPN();
// Use the sandbox endpoint during testing.
if(isset($config['paypal']['use_sandbox']) && $config['paypal']['use_sandbox']) {
$ipn->useSandbox();
}
$ipn->usePHPCerts();
$verified = $ipn->verifyIPN();
if (!$verified) {
log_append('paypal_scammer.log', $ip);
die('Access denied.');
}
$paylist = $config['paypal']['options'];
$custom = stripslashes(trim($_REQUEST['custom']));
$payer_email = $_REQUEST['payer_email'];
$receiver_email = $_REQUEST['receiver_email'];
$business = $_REQUEST['business'];
$payment_status = $_REQUEST['payment_status'];
$payer_status = $_REQUEST['payer_status'];
$mc_gross = $_REQUEST['mc_gross'];
$mc_currency = $_REQUEST['mc_currency'];
$payer_status = $_REQUEST['payer_status'];
$time = date('d.m.Y, H:i');
if(strtolower($payment_status) == 'completed' && $business == $config['paypal']['email']
&& isset($paylist[$mc_gross]) && strtolower($mc_currency) == strtolower($config['paypal']['currency_code']))
{
$account = new OTS_Account();
$account->load($custom);
if($account->isLoaded()) {
if(add_points($account, $paylist[$mc_gross])) {
log_append('paypal.log', "$time;$custom;$payer_email;$mc_gross:$mc_currency;$receiver_email;$payment_status;$ip;$business;$payer_status");
}
}
}
else
echo('Error.');
header("HTTP/1.1 200 OK");
?>
if(add_points($account, $paylist[$mc_gross])) {
log_append('paypal.log', "$time;$custom;$payer_email;$mc_gross:$mc_currency;$receiver_email;$payment_status;$ip;$business;$payer_status");
INSERT into store_history SET name = :account, description = "Points ADD From PayPal", coin_amount = :item_count, time = :time ');
View attachment 39829
Any sugestion?
Yes i did.Did you install the .lua script which can be found in your main MyAAC directory?
ok ty, but how can add items in shopYou need to install the shop by uploading the correct file to the admin panel and not just extract the files.
fixed ???
No ..fixed ???
Here's the fix:
Change table links color to white · slawkens/myaac-gesior-shop-system@a28df1d
This is shop system taken from Gesior, modified for MyAAC. - slawkens/myaac-gesior-shop-systemgithub.com
Tks again my friend!Here's the fix:
Change table links color to white · slawkens/myaac-gesior-shop-system@a28df1d
This is shop system taken from Gesior, modified for MyAAC. - slawkens/myaac-gesior-shop-systemgithub.com