Advertisement
Guest User

Untitled

a guest
Jun 8th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1.  
  2.  
  3. <?php
  4. /**
  5. *
  6. * @ This file is created by deZender.Net
  7. * @ deZender (PHP5 Decoder for SourceGuardian & phpSHIELD)
  8. *
  9. * @ Version : 1.1.6.0
  10. * @ Author : DeZender
  11. * @ Release on : 02.06.2013
  12. * @ Official site : http://DeZender.Net
  13. *
  14. */
  15.  
  16. class Min_Result {
  17. public $_result = null;
  18. public $_offset = 0;
  19. public $num_rows = null;
  20.  
  21. public function Min_Result($E) {
  22. $this->_result = $E;
  23. }
  24.  
  25. public function fetch_assoc() {
  26. return $this->_result->fetchArray( SQLITE3_ASSOC );
  27. }
  28.  
  29. public function fetch_row() {
  30. return $this->_result->fetchArray( SQLITE3_NUM );
  31. }
  32.  
  33. public function fetch_field() {
  34. $e = $this->_offset++;
  35. $S = $this->_result->columnType( $e );
  36. return (object)array( 'name' => $this->_result->columnName( $e ), 'type' => $S, 'charsetnr' => ($S == SQLITE3_BLOB ? 63 : 0) );
  37. }
  38.  
  39. public function __desctruct() {
  40. return $this->_result->finalize( );
  41. }
  42. }
  43.  
  44. class Min_SQLite {
  45. public $extension = 'SQLite';
  46. public $server_info = null;
  47. public $affected_rows = null;
  48. public $error = null;
  49. public $_link = null;
  50.  
  51. public function Min_SQLite($Zb) {
  52. $this->server_info = sqlite_libversion( );
  53. $this->_link = new SQLiteDatabase( $Zb );
  54. }
  55.  
  56. public function query($D, $Lf = false) {
  57. $md = ($Lf ? 'unbufferedQuery' : 'query');
  58. $E = @$this->_link->$md( $D, SQLITE_BOTH, $k );
  59.  
  60. if (!$E) {
  61. $this->error = $k;
  62. return false;
  63. } else {
  64. if ($E === true) {
  65. $this->affected_rows = $this->changes( );
  66. return true;
  67. }
  68. }
  69.  
  70. return new Result( $E );
  71. }
  72.  
  73. public function quote($L) {
  74. return '\'' . sqlite_escape_string( $L ) . '\'';
  75. }
  76.  
  77. public function store_result() {
  78. return $this->_result;
  79. }
  80.  
  81. public function result($D, $l = 0) {
  82. $E = $this->query( $D );
  83.  
  84. if (!is_object( $E )) {
  85. return false;
  86. }
  87.  
  88. $G = $E->_result->fetch( );
  89. return $G[$l];
  90. }
  91. }
  92.  
  93. class Min_Result {
  94. public $_result = null;
  95. public $_offset = 0;
  96. public $num_rows = null;
  97.  
  98. public function Min_Result($E) {
  99. $this->_result = $E;
  100.  
  101. if (method_exists( $E, 'numRows' )) {
  102. $this->num_rows = $E->numRows( );
  103. }
  104.  
  105. }
  106.  
  107. public function fetch_assoc() {
  108. $G = $this->_result->fetch( SQLITE_ASSOC );
  109.  
  110. if (!$G) {
  111. return false;
  112. }
  113. ..............................................................................................
  114. .............................
  115. ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement