<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |
    |              on 2023-02-28 22:05:09              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 namespace GDPlayer; class Conn { protected $conn = null; protected $error = false; protected $errorMsg = ''; protected $persistent = false; protected $config = []; public function __construct() { goto swWkaJ1BqCM7MgO_; aqvOZlNWJ_6CErL9: rFmKUCImSTUKAekY: goto eyZBQHZTltkOFbKB; MUZw0ibTEXvwoaga: $this->persistent = DB_ATTR_PERSISTENT; goto aqvOZlNWJ_6CErL9; XD7cV8FEsw9i27oK: session_write_close(); goto MUZw0ibTEXvwoaga; LOGaPdfS2UvsaTEg: if (!defined("\104\102\137\101\x54\x54\122\x5f\120\x45\122\123\x49\123\124\105\x4e\124")) { goto rFmKUCImSTUKAekY; } goto XD7cV8FEsw9i27oK; swWkaJ1BqCM7MgO_: session_write_close(); goto LOGaPdfS2UvsaTEg; eyZBQHZTltkOFbKB: $this->config = array(\PDO::ATTR_PERSISTENT => $this->persistent, \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC); goto VDLyr147hbl9RMHi; VDLyr147hbl9RMHi: } public function getConnection() { goto EW5fkaHIDHJ8bHba; QKBon01p7Ppv_PgN: return $this->conn; goto xGinEmHzBYygr1tT; M_LE8V6C3PGtMO0b: try { goto YedFamnP880MuB8G; OTPdYglb0XZsQxyf: $this->conn = new \PDO($dsn, DB_USERNAME, DB_PASSWORD, $this->config); goto lwHm_n5T15P2v1Cz; YedFamnP880MuB8G: session_write_close(); goto F3R3GNZ6pmthKOg7; F3R3GNZ6pmthKOg7: $dsn = sprintf("\155\x79\x73\x71\x6c\x3a\x68\157\x73\x74\75\x25\163\73\x64\142\156\x61\x6d\x65\75\45\x73\x3b\x70\157\x72\164\x3d\x25\x64\x3b\143\150\x61\162\163\x65\164\x3d\165\164\x66\70\x6d\x62\64", DB_HOSTNAME, DB_NAME, DB_PORT); goto OTPdYglb0XZsQxyf; lwHm_n5T15P2v1Cz: } catch (\PDOException $e) { goto Le13pyJqZFUAc1lQ; pyOPhPgAVNnrBraK: $this->conn = null; goto nokCsCLiX_Oueh9g; nokCsCLiX_Oueh9g: $this->error = true; goto kXai_pscfS8C85fI; kXai_pscfS8C85fI: $this->errorMsg = $e->getMessage(); goto vKauzRq5U8ldDbe_; Le13pyJqZFUAc1lQ: session_write_close(); goto pyOPhPgAVNnrBraK; vKauzRq5U8ldDbe_: } goto QKBon01p7Ppv_PgN; EW5fkaHIDHJ8bHba: session_write_close(); goto M_LE8V6C3PGtMO0b; xGinEmHzBYygr1tT: } public function isConnectionError() { session_write_close(); return $this->error; } public function getErrorMessage() { session_write_close(); return $this->errorMsg; } public function closeConnection() { goto Cr1azwfPYMH8exA0; qMy3Cvsi9UtTqSjH: $this->error = false; goto h9aDPj5S02EquFcX; h9aDPj5S02EquFcX: $this->errorMsg = ''; goto qlCc6TFZliRyWeRV; Cr1azwfPYMH8exA0: session_write_close(); goto idXEUNCsZN26Z534; idXEUNCsZN26Z534: $this->conn = null; goto qMy3Cvsi9UtTqSjH; qlCc6TFZliRyWeRV: } public function __destruct() { goto FIhrZoDuM2bYf5rB; FIhrZoDuM2bYf5rB: session_write_close(); goto TenKayNE1vK6tr70; l416Txx0eCASjWGv: nIyt7k535OxAehQZ: goto tZ0eKZSdYK7t6NUY; SyWlHq4kw2fHw5PV: $this->closeConnection(); goto l416Txx0eCASjWGv; TenKayNE1vK6tr70: if ($this->persistent) { goto nIyt7k535OxAehQZ; } goto SyWlHq4kw2fHw5PV; tZ0eKZSdYK7t6NUY: } }
