Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* @author dhtmlx.com @license GPL, see license.txt */ require_once("db_common.php..

Decoded Output download

<?php
/*
	@author dhtmlx.com
	@license GPL, see license.txt
*/
require_once("db_common.php");
/*! SQLite implementation of DataWrapper
**/
class SQLiteDBDataWrapper extends DBDataWrapper{

	public function query($sql){
		LogMaster::log($sql);
		
		$res = sqlite_query($this->connection,$sql);
		if ($res === false)
			throw new Exception("SQLLite - sql execution failed
".sqlite_error_string(sqlite_last_error($this->connection)));
			
		return $res;
	}
	
	public function get_next($res){
		$data = sqlite_fetch_array($res, SQLITE_ASSOC);
		return $data;
	}
	
	public function get_new_id(){
		return sqlite_last_insert_rowid($this->connection);
	}
	
	public function escape($data){
		return sqlite_escape_string($data);
	}		
}
?>

Did this file decode correctly?

Original Code

<?php
/*
	@author dhtmlx.com
	@license GPL, see license.txt
*/
require_once("db_common.php");
/*! SQLite implementation of DataWrapper
**/
class SQLiteDBDataWrapper extends DBDataWrapper{

	public function query($sql){
		LogMaster::log($sql);
		
		$res = sqlite_query($this->connection,$sql);
		if ($res === false)
			throw new Exception("SQLLite - sql execution failed\n".sqlite_error_string(sqlite_last_error($this->connection)));
			
		return $res;
	}
	
	public function get_next($res){
		$data = sqlite_fetch_array($res, SQLITE_ASSOC);
		return $data;
	}
	
	public function get_new_id(){
		return sqlite_last_insert_rowid($this->connection);
	}
	
	public function escape($data){
		return sqlite_escape_string($data);
	}		
}
?>

Function Calls

None

Variables

None

Stats

MD5 bb34973bb8efe32acb3eee090743e47d
Eval Count 0
Decode Time 108 ms