Zaul
I'm The Devil Scripter
- Joined
- May 13, 2012
- Messages
- 233
- Reaction score
- 4
Hello my name is Zaul Mcirstezki.
I have never work with Paygol so i would need some help with it!
The problem is i get unknown ip when i enter the page!
Pay.php
And im not sure if those are right but i think they are!
from buypoints.php
Thats all the files i got!
I have never work with Paygol so i would need some help with it!
The problem is i get unknown ip when i enter the page!
Pay.php
PHP:
<?php
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");
}
//Get all parameters from PayGol
$message_id = $_GET[message_id];
$shortcode = $_GET[shortcode];
$keyword = $_GET[keyword];
$message = $_GET[message];
$sender = $_GET[sender];
$operator = $_GET[operator];
$country = $_GET[country];
$custom = $_GET[custom];//
$price = $_GET[price];
$currency = $_GET[currency];
$points = $_GET[points];
//Replace these parameters by your database details
$dbhost = "localhost"; //Your database domain
$dbuser = "ichangethisbecuaseyoudontneedtoknow"; //Database username
$dbpassword = "ichangethisbecuaseyoudontneedtoknow"; //Database password
$db = "ichangethisbecuaseyoudontneedtoknow"; //Database name
//Connect to Database
$conn = mysql_connect($dbhost, $dbuser, $dbpassword);
mysql_select_db($db);
$sql = "UPDATE accounts SET premium_points = premium_points+$points WHERE name = '$custom'";
mysql_query($sql);
mysql_close($conn);
?>
And im not sure if those are right but i think they are!
from buypoints.php
PHP:
$config['paygol']= array();
$config['paygol'][0]['pg_serviceid'] = 15062; #your paylouge number
$config['paygol'][0]['paygol_points'] = 1;
$config['paygol'][0]['pg_price'] = "1";
$config['paygol'][1]['pg_serviceid'] = 15063; #your partouloge number
$config['paygol'][1]['paygol_points'] = 5;
$config['paygol'][1]['paygol_price'] = "5";
$config['paygol'][2]['pg_serviceid'] = 15064; #your partouloge number
$config['paygol'][2]['paygol_points'] = 10;
$config['paygol'][2]['paygol_price'] = "10";
Thats all the files i got!