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
- *
- */
- /**
- * @package MultiCS Panel
- * @authors Xtream-Codes
- */
- class mcdb {
- /**
- * Amount of queries made
- *
- * @access private
- * @var int
- */
- public $num_queries = 0;
- /**
- * MySQL result, which is either a resource or boolean.
- *
- * @access protected
- * @var mixed
- */
- protected $result = null;
- /**
- * Last query made
- *
- * @access private
- * @var array
- */
- public $last_query = null;
- /**
- * Database Username
- *
- * @access protected
- * @var string
- */
- protected $dbuser = null;
- /**
- * Database Password
- *
- * @access protected
- * @var string
- */
- protected $dbpassword = null;
- /**
- * Database Name
- *
- * @access protected
- * @var string
- */
- protected $dbname = null;
- /**
- * Database Host
- *
- * @access protected
- * @var string
- */
- protected $dbhost = null;
- /**
- * Database Handle
- *
- * @access protected
- * @var string
- */
- protected $dbh = null;
- /**
- * Connects to the database server and selects a database
- *
- * @param string $dbuser MySQL database user
- * @param string $dbpassword MySQL database password
- * @param string $dbname MySQL database name
- * @param string $dbhost MySQL database host
- */
- public function __construct($dbuser, $dbpassword, $dbname, $dbhost) {
- register_shutdown_function( array( $this, '__destruct' ) );
- $this->dbuser = $dbuser;
- $this->dbpassword = $dbpassword;
- $this->dbname = $dbname;
- $this->dbhost = $dbhost;
- $this->db_connect( );
- }
- ........................................................
- .............................
- .........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement