• 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!

PHP got a problem with my paygol scripts!

Status
Not open for further replies.

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
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!
 
Zisly i look at many thread you have answer on and most of them are the same. On person ask for help and when he say the words i have fix it! Then you come and say please share with us.

EDIT: You are Web Developer right? Then why do you not make all those scripts and help the players?

just sayin
 
Zisly i look at many thread you have answer on and most of them are the same. On person ask for help and when he say the words i have fix it! Then you come and say please share with us.

EDIT: You are Web Developer right? Then why do you not make all those scripts and help the players?

just sayin
I've said it in 2 threads I think, maybe not even that. Or are you saying I should do this to all threads?

Yes, I'm a web developer. I help people if I can, if the person actually tries himself for real and if the person would help someone else with his knowledge. Why do you expect help but can't help others?... say if you had actually shared your answer here now, I'd help you with the next problem. I'm pretty sure another problem will arise soon...
 
You always come after someone said i have fix it.

and i think about people who selling those script if i release mine, that people do not earn a shit!

Please close this thread!
 
Status
Not open for further replies.
Back
Top