Advertisement
Guest User

Untitled

a guest
Oct 26th, 2013
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for SourceGuardian & phpSHIELD)
  6. *
  7. * @ Version : 1.1.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 02.06.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. /**
  15. * @package MultiCS Panel
  16. * @authors Xtream-Codes
  17. */
  18. class mcdb {
  19. /**
  20. * Amount of queries made
  21. *
  22. * @access private
  23. * @var int
  24. */
  25. public $num_queries = 0;
  26. /**
  27. * MySQL result, which is either a resource or boolean.
  28. *
  29. * @access protected
  30. * @var mixed
  31. */
  32. protected $result = null;
  33. /**
  34. * Last query made
  35. *
  36. * @access private
  37. * @var array
  38. */
  39. public $last_query = null;
  40. /**
  41. * Database Username
  42. *
  43. * @access protected
  44. * @var string
  45. */
  46. protected $dbuser = null;
  47. /**
  48. * Database Password
  49. *
  50. * @access protected
  51. * @var string
  52. */
  53. protected $dbpassword = null;
  54. /**
  55. * Database Name
  56. *
  57. * @access protected
  58. * @var string
  59. */
  60. protected $dbname = null;
  61. /**
  62. * Database Host
  63. *
  64. * @access protected
  65. * @var string
  66. */
  67. protected $dbhost = null;
  68. /**
  69. * Database Handle
  70. *
  71. * @access protected
  72. * @var string
  73. */
  74. protected $dbh = null;
  75.  
  76. /**
  77. * Connects to the database server and selects a database
  78. *
  79. * @param string $dbuser MySQL database user
  80. * @param string $dbpassword MySQL database password
  81. * @param string $dbname MySQL database name
  82. * @param string $dbhost MySQL database host
  83. */
  84. public function __construct($dbuser, $dbpassword, $dbname, $dbhost) {
  85. register_shutdown_function( array( $this, '__destruct' ) );
  86. $this->dbuser = $dbuser;
  87. $this->dbpassword = $dbpassword;
  88. $this->dbname = $dbname;
  89. $this->dbhost = $dbhost;
  90. $this->db_connect( );
  91. }
  92. ........................................................
  93. .............................
  94. .........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement