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

Modern AAC - Premium Points

HeberPcL

[PowerOT.com.br]
Joined
Aug 21, 2007
Messages
1,292
Reaction score
51
Location
Brazil
GitHub
heberpcl
injection.php
PHP:
<?php
    if(!defined('BASEPATH')) exit('No direct script access allowed');

	//** Connection to the database **// 
	$ots = POT::getInstance(); 
	$ots->connect(POT::DB_MYSQL, connection()); 
	$SQL = POT::getInstance()->getDBHandle(); 

	$player = $GLOBALS['player'];
	$pp = $SQL->query("SELECT `premium_points` FROM `players` WHERE `id` = '".$player->getId()."';");
	
	echo "
		<div class=\"bar\" align=\"center\"> <font size=4> Premium Points </font> </div>
		".$frags."
	";
?>

Error:
PHP:
A PHP Error was encountered

Severity: 4096

Message: Object of class PDOStatement could not be converted to string

Filename: pp/injection.php

Line Number: 14



How fix?
 
PHP:
<?php 
    if(!defined('BASEPATH')) exit('No direct script access allowed'); 

    //** Connection to the database **//  
    $ots = POT::getInstance();  
    $ots->connect(POT::DB_MYSQL, connection());  
    $SQL = POT::getInstance()->getDBHandle();  

    $player = $GLOBALS['player']; 
	$aid = $SQL->query("SELECT `account_id` FROM `players` WHERE `id` = {$player->getId()} ;")->fetch(); 
    $pp = $SQL->query("SELECT `premium_points` FROM `accounts` WHERE `id` = ".$aid['account_id']." ;")->fetch(); 


	
    echo " 
        <div class=\"bar\" align=\"center\"> <font size=4> Premium Points  </font> </div> 
		
      <tr><td width='90%'><center>".$pp['premium_points']."</center></td></tr>
    "; 
?>
 
PHP:
<?php 
    if(!defined('BASEPATH')) exit('No direct script access allowed'); 

    //** Connection to the database **//  
    $ots = POT::getInstance();  
    $ots->connect(POT::DB_MYSQL, connection());  
    $SQL = POT::getInstance()->getDBHandle();  

    $player = $GLOBALS['player']; 
	$aid = $SQL->query("SELECT `account_id` FROM `players` WHERE `id` = {$player->getId()} ;")->fetch(); 
    $pp = $SQL->query("SELECT `premium_points` FROM `accounts` WHERE `id` = ".$aid['account_id']." ;")->fetch(); 


	
    echo " 
        <div class=\"bar\" align=\"center\"> <font size=4> Premium Points  </font> </div> 
		
      <tr><td width='90%'><center>".$pp['premium_points']."</center></td></tr>
    "; 
?>

Jetro...
Can you to convert for GESIOR?

Thanks man.
 
Back
Top