Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for SourceGuardian & phpSHIELD)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- class Min_Result {
- public $_result = null;
- public $_offset = 0;
- public $num_rows = null;
- public function Min_Result($E) {
- $this->_result = $E;
- }
- public function fetch_assoc() {
- return $this->_result->fetchArray( SQLITE3_ASSOC );
- }
- public function fetch_row() {
- return $this->_result->fetchArray( SQLITE3_NUM );
- }
- public function fetch_field() {
- $e = $this->_offset++;
- $S = $this->_result->columnType( $e );
- return (object)array( 'name' => $this->_result->columnName( $e ), 'type' => $S, 'charsetnr' => ($S == SQLITE3_BLOB ? 63 : 0) );
- }
- public function __desctruct() {
- return $this->_result->finalize( );
- }
- }
- class Min_SQLite {
- public $extension = 'SQLite';
- public $server_info = null;
- public $affected_rows = null;
- public $error = null;
- public $_link = null;
- public function Min_SQLite($Zb) {
- $this->server_info = sqlite_libversion( );
- $this->_link = new SQLiteDatabase( $Zb );
- }
- public function query($D, $Lf = false) {
- $md = ($Lf ? 'unbufferedQuery' : 'query');
- $E = @$this->_link->$md( $D, SQLITE_BOTH, $k );
- if (!$E) {
- $this->error = $k;
- return false;
- } else {
- if ($E === true) {
- $this->affected_rows = $this->changes( );
- return true;
- }
- }
- return new Result( $E );
- }
- public function quote($L) {
- return '\'' . sqlite_escape_string( $L ) . '\'';
- }
- public function store_result() {
- return $this->_result;
- }
- public function result($D, $l = 0) {
- $E = $this->query( $D );
- if (!is_object( $E )) {
- return false;
- }
- $G = $E->_result->fetch( );
- return $G[$l];
- }
- }
- class Min_Result {
- public $_result = null;
- public $_offset = 0;
- public $num_rows = null;
- public function Min_Result($E) {
- $this->_result = $E;
- if (method_exists( $E, 'numRows' )) {
- $this->num_rows = $E->numRows( );
- }
- }
- public function fetch_assoc() {
- $G = $this->_result->fetch( SQLITE_ASSOC );
- if (!$G) {
- return false;
- }
- ..............................................................................................
- .............................
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement