yo guys ive got a paygol script and well it works but its on a white background.
PAYGOL.PHP SCRIPT
IPN.PHP SCRIPT
WHY IS THIS ON A WHITE BACKGROUND? HELP REP++++
- - - Updated - - -
?!?1
PAYGOL.PHP SCRIPT
PHP:
<!-- PayGol JavaScript -->
<script src="http://www.paygol.com/micropayment/js/paygol.js" type="text/javascript"></script>
<!-- PayGol Form -->
<form name="pg_frm">
<input type="hidden" name="pg_serviceid" value="50321">
<input type="hidden" name="pg_currency" value="EUR">
<input type="hidden" name="pg_name" value="Account Number">
<input type="hidden" name="pg_custom" value="">
<!-- With Option buttons -->
<input type="radio" name="pg_price" value="1"checked>3 Points on QunteOT for 2 euro<p>
<input type="radio" name="pg_price" value="2">6 Points on QunteOT for 4 euro<p>
<input type="radio" name="pg_price" value="3">18 Points on QunteOT for 10 euro<p>
<input type="hidden" name="pg_return_url" value="http://qunteot.sytes.net/?subtopic=shopsystem">
<input type="hidden" name="pg_cancel_url" value="http://qunteot.sytes.net">
<input type="image" name="pg_button" class="paygol" src="http://www.paygol.com/micropayment/img/buttons/175/yellow_en_pwp.png" border="0" alt="Make payments with PayGol: the easiest way!" title="Make payments with PayGol: the easiest way!" onClick="pg_reDirect(this.form)">
</form>
IPN.PHP SCRIPT
PHP:
<?php
mysql_select_db('myserver', mysql_connect('localhost', 'root', 'dal**********'));
$file = 'paygol.log';
$accountid = $_GET['custom'];
$transactionDate= $_SESSION['time'];
$currency = $_GET['currency'];
$sender = $_GET['sender'];
$price = $_GET['price'];
// check that the request comes from PayGol server
if(!in_array($_SERVER['REMOTE_ADDR'],
array('109.70.3.48', '109.70.3.146', '109.70.3.58'))) {
header("HTTP/1.0 403 Forbidden");
die("Error: Unknown IP");
}
else
{
if ($currency == "EUR"){
if ($price == 2) $amount = 3;
if ($price == 4) $amount = 6;
if ($price == 10) $amount = 18;
$log = "Received ".$price." ".$currency." from ".$sender." For ".$amount." points to account ".$accountid."";
$add = mysql_query("UPDATE `accounts` SET `premium_points` = `premium_points` + '".$amount."' WHERE `id` = '".$accountid."' ");
}
$open = fopen($file, "a");
fwrite($open, $log);
fwrite($open, "\r\n");
fclose($open);
}
?>
WHY IS THIS ON A WHITE BACKGROUND? HELP REP++++
- - - Updated - - -
?!?1
Last edited by a moderator: