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

GESIOR 2012 - Version 1.0.1 for 0.2.x, 0.3.6 and all 0.4

mhm. I read their code and got one question:
PHP:
<?php

error_reporting (1);

include('sms_conf.php');



$dbc = mysql_connect($host,$user,$pass) or die("DB conection error");
mysql_select_db($db,$dbc);

$name=$_GET['name'];
$codigo=$_POST['codigo'];


if (isset($_POST['formcodigo']))
{
$name=$_POST['name'];

$QueryString	= "LinkUrl=".urlencode((($_SERVER['HTTPS']=='on')?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$QueryString .= "&codigo=" .urlencode($codigo);
$QueryString .= "&idservicio=" .$idservicio;



if(intval(get_cfg_var('allow_url_fopen')) && function_exists('file_get_contents'))
{
		$result=@file_get_contents("http://contenidopago.com/codigoval.php?".$QueryString); 
}
elseif(intval(get_cfg_var('allow_url_fopen')) && function_exists('file'))
{
if($content = @file("http://contenidopago.com/codigoval.php?".$QueryString))
$result=@join('', $content);
}
elseif(function_exists('curl_init'))
{
$ch = curl_init ("http://contenidopago.com/codigoval.php?".$QueryString);
		curl_setopt ($ch, CURLOPT_HEADER, 0);
		curl_exec ($ch);
		if(curl_error($ch))
				print "Error processing request";

		curl_close ($ch);
}
else {
		print "It appears that your web host has disabled all functions for handling remote pages and as a result the BackLinks software will not function on your web page. Please contact your web host for more information.";
}


if ($result=='ok')
{
$dbc = mysql_connect($host,$user,$pass) or die("DB conection error");
mysql_select_db($db,$dbc);



if(!(empty($name)))
{
		$sql = "UPDATE accounts SET premium_points = premium_points + $puntos WHERE name = '$name'";
		$res = mysql_query($sql,$dbc);
	
		if(mysql_affected_rows() == 0)
	{
				die('This username does not exist: <font color="blue">'.$name.'</font>');	
	}
		
die("Codigo : $codigo	ok , Points added to your account");	
}
else {

	die('You did not set the user!'); 
 } 
		
}

if ($result=='no')
{
die ('This code is already in used');
}

}

$puntos=$_GET['puntos'];

$hf = fopen('http://www.contenidopago.com/validate.php',r);
$line = fgets ($hf);
$restringidas = explode('|',$line);


$ip=$_SERVER['REMOTE_ADDR'];

if(!in_array($ip,$restringidas))
	die("You are not able to use this system!");


if ($_GET['check']==1)

	{
		if ($name!='')
		{
		$sql="SELECT * FROM accounts WHERE name='$name'";
		$result=mysql_query($sql);
		 if (mysql_num_rows($result) == 0 )
		 	{
		 	die ("No existe el usuario $name");
			} 
			else 
			{
			die('ok');	
			}
		}
			
	}


if ($_GET['paypal']==1)

	{
	
	if(!(empty($name)))
		{
			 $sql = "UPDATE `accounts` SET `premium_points` = `premium_points` + $puntos WHERE `name` = \"".$name."\"";
			$res = mysql_query($sql,$dbc);
	 		 if(mysql_affected_rows() == 0)
					die('This username does not exist: '.$name.'');
		}
	else
			die('You did not set the user!');
	
	die ('ok');
	
	}


if(!(empty($name))){
		$sql = "UPDATE `accounts` SET `premium_points` = `premium_points` + $puntos WHERE `name` = \"".$name."\"";
		$res = mysql_query($sql,$dbc);
	 	 if(mysql_affected_rows() == 0)
			 	 die('This username does not exist: '.$name.'');
	}
else
		die('You did not set the user!');
	
die ('ok');

?>
What the fuck?!
 
I told them its quite bugged code :/ So i told them i will ask Gesior if he could fix new one and you guys can upload to your website :D

So please gesior make :(

Thanks for everything :D
 
Contenidopago Rules, Fast payouts and support you 24/7!

Contenidopago +1!

GoGo Gesior :)
 
Tell me which version [ for TFS 0.3.6 or 0.4, I will not add it to 0.2, it requires a bit other script ] do you use, so you can add it there and you will test.
I got no idea how it works, I don't understand portugales/spanish.
I've added it to my test website:
Buypoints - Forgotten
(login 2/2 or make own account)
I don't know when they report/if they 'report' codes/points, or user has to write code he received on acc. maker site. Maybe it does not add points, maybe it adds it twice or add it without limits.

IF YOU USE CONTENIDOPAGO WRITE IN THIS THREAD, I WILL SEND YOU CODE AND 'HOW TO INSTALL' AND YOU WILL TEST IF IT WORKS OR NOT.
 
Gesior i added you on skype, talk with me there. Since i have contact with contenidopago by msn.

Btw version 0.3.6 :)

- - - Updated - - -

It Works :)
 
New version of acc. maker (1.0.2) will be today on evening.
Changes:
- added contenidopago automatic SMS system (tested with Cyko and programmer of contenidopago)
 
Awesome!!!! Thanks Gesior!
 
Version 1.0.1 with contenidopago system:
https://github.com/gesior/Gesior2012/tree/TFS-0.3.6_and_0.4_to_rev_3703 - for TFS 0.3.6 and 0.4 to rev. 3703
https://github.com/gesior/Gesior2012/tree/TFS-0.4_rev_3703+ - for TFS 0.4 rev. 3703+
How to make it work:
1. You can disable it in pages/buypoints.php
2. Config is in 'custom_scripts/contenidopago/config.php'. Set valid (same as in config.php) URL to report script when you register 'tibia auto' on contenidopago page. After registration of 'tibia auto' you will get ID of service. Copy it to config in 'custom_scripts' and set same amount of points for SMS on contenidopago page and in config.php of contenidopago.

Also you can view how it looks:
Buypoints - Forgotten
(login 2, password 2)

I know that it does not work for all countries, because of contenidopago bug/bugs. They should fix it in 1-2 weeks. When it will work fine I will release it as new version 1.0.2.
 
Yeah, nice gesior, really!

- - - Updated - - -

Guilds Have bug, When I create a guild I can manage it the first time, but when you refresh or login again the players who you invited they desapear, I also can't manage it, and It don't show the guild name in my character too :/

- - - Updated - - -

Found the "Error", you have to do it without your character In-game.
But if you do it in game, you have trouble of errors and you can create more guilds with the same name :S
 
As I heard about paygol, they are thieving your cash.
 
Yeah, nice gesior, really!

- - - Updated - - -

Guilds Have bug, When I create a guild I can manage it the first time, but when you refresh or login again the players who you invited they desapear, I also can't manage it, and It don't show the guild name in my character too :/

- - - Updated - - -

Found the "Error", you have to do it without your character In-game.
But if you do it in game, you have trouble of errors and you can create more guilds with the same name :S
Go config.lua of TFS and change guild management to false (not in game)!
Then TFS will only LOAD informations about guilds from database, but not SAVE when you logout. So it won't override changes you made on website.

EDIT:

Default in TFS config.lua:
Lua:
ingameGuildManagement = true
If you use any acc. maker with guild management it should be:
Lua:
ingameGuildManagement = false
 
Last edited:
Back
Top