Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
namespace GDPlayer; class Conn { private $conn = null; private $error = false; private $e..
Decoded Output download
<? namespace GDPlayer; class Conn { private $conn = null; private $error = false; private $errorMsg = ''; private $persistent = false; public function __construct() { session_write_close(); $this->persistent = defined("DB_ATTR_PERSISTENT") ? DB_ATTR_PERSISTENT : false; } public function getConnection() { goto Q4uN9QJAa_1KCGX; JPI6yIxRtVUh_po: try { $this->conn = new \PDO("mysql:host=" . DB_HOSTNAME . ";dbname=" . DB_NAME . ";port=" . DB_PORT . ";charset=utf8mb4", DB_USERNAME, DB_PASSWORD, array(\PDO::ATTR_PERSISTENT => DB_ATTR_PERSISTENT, \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, \PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false)); } catch (\PDOException $e) { goto uxgfAO1A_1R8Mo9; uxgfAO1A_1R8Mo9: $this->conn = null; goto D_krWbRYA8I4eQE; UuWRDokC4Fhx88J: $this->errorMsg = $e->getMessage(); goto PxKzf4oUzIugQ9i; D_krWbRYA8I4eQE: $this->error = true; goto UuWRDokC4Fhx88J; PxKzf4oUzIugQ9i: } goto yku_FDt76rruSMr; Q4uN9QJAa_1KCGX: session_write_close(); goto JPI6yIxRtVUh_po; yku_FDt76rruSMr: return $this->conn; goto hTqogwx9LoK6o2p; hTqogwx9LoK6o2p: } public function isConnectionError() { session_write_close(); return $this->error; } public function getErrorMessage() { session_write_close(); return $this->errorMsg; } public function closeConnection() { goto OjauKOuBal2Rz21; f7CseM5tQKZb5kE: $this->errorMsg = ''; goto w8ZkfGLUawI6Pe1; ji84_RzqxNMvww2: $this->error = false; goto f7CseM5tQKZb5kE; OfSChdxHiahmxkR: $this->conn = null; goto ji84_RzqxNMvww2; OjauKOuBal2Rz21: session_write_close(); goto OfSChdxHiahmxkR; w8ZkfGLUawI6Pe1: } public function __destruct() { goto A1hcbfi20Q5qRSP; kUaoXz0e8a3k419: if ($this->persistent) { goto N_7NlDqfpU6pAWo; } goto etOweBKY1AT3gx1; nDdeskJnJds0neZ: N_7NlDqfpU6pAWo: goto b6nZ8QTBRUa9WQz; A1hcbfi20Q5qRSP: session_write_close(); goto kUaoXz0e8a3k419; etOweBKY1AT3gx1: $this->closeConnection(); goto nDdeskJnJds0neZ; b6nZ8QTBRUa9WQz: } }
?>
Did this file decode correctly?
Original Code
namespace GDPlayer; class Conn { private $conn = null; private $error = false; private $errorMsg = ''; private $persistent = false; public function __construct() { session_write_close(); $this->persistent = defined("\104\x42\x5f\101\x54\x54\x52\137\x50\105\122\x53\x49\123\124\105\x4e\124") ? DB_ATTR_PERSISTENT : false; } public function getConnection() { goto Q4uN9QJAa_1KCGX; JPI6yIxRtVUh_po: try { $this->conn = new \PDO("\x6d\171\x73\x71\x6c\x3a\150\157\x73\164\75" . DB_HOSTNAME . "\73\x64\x62\156\x61\155\145\x3d" . DB_NAME . "\x3b\x70\x6f\x72\164\x3d" . DB_PORT . "\x3b\143\x68\x61\162\163\x65\164\75\x75\164\146\70\155\142\x34", DB_USERNAME, DB_PASSWORD, array(\PDO::ATTR_PERSISTENT => DB_ATTR_PERSISTENT, \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, \PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false)); } catch (\PDOException $e) { goto uxgfAO1A_1R8Mo9; uxgfAO1A_1R8Mo9: $this->conn = null; goto D_krWbRYA8I4eQE; UuWRDokC4Fhx88J: $this->errorMsg = $e->getMessage(); goto PxKzf4oUzIugQ9i; D_krWbRYA8I4eQE: $this->error = true; goto UuWRDokC4Fhx88J; PxKzf4oUzIugQ9i: } goto yku_FDt76rruSMr; Q4uN9QJAa_1KCGX: session_write_close(); goto JPI6yIxRtVUh_po; yku_FDt76rruSMr: return $this->conn; goto hTqogwx9LoK6o2p; hTqogwx9LoK6o2p: } public function isConnectionError() { session_write_close(); return $this->error; } public function getErrorMessage() { session_write_close(); return $this->errorMsg; } public function closeConnection() { goto OjauKOuBal2Rz21; f7CseM5tQKZb5kE: $this->errorMsg = ''; goto w8ZkfGLUawI6Pe1; ji84_RzqxNMvww2: $this->error = false; goto f7CseM5tQKZb5kE; OfSChdxHiahmxkR: $this->conn = null; goto ji84_RzqxNMvww2; OjauKOuBal2Rz21: session_write_close(); goto OfSChdxHiahmxkR; w8ZkfGLUawI6Pe1: } public function __destruct() { goto A1hcbfi20Q5qRSP; kUaoXz0e8a3k419: if ($this->persistent) { goto N_7NlDqfpU6pAWo; } goto etOweBKY1AT3gx1; nDdeskJnJds0neZ: N_7NlDqfpU6pAWo: goto b6nZ8QTBRUa9WQz; A1hcbfi20Q5qRSP: session_write_close(); goto kUaoXz0e8a3k419; etOweBKY1AT3gx1: $this->closeConnection(); goto nDdeskJnJds0neZ; b6nZ8QTBRUa9WQz: } }
Function Calls
None |
Stats
MD5 | 3c5934120746eeacfb473056557917db |
Eval Count | 0 |
Decode Time | 37 ms |