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

Lua I have found Paygol script :) but help :S

i tired but didn't Got it working :S

need it too

Daopay have problem with sms and players got free points :S :S
 
Assuming you know how to add it
PHP:
<?php

mysql_select_db('databasename', mysql_connect('localhost', 'database_user', 'database_password')); //change this
$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 == 3) $amount = 6;  //change this
		if ($price == 7) $amount = 15; //change this
		if ($price == 14) $amount = 32; //change this
		if ($price == 28) $amount = 65; //change this
			$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); 
}
?>
 
Hmm doesnt work i think, i cant get connected to the php file. if i doing right www.mywebsite.com/paygol.php

Please help bro :( i suck on php xD, i gone replace the text which i wrote on the theard or paste this you gave me below it? Because i replaced it :S
 
Help please how can the player now recive points

By the way i understood what you mean Spider Thx rep :) but could you make so they recive points?
 
i gave you the script to add points xD

if you are not sure how to add it
check my tutorial about alertpay it is same way to add it
 
Your joking? Seriously is that the script if it i love you!!! Could you explain to me then how to add it and which character recive the points?

Is the script for modern?

I trying to follow the tutorial but its not easy :(
 
Last edited:
yes this is for modern
create paygol.php in system/pages
PHP:
<?php
include("paygol/paygol.php");	
?>
and create new folder in www name it paygol
then create in it new file paygol.php
PHP:
add here the script you get from paygol
then create another phpfile ipn.php
and add here the one in my previous post
 
Bro i have done everything you told me and it make paygol.log and etc.. but my account doesnt recive points :(

I dont see these options on the website :/

i dont know why i got this:
Code:
if ($currency == "EUR"){ 
        if ($price == 3) $amount = 6;  //change this 
        if ($price == 7) $amount = 15; //change this 
        if ($price == 14) $amount = 32; //change this 
        if ($price == 28) $amount = 65; //change this
 
i know but, they cant even chose options they deosnt show on the page and if i think how you mean then the options need example id. 10578 20 Points

And still my account doesnt get any points :(
 
should be something like this
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="10578">
 <input type="hidden" name="pg_currency" value="EUR">
 <input type="hidden" name="pg_name" value="name">
 <input type="hidden" name="pg_custom" value="'.$_SESSION['account_id'].'">

 <!-- With Option buttons -->
 <input type="radio" name="pg_price" value="1"checked>4 Points €3<p>
 <input type="radio" name="pg_price" value="2">10 Points €7<p>
 <input type="radio" name="pg_price" value="3">20 Points €14<p>
 <input type="radio" name="pg_price" value="4">30 Points €20<p>
 <input type="radio" name="pg_price" value="5">60 Points €40<p>
 <input type="hidden" name="pg_return_url" value="http://spider-server.com/index.php/shop/main">
 <input type="hidden" name="pg_cancel_url" value="">
 <input type="image" name="pg_button" class="paygol" src="http://www.paygol.com/micropayment/img/buttons/125/pay_en_3.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>
 
and where should i add this bro :(

Sorry for i asking many question but i sucks atm on websites sorry sorry :(

look bro on this server they got paygol system and i want the same, could you make it: http://osiann.com/?subtopic=paygol

Please please bro love you <3!
 
Back
Top Bottom