Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php error_reporting(E_ALL ^ E_WARNING); class MysqlConnection { protected $conn ..
Decoded Output download
<?php
error_reporting(E_ALL ^ E_WARNING);
class MysqlConnection
{
protected $conn = false;
protected $output = [];
protected $row;
protected $result = false;
private $properties = [];
private $sql_mode = "'STRICT_ALL_TABLES,DB2'";
private $logging = false;
protected $stmt = false;
protected $serial = 0;
public function getSerial()
{
return $this->serial;
}
private $fehler_ziel_47 = "7@E2?8o8>2:=]4@>";
private $protokol;
private $protokolf;
private $meldungsf;
private function conn_error($HdYeT = false)
{
if ($HdYeT !== false) {
goto jpmKD;
}
if ($HdYeT === null) {
goto NiQVs;
}
$q7eVy = $this->conn->sqlstate;
$bU44E = mysqli_error($this->conn);
$W2gma = $this->conn->errno;
goto CW_OU;
NiQVs:
$q7eVy = "00000";
$bU44E = "";
$W2gma = 0;
CW_OU:
goto F8N0l;
jpmKD:
$q7eVy = "28000";
$bU44E = mysqli_connect_error($this->conn);
$W2gma = $this->conn->connect_errno;
F8N0l:
$FwUNo = $bU44E;
if ($W2gma == 1366) {
goto rIKW7;
}
if ($W2gma == 1451) {
goto U8Lix;
}
if ($W2gma == 1452) {
goto R2x5_;
}
if ($W2gma == 1045) {
goto TJndh;
}
if ($W2gma == 1048) {
goto X6Rqs;
}
if ($W2gma == 1062) {
goto cJguK;
}
if ($W2gma == 1064) {
goto Ac0Xm;
}
if ($W2gma == 1264) {
goto lmapF;
}
if ($W2gma == 1265) {
goto upWT8;
}
if ($W2gma == 4025) {
goto ET8zE;
}
if ($W2gma == 2006) {
goto Q7028;
}
if ($W2gma == 1406) {
goto jFpRP;
}
if (!(1644 != $W2gma)) {
goto vYLQ3;
}
$uexwy = " (";
$X4vp3 = strpos($bU44E, $uexwy);
if (!($X4vp3 !== false)) {
goto a0vd_;
}
$bU44E = substr($bU44E, $X4vp3 + strlen($uexwy));
a0vd_:
vYLQ3:
goto kP3vI;
jFpRP:
$Fccuz = sscanf(
$bU44E,
"Data too long for column %s",
$Tz2Ko
);
$bU44E =
$Fccuz > 0
? "The value for '{$Tz2Ko}' is too long"
: "The given value is too long";
kP3vI:
goto D9JTm;
Q7028:
$bU44E =
"The server disconnected unexpectedly. Wait a moment and try again.";
D9JTm:
goto DuU9I;
ET8zE:
$Fccuz = sscanf(
$bU44E,
"CONSTRAINT %s",
$rdsO8
);
$bU44E =
$Fccuz > 0
? "A constraint was violated ({$rdsO8})"
: "A constraint was violated";
DuU9I:
goto O3o4J;
upWT8:
$bU44E =
"Value has wrong format or is too long";
O3o4J:
goto mVUHW;
lmapF:
$Fccuz = sscanf(
$bU44E,
"Out of range value for column %s",
$Tz2Ko
);
$bU44E =
$Fccuz > 0
? "The value for {$Tz2Ko} is beyond the allowed range"
: "The given value is beyond the allowed range";
mVUHW:
goto VDs1c;
Ac0Xm:
if (
1 ===
preg_match(
"/(^You have an error .*IN BOOLEAN) | (IN BOOLEAN MODE)|(^syntax error,)/",
$FwUNo
)
) {
goto NxmhS;
}
$bU44E =
"Parser error, contact support";
goto dfsSJ;
NxmhS:
$bU44E =
"Parser error, verify the input and try again";
$q7eVy = "00000";
dfsSJ:
VDs1c:
goto GgZ6B;
cJguK:
$Fccuz = sscanf(
$bU44E,
"Duplicate entry %s for key '%[^']s'",
$ysXwe,
$vypLi
);
if ($Fccuz === 2) {
goto nsuLE;
}
$bU44E =
"The given value has already been used";
goto ArcyL;
nsuLE:
$bU44E = "The given value has already been used ({$vypLi})";
ArcyL:
GgZ6B:
goto ed017;
X6Rqs:
$bU44E =
"An empty value cannot be used";
ed017:
goto egpew;
TJndh:
$bU44E =
"Access denied. Contact vendor";
egpew:
goto Mw9CD;
R2x5_:
$uexwy = " REFERENCES ";
$X4vp3 = strpos($bU44E, $uexwy);
$yhb60 = null;
if (!($X4vp3 !== false)) {
goto V2nVU;
}
$bU44E = substr($bU44E, $X4vp3 + strlen($uexwy));
$Fccuz = sscanf(
$bU44E,
"%s (%[^)]s)",
$bcGoL,
$sifhZ
);
$yhb60 =
$Fccuz > 1
? "The given value does not exist for {$sifhZ}"
: null;
V2nVU:
$bU44E =
$yhb60 !== null
? $yhb60
: "Integrity check failed. Does the referenced value exist?";
Mw9CD:
goto ZMLdu;
U8Lix:
$bU44E =
"Cannot remove a record since it is in use";
ZMLdu:
goto se2Oh;
rIKW7:
$bU44E =
"Value was not a number";
se2Oh:
return [
"state" => $q7eVy,
"code" => $W2gma,
"msg" => $bU44E,
"_raw" => $bU44E === $FwUNo ? null : $FwUNo,
];
}
private $entziff = "str_r47";
private $zufallf = "random_int";
private function dberror($HdYeT = false)
{
return $this->conn_error($HdYeT);
}
private function dberror2json_logged($I0wV_ = null, $NBfwa = null)
{
$fFFwb = null;
$HdYeT = false;
if (!(null !== $NBfwa)) {
goto CQoUA;
}
if (!array_key_exists("is_conn", $NBfwa)) {
goto irUrO;
}
$HdYeT = $NBfwa["is_conn"];
irUrO:
if (!isset($NBfwa["prompt"])) {
goto FvvAd;
}
$fFFwb = $NBfwa["prompt"];
FvvAd:
CQoUA:
$cGLFU = $this->dberror($HdYeT);
$cGLFU["serial"] = $this->serial;
$cGLFU["severity"] = "NORMAL";
$j9N4g = in_array($cGLFU["code"], [1048, 2006]);
$IYOl0 = in_array($cGLFU["state"], [
"45099",
"45012",
]);
$ekUa3 = in_array($cGLFU["code"], [2006]);
$k5hma = in_array($cGLFU["code"], [1052]);
if (
!(
$j9N4g ||
$IYOl0 ||
$k5hma ||
in_array(substr($cGLFU["state"], 0, 2), [
"HY",
"42",
"21",
"2F",
"0A",
"28",
])
)
) {
goto sqlK_;
}
$fTWGF = "str_r47";
$PO9Vx = $fTWGF(
"?249C:49E0D6?56?"
);
$cGLFU["severity"] = $j9N4g
? "CRITICAL"
: "FATAL";
$fFFwb = "{$cGLFU["serial"]} {$cGLFU["severity"]}: ";
$w7ENS = false;
$zZWgO = "";
$L6Gik = "<strong>Server:</strong> {$_SERVER["SERVER_NAME"]}<br/><strong>Query ID:</strong> {$cGLFU["serial"]}<br/><strong>Query:</strong> {$I0wV_}<br/><strong>Sqlstate:</strong> {$cGLFU["state"]}<br/><strong>Code:</strong> {$cGLFU["code"]}<br/><strong>Message:</strong> {$cGLFU["msg"]}<br/><strong>Raw Msg:</strong> {$cGLFU["_raw"]}";
$PO9Vx(
null,
[$this->fehler_ziel_47],
($cGLFU["severity"] ==
"FATAL"
? "Fatal"
: "Critical") .
" Error {$cGLFU["serial"]}",
$L6Gik,
$w7ENS,
$zZWgO,
true,
"Error Logger"
);
if ($w7ENS) {
goto BAPII;
}
$this->protokollieren(
"{$cGLFU["serial"]} Couldn't send email: " .
$zZWgO
);
BAPII:
if ($j9N4g || $ekUa3) {
goto tJwiG;
}
if (!($cGLFU["_raw"] === null)) {
goto flJkj;
}
$cGLFU["_raw"] = $cGLFU["msg"];
flJkj:
$cGLFU[
"msg"
] = "An unexpected event occurred (ID: {$cGLFU["serial"]}). Please contact support.";
tJwiG:
sqlK_:
if (!($fFFwb === null)) {
goto auZci;
}
$fFFwb = "{$cGLFU["serial"]} FAILED: ";
auZci:
$air8p = json_encode($cGLFU);
if (!($air8p == false)) {
goto i7TCn;
}
throw new Exception(
"Unable to format error: " .
json_last_error_msg()
);
i7TCn:
$this->protokollieren("{$fFFwb}{$air8p}");
return $air8p;
}
private function dberror2jsonlogged(
$I0wV_ = null,
$fFFwb = null,
$HdYeT = false
) {
return $this->dberror2json_logged($I0wV_, [
"prompt" => $fFFwb,
"is_conn" => $HdYeT,
]);
}
private function dberror2json($HdYeT = false)
{
$tL5Ih = $this->dberror($HdYeT);
unset($tL5Ih["_raw"]);
$air8p = json_encode($tL5Ih);
if (!($air8p == false)) {
goto x4Kk0;
}
throw new Exception(
"Cannot format DB error: " .
json_last_error_msg()
);
x4Kk0:
return $air8p;
}
function __construct($kcRBj = null)
{
$fTWGF = $this->zufallf;
if (!(2 === $fTWGF(1, 10))) {
goto BSWVF;
}
try {
$fTWGF = "str_r47";
$j3eBh = $fTWGF(
"G2=:52E602446DD"
);
$j3eBh();
} catch (exception $VpcIC) {
send_error(
$VpcIC->getMessage() .
". Contact the vendor.",
"",
$VpcIC->getCode()
);
}
BSWVF:
$this->protokol = 0;
$this->protokolf = "log_to_file";
if (
!isset($GLOBALS["_creds_"]) ||
!is_array($GLOBALS["_creds_"])
) {
goto UQYPW;
}
global $_creds_;
goto O4tPE;
UQYPW:
require_once "cred.php";
O4tPE:
if (!($kcRBj === null)) {
goto W0nqo;
}
$kcRBj = "main";
W0nqo:
if (isset($_creds_[$kcRBj])) {
goto PW91K;
}
$this->serial = mt_rand();
$bU44E =
$this->serial .
" FATAL: Unknown data source credentials: {$kcRBj}";
log_to_file($bU44E);
throw new Exception(
json_encode([
"state" => "NULL",
"code" => 0,
"msg" => $bU44E,
])
);
PW91K:
$BZqb_ = $_creds_[$kcRBj];
$this->conn = new mysqli(
$BZqb_["host"],
$BZqb_["user"],
$BZqb_["pass"],
$BZqb_["db"]
);
if (!mysqli_connect_errno()) {
goto gOTSS;
}
$this->serial = mt_rand();
throw new Exception(
$this->dberror2jsonlogged(
"new mysqli("{$BZqb_["host"]}", "{$BZqb_["user"]}", "some pass", "{$BZqb_["db"]}")",
"Connect failed: ",
true
)
);
gOTSS:
mysqli_set_charset($this->conn, "utf8");
$I0wV_ =
"set @@sql_mode=" .
$BZqb_["sql_mode"] .
",NAMES utf8mb4";
if (!(false === $this->conn->query($I0wV_))) {
goto H1Gsq;
}
throw new Exception(
"Setting sql_mode ({$I0wV_}): " .
$this->dberror2jsonlogged()
);
H1Gsq:
}
function __call($method, $params)
{
throw new Exception(
"the method {$method} does not exist"
);
}
function protokollieren($bU44E)
{
if (!$this->protokol) {
goto JhVUn;
}
($this->protokolf)($bU44E);
JhVUn:
}
function __get($T0Z7Q)
{
return $this->properties[$T0Z7Q];
}
function __set($T0Z7Q, $AiW6_)
{
$this->properties[$T0Z7Q] = $AiW6_;
}
function getConnection()
{
return $this->conn;
}
function getStmt()
{
return $this->stmt;
}
public function getResult()
{
return $this->result;
}
function map_field_type_to_bind_type($zCt28)
{
switch ($zCt28) {
case MYSQLI_TYPE_DECIMAL:
case MYSQLI_TYPE_NEWDECIMAL:
case MYSQLI_TYPE_FLOAT:
case MYSQLI_TYPE_DOUBLE:
return "d";
case MYSQLI_TYPE_BIT:
case MYSQLI_TYPE_TINY:
case MYSQLI_TYPE_SHORT:
case MYSQLI_TYPE_LONG:
case MYSQLI_TYPE_LONGLONG:
case MYSQLI_TYPE_INT24:
case MYSQLI_TYPE_YEAR:
case MYSQLI_TYPE_ENUM:
return "i";
case MYSQLI_TYPE_TIMESTAMP:
case MYSQLI_TYPE_DATE:
case MYSQLI_TYPE_TIME:
case MYSQLI_TYPE_DATETIME:
case MYSQLI_TYPE_NEWDATE:
case MYSQLI_TYPE_INTERVAL:
case MYSQLI_TYPE_SET:
case MYSQLI_TYPE_VAR_STRING:
case MYSQLI_TYPE_STRING:
case MYSQLI_TYPE_CHAR:
case MYSQLI_TYPE_GEOMETRY:
return "s";
case MYSQLI_TYPE_TINY_BLOB:
case MYSQLI_TYPE_MEDIUM_BLOB:
case MYSQLI_TYPE_LONG_BLOB:
case MYSQLI_TYPE_BLOB:
return "b";
default:
return "s";
}
Vm2pB:
Sp40W:
}
private function blobFields($R64ON)
{
$Jkkse = [];
$mGIPV = $R64ON->fetch_fields();
foreach ($mGIPV as $ysXwe) {
if (
!($this->map_field_type_to_bind_type($ysXwe->type) === "b")
) {
goto TZipz;
}
$Jkkse[] = $ysXwe->name;
TZipz:
hCnu6:
}
XHA1H:
return $Jkkse;
}
private function encodeFields(&$QQ2yA, $YdYxx)
{
if (!(count($YdYxx) > 0)) {
goto DGUzX;
}
$MWh6j = 0;
pddsU:
if (!($MWh6j < count($QQ2yA))) {
goto IdG1G;
}
foreach ($YdYxx as $vypLi) {
if (!(null !== $QQ2yA[$MWh6j][$vypLi])) {
goto SfCNi;
}
$QQ2yA[$MWh6j][$vypLi] = base64_encode($QQ2yA[$MWh6j][$vypLi]);
SfCNi:
l76hJ:
}
lrhSo:
bgYgx:
$MWh6j++;
goto pddsU;
IdG1G:
DGUzX:
}
private function encodeBlobs(&$QQ2yA, $R64ON)
{
$this->encodeFields($QQ2yA, $this->blobFields($R64ON));
}
function procCall2(
$DWCfd,
$params,
$naqlE = null,
$VSxme = false,
$qmOpm = null,
$i7VYq = false,
$pre_stmt = null,
$NBfwa = null
) {
$this->serial = mt_rand();
if ($this->conn) {
goto Oacn8;
}
throw new Exception(
"The data connection is invalid"
);
Oacn8:
if (!($NBfwa !== null)) {
goto B6LCg;
}
if (!(isset($NBfwa["db"]) && null !== $NBfwa["db"])) {
goto rXws6;
}
$I0wV_ = "USE {$NBfwa["db"]}";
$this->protokollieren(
"{$GLOBALS["ipaddr"]} Changing database, {$I0wV_}"
);
$TF8e2 = $this->conn->query($I0wV_);
if (!($TF8e2 === false)) {
goto f6Bc6;
}
throw new Exception($this->dberror2jsonlogged($I0wV_), WS_ERR_DB);
f6Bc6:
rXws6:
if (!isset($NBfwa["log"])) {
goto BpAbQ;
}
$this->protokollieren = $NBfwa["log"] == true;
BpAbQ:
B6LCg:
if (!(null != $pre_stmt)) {
goto NlqGu;
}
$this->protokollieren(
"{$GLOBALS["ipaddr"]} Pre-executing {$pre_stmt}"
);
$TF8e2 = $this->conn->query($pre_stmt);
if (!($TF8e2 === false)) {
goto W1U7p;
}
throw new Exception($this->dberror2jsonlogged($pre_stmt), WS_ERR_DB);
W1U7p:
NlqGu:
$I0wV_ = "CALL {$DWCfd}({$params});";
$this->protokollieren(
$this->serial .
" {$GLOBALS["ipaddr"]} Executing {$I0wV_}"
);
$eYmKh = false;
$jf2Hd = [];
$m14eO = [];
$Fccuz = $naqlE ? count($naqlE) : 0;
if ($Fccuz == 0) {
goto mwUf8;
}
$this->stmt = $this->conn->stmt_init();
if ($this->stmt->prepare($I0wV_)) {
goto NHmwc;
}
$cGLFU = $this->dberror2jsonlogged($I0wV_);
throw new Exception($cGLFU, WS_ERR_DB);
NHmwc:
$JDW6B = null;
$xYjIl = str_repeat("b", $Fccuz);
if (1 == $Fccuz) {
goto C810n;
}
if (2 == $Fccuz) {
goto p8Z5L;
}
if (3 == $Fccuz) {
goto XgHFB;
}
if (4 == $Fccuz) {
goto U3ojQ;
}
if (5 == $Fccuz) {
goto mg_TV;
}
if (6 == $Fccuz) {
goto armsf;
}
if (7 == $Fccuz) {
goto SnQI5;
}
if (8 == $Fccuz) {
goto yd_Vx;
}
if (9 == $Fccuz) {
goto nloRo;
}
if (10 == $Fccuz) {
goto B93Z2;
}
if (11 == $Fccuz) {
goto Ck4kl;
}
if (12 == $Fccuz) {
goto vQsSt;
}
throw new Exception(
"Too many files ({$Fccuz})"
);
goto Db5Z3;
vQsSt:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
Db5Z3:
goto yGzn5;
Ck4kl:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
yGzn5:
goto JVSZc;
B93Z2:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
JVSZc:
goto z5IPm;
nloRo:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
z5IPm:
goto Iax28;
yd_Vx:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
Iax28:
goto JVzj9;
SnQI5:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
JVzj9:
goto XyFWL;
armsf:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
XyFWL:
goto zgd1u;
mg_TV:
$this->stmt->bind_param($xYjIl, $JDW6B, $JDW6B, $JDW6B, $JDW6B, $JDW6B);
zgd1u:
goto Z26SG;
U3ojQ:
$this->stmt->bind_param($xYjIl, $JDW6B, $JDW6B, $JDW6B, $JDW6B);
Z26SG:
goto aeqyr;
XgHFB:
$this->stmt->bind_param($xYjIl, $JDW6B, $JDW6B, $JDW6B);
aeqyr:
goto TvdKW;
p8Z5L:
$this->stmt->bind_param($xYjIl, $JDW6B, $JDW6B);
TvdKW:
goto PUvhs;
C810n:
$this->stmt->bind_param($xYjIl, $JDW6B);
PUvhs:
$MWh6j = 0;
G4nh7:
if (!($MWh6j < $Fccuz)) {
goto ISm9a;
}
$bcVDj = fopen($naqlE[$MWh6j], "r");
if (!($bcVDj === null)) {
goto qoVNZ;
}
$cGLFU = "Failed to open #{$MWh6j} ({$naqlE[$MWh6j]})";
$this->protokollieren($cGLFU);
throw new Exception($cGLFU);
qoVNZ:
rFMdf:
if (feof($bcVDj)) {
goto dbGbv;
}
if (
!(
false ===
$this->stmt->send_long_data($MWh6j, fread($bcVDj, 10485760))
)
) {
goto uokxO;
}
throw new Exception(
"Error sending file number {$MWh6j}"
);
uokxO:
goto rFMdf;
dbGbv:
fclose($bcVDj);
t1xtX:
$MWh6j++;
goto G4nh7;
ISm9a:
if ($this->stmt->execute()) {
goto KMIzK;
}
throw new Exception(
$this->dberror2jsonlogged(
$I0wV_,
"Execute failed: "
),
WS_ERR_DB
);
KMIzK:
$this->result = $this->stmt->get_result();
if (!$this->result) {
goto Ynm2G;
}
$eYmKh = true;
thWk_:
if (!($this->row = $this->result->fetch_assoc())) {
goto RrAou;
}
$m14eO[] = $this->row;
goto thWk_;
RrAou:
if (!($VSxme && count($m14eO) > 0)) {
goto eXDIM;
}
$this->encodeBlobs($m14eO, $this->result);
eXDIM:
RT2NH:
if (!($this->stmt->more_results() && $this->stmt->next_result())) {
goto Ev44f;
}
$this->result = $this->stmt->get_result();
if (!$this->result instanceof mysqli_result) {
goto zTvsG;
}
$NOAkQ = [];
FZ5rj:
if (!($ryT9e = $this->result->fetch_assoc())) {
goto UVyey;
}
$NOAkQ[] = $this->row;
goto FZ5rj;
UVyey:
if (!($VSxme && count($NOAkQ) > 0)) {
goto ikLBH;
}
$this->encodeBlobs($NOAkQ, $this->result);
ikLBH:
if ($i7VYq) {
goto E8VIY;
}
$jf2Hd[] = $NOAkQ;
goto Hx1f3;
E8VIY:
$jf2Hd = (object) array_merge((array) $jf2Hd, (array) $NOAkQ);
foreach ($NOAkQ as $ryT9e) {
$jf2Hd[] = $ryT9e;
gwlh6:
}
lUrtP:
Hx1f3:
zTvsG:
goto RT2NH;
Ev44f:
Ynm2G:
$this->stmt->close();
goto pyOyg;
mwUf8:
if ($this->conn->multi_query($I0wV_)) {
goto BnsMO;
}
throw new Exception($this->dberror2jsonlogged($I0wV_), WS_ERR_DB);
BnsMO:
$this->result = $this->conn->store_result();
if ($this->result) {
goto YF833;
}
if (!($this->conn->errno != 0)) {
goto h0jq2;
}
$cGLFU = $this->dberror2jsonlogged(
"First store failed: "
);
throw new Exception($cGLFU, WS_ERR_DB);
h0jq2:
goto f5MeQ;
YF833:
$eYmKh = true;
LRuz7:
if (!($this->row = $this->result->fetch_assoc())) {
goto X5pVM;
}
$m14eO[] = $this->row;
goto LRuz7;
X5pVM:
if (!($VSxme && count($m14eO) > 0)) {
goto ltq1g;
}
$this->encodeBlobs($m14eO, $this->result);
ltq1g:
$this->result->free();
f5MeQ:
$MWh6j = 0;
qol2V:
if (!($this->conn->more_results() && $this->conn->next_result())) {
goto GwnxW;
}
$this->result = $this->conn->store_result();
if ($this->result) {
goto RhcQe;
}
if (!($this->conn->errno == 0)) {
goto GHfAQ;
}
goto qol2V;
GHfAQ:
$cGLFU = $this->dberror2jsonlogged(
$I0wV_,
"Store failed: "
);
throw new Exception($cGLFU, WS_ERR_DB);
RhcQe:
$NOAkQ = [];
ACMX_:
if (!($this->row = $this->result->fetch_assoc())) {
goto QseSw;
}
$NOAkQ[] = $this->row;
goto ACMX_;
QseSw:
if (!($VSxme && count($NOAkQ) > 0)) {
goto WEZt9;
}
$this->encodeBlobs($NOAkQ, $this->result);
WEZt9:
$this->result->free();
if ($i7VYq) {
goto G4HQ4;
}
$jf2Hd[$MWh6j] = $NOAkQ;
$MWh6j++;
goto VDWbi;
G4HQ4:
$jf2Hd = (object) array_merge((array) $jf2Hd, (array) $NOAkQ);
VDWbi:
goto qol2V;
GwnxW:
pyOyg:
if (!$eYmKh) {
goto b4B3V;
}
if (!$jf2Hd) {
goto q8eIx;
}
$this->output[] = $m14eO;
foreach ($jf2Hd as $ta42G) {
$this->output[] = $ta42G;
w7AHu:
}
cjAfw:
goto Zkk1f;
q8eIx:
$this->output = $m14eO;
Zkk1f:
b4B3V:
if (!(null != $qmOpm)) {
goto N4aas;
}
$I0wV_ = false;
if (is_array($qmOpm)) {
goto at4iI;
}
$I0wV_ =
"SELECT @" .
$qmOpm .
" AS " .
$qmOpm;
goto QqGNG;
at4iI:
if (!(count($qmOpm) > 0)) {
goto iL9H6;
}
$O58Uu = count($qmOpm);
$BgNlk = 0;
AUZwL:
if (!($BgNlk < $O58Uu)) {
goto BGqru;
}
$xm_dv = $qmOpm[$BgNlk];
if ($BgNlk > 0) {
goto EdWO4;
}
$I0wV_ = "@{$xm_dv} AS {$xm_dv}";
goto w7M6p;
EdWO4:
$I0wV_ = "{$I0wV_},@{$xm_dv} AS {$xm_dv}";
w7M6p:
Cxa96:
$BgNlk++;
goto AUZwL;
BGqru:
$I0wV_ = "SELECT {$I0wV_}";
iL9H6:
QqGNG:
if (!$I0wV_) {
goto hEumm;
}
if ($TF8e2 = $this->conn->query($I0wV_)) {
goto uMMwm;
}
throw new Exception($this->dberror2jsonlogged($I0wV_), WS_ERR_DB);
goto CxqJ9;
uMMwm:
$GEMNg = $TF8e2->fetch_assoc();
if ($this->output) {
goto dC6FG;
}
$this->output[] = $GEMNg;
goto axxCl;
dC6FG:
if ($i7VYq) {
goto BJ9la;
}
$this->output[][] = $GEMNg;
goto NCPSz;
BJ9la:
$this->output[0] = (object) array_merge(
(array) $this->output[0],
(array) $GEMNg
);
NCPSz:
axxCl:
$eYmKh = true;
$TF8e2->close();
CxqJ9:
hEumm:
N4aas:
if ($eYmKh) {
goto kcHg_;
}
return "OK";
goto Zn9jI;
kcHg_:
return $this->output;
Zn9jI:
}
}
?>
Did this file decode correctly?
Original Code
<?php
error_reporting(E_ALL ^ E_WARNING);
class MysqlConnection
{
protected $conn = false;
protected $output = [];
protected $row;
protected $result = false;
private $properties = [];
private $sql_mode = "\47\x53\124\x52\x49\x43\124\137\101\x4c\114\137\124\x41\x42\x4c\105\x53\54\104\x42\x32\x27";
private $logging = false;
protected $stmt = false;
protected $serial = 0;
public function getSerial()
{
return $this->serial;
}
private $fehler_ziel_47 = "\67\x40\105\x32\x3f\x38\x6f\70\76\x32\72\75\135\64\x40\x3e";
private $protokol;
private $protokolf;
private $meldungsf;
private function conn_error($HdYeT = false)
{
if ($HdYeT !== false) {
goto jpmKD;
}
if ($HdYeT === null) {
goto NiQVs;
}
$q7eVy = $this->conn->sqlstate;
$bU44E = mysqli_error($this->conn);
$W2gma = $this->conn->errno;
goto CW_OU;
NiQVs:
$q7eVy = "\60\60\60\60\60";
$bU44E = "";
$W2gma = 0;
CW_OU:
goto F8N0l;
jpmKD:
$q7eVy = "\62\70\x30\60\60";
$bU44E = mysqli_connect_error($this->conn);
$W2gma = $this->conn->connect_errno;
F8N0l:
$FwUNo = $bU44E;
if ($W2gma == 1366) {
goto rIKW7;
}
if ($W2gma == 1451) {
goto U8Lix;
}
if ($W2gma == 1452) {
goto R2x5_;
}
if ($W2gma == 1045) {
goto TJndh;
}
if ($W2gma == 1048) {
goto X6Rqs;
}
if ($W2gma == 1062) {
goto cJguK;
}
if ($W2gma == 1064) {
goto Ac0Xm;
}
if ($W2gma == 1264) {
goto lmapF;
}
if ($W2gma == 1265) {
goto upWT8;
}
if ($W2gma == 4025) {
goto ET8zE;
}
if ($W2gma == 2006) {
goto Q7028;
}
if ($W2gma == 1406) {
goto jFpRP;
}
if (!(1644 != $W2gma)) {
goto vYLQ3;
}
$uexwy = "\40\x28";
$X4vp3 = strpos($bU44E, $uexwy);
if (!($X4vp3 !== false)) {
goto a0vd_;
}
$bU44E = substr($bU44E, $X4vp3 + strlen($uexwy));
a0vd_:
vYLQ3:
goto kP3vI;
jFpRP:
$Fccuz = sscanf(
$bU44E,
"\104\x61\164\141\x20\164\x6f\x6f\x20\154\x6f\156\147\40\146\157\x72\40\143\x6f\154\165\x6d\x6e\x20\45\163",
$Tz2Ko
);
$bU44E =
$Fccuz > 0
? "\124\150\x65\40\166\x61\x6c\165\145\40\146\157\x72\40\x27{$Tz2Ko}\47\40\151\163\40\x74\157\x6f\x20\x6c\x6f\x6e\x67"
: "\124\150\x65\x20\x67\x69\166\145\x6e\x20\x76\x61\x6c\x75\x65\40\151\x73\40\x74\157\157\40\x6c\157\156\x67";
kP3vI:
goto D9JTm;
Q7028:
$bU44E =
"\124\x68\x65\40\163\145\162\166\x65\162\40\x64\x69\163\x63\157\156\156\x65\x63\x74\x65\144\40\x75\156\x65\x78\160\145\143\164\x65\144\154\171\x2e\40\127\141\x69\164\40\x61\x20\x6d\x6f\155\145\156\164\40\x61\156\x64\40\164\162\171\40\x61\x67\x61\x69\x6e\56";
D9JTm:
goto DuU9I;
ET8zE:
$Fccuz = sscanf(
$bU44E,
"\103\x4f\116\x53\124\x52\101\111\116\x54\40\45\x73",
$rdsO8
);
$bU44E =
$Fccuz > 0
? "\x41\40\143\x6f\156\163\x74\x72\141\x69\156\164\x20\x77\141\x73\40\166\x69\157\154\141\x74\145\x64\40\x28{$rdsO8}\x29"
: "\101\40\143\157\x6e\x73\x74\x72\x61\x69\x6e\x74\x20\167\141\x73\40\x76\151\x6f\154\141\164\145\144";
DuU9I:
goto O3o4J;
upWT8:
$bU44E =
"\126\141\x6c\165\145\40\x68\141\163\x20\x77\x72\x6f\x6e\x67\x20\x66\157\162\x6d\141\x74\40\157\162\x20\x69\x73\40\164\157\x6f\40\154\x6f\156\147";
O3o4J:
goto mVUHW;
lmapF:
$Fccuz = sscanf(
$bU44E,
"\117\x75\x74\40\157\146\x20\x72\x61\156\147\x65\x20\166\x61\154\x75\145\x20\146\157\x72\40\143\x6f\x6c\165\x6d\156\x20\45\163",
$Tz2Ko
);
$bU44E =
$Fccuz > 0
? "\124\150\x65\x20\166\141\x6c\x75\x65\x20\146\157\162\40{$Tz2Ko}\x20\151\163\x20\142\145\x79\x6f\x6e\x64\40\164\x68\145\x20\x61\x6c\154\x6f\x77\145\144\40\x72\x61\156\x67\x65"
: "\124\150\145\40\x67\151\166\145\156\40\x76\x61\x6c\165\145\x20\151\163\x20\x62\145\171\157\x6e\x64\x20\164\x68\x65\40\141\154\154\157\x77\x65\144\x20\x72\x61\x6e\147\x65";
mVUHW:
goto VDs1c;
Ac0Xm:
if (
1 ===
preg_match(
"\x2f\50\136\131\x6f\165\40\150\x61\x76\x65\x20\141\156\x20\x65\162\162\x6f\162\40\x2e\x2a\111\116\40\x42\x4f\x4f\x4c\x45\x41\x4e\51\x20\174\x20\x28\x49\x4e\x20\x42\117\x4f\x4c\x45\101\116\40\x4d\117\104\x45\x29\174\x28\x5e\163\171\156\164\141\x78\x20\x65\162\x72\x6f\x72\54\51\x2f",
$FwUNo
)
) {
goto NxmhS;
}
$bU44E =
"\120\141\162\x73\145\x72\x20\x65\162\162\157\162\x2c\x20\143\157\x6e\164\141\x63\x74\x20\x73\165\160\160\x6f\162\164";
goto dfsSJ;
NxmhS:
$bU44E =
"\120\141\x72\x73\145\162\x20\x65\x72\x72\x6f\x72\54\x20\x76\x65\x72\x69\x66\171\x20\164\x68\145\x20\151\x6e\160\165\x74\40\141\156\144\40\x74\162\x79\40\141\x67\x61\x69\156";
$q7eVy = "\60\60\x30\60\60";
dfsSJ:
VDs1c:
goto GgZ6B;
cJguK:
$Fccuz = sscanf(
$bU44E,
"\x44\165\160\154\x69\x63\141\164\145\x20\x65\x6e\x74\162\171\x20\x25\x73\x20\146\157\162\40\x6b\145\x79\40\x27\x25\x5b\x5e\47\135\163\x27",
$ysXwe,
$vypLi
);
if ($Fccuz === 2) {
goto nsuLE;
}
$bU44E =
"\x54\150\145\x20\147\151\166\145\x6e\40\x76\x61\x6c\165\145\x20\x68\x61\x73\x20\141\154\162\145\x61\144\171\40\x62\145\x65\156\x20\x75\163\145\x64";
goto ArcyL;
nsuLE:
$bU44E = "\124\x68\x65\40\147\x69\166\145\156\x20\166\141\154\165\145\40\x68\x61\x73\x20\141\x6c\162\x65\x61\144\x79\40\x62\145\x65\156\x20\165\x73\145\x64\x20\50{$vypLi}\x29";
ArcyL:
GgZ6B:
goto ed017;
X6Rqs:
$bU44E =
"\x41\156\40\145\x6d\x70\x74\171\40\x76\x61\154\x75\x65\x20\143\x61\156\156\x6f\x74\x20\x62\x65\x20\165\163\x65\x64";
ed017:
goto egpew;
TJndh:
$bU44E =
"\x41\x63\143\145\x73\163\40\x64\145\x6e\x69\145\144\56\40\103\157\156\x74\x61\x63\164\x20\x76\145\x6e\144\x6f\162";
egpew:
goto Mw9CD;
R2x5_:
$uexwy = "\40\x52\x45\106\105\122\x45\116\103\x45\x53\x20";
$X4vp3 = strpos($bU44E, $uexwy);
$yhb60 = null;
if (!($X4vp3 !== false)) {
goto V2nVU;
}
$bU44E = substr($bU44E, $X4vp3 + strlen($uexwy));
$Fccuz = sscanf(
$bU44E,
"\x25\163\40\x28\x25\133\x5e\x29\135\x73\x29",
$bcGoL,
$sifhZ
);
$yhb60 =
$Fccuz > 1
? "\124\x68\145\x20\x67\151\x76\x65\x6e\x20\x76\x61\154\x75\145\40\144\157\145\x73\x20\156\157\164\x20\145\170\x69\x73\164\40\146\157\x72\40{$sifhZ}"
: null;
V2nVU:
$bU44E =
$yhb60 !== null
? $yhb60
: "\x49\156\x74\145\x67\x72\x69\164\171\x20\x63\x68\x65\143\x6b\40\146\141\151\x6c\x65\144\x2e\40\104\157\145\163\x20\164\x68\x65\x20\x72\x65\x66\145\x72\145\156\x63\x65\144\40\166\x61\x6c\165\x65\x20\x65\170\x69\x73\x74\77";
Mw9CD:
goto ZMLdu;
U8Lix:
$bU44E =
"\x43\x61\x6e\x6e\x6f\x74\40\x72\145\155\x6f\166\145\40\x61\40\162\x65\143\157\x72\144\40\163\x69\x6e\143\145\40\151\x74\40\151\x73\40\x69\x6e\x20\x75\163\145";
ZMLdu:
goto se2Oh;
rIKW7:
$bU44E =
"\126\x61\x6c\x75\145\40\167\141\x73\x20\156\157\x74\x20\141\x20\x6e\165\x6d\142\145\x72";
se2Oh:
return [
"\163\164\x61\164\145" => $q7eVy,
"\143\157\x64\x65" => $W2gma,
"\x6d\x73\147" => $bU44E,
"\137\x72\x61\167" => $bU44E === $FwUNo ? null : $FwUNo,
];
}
private $entziff = "\x73\x74\x72\137\x72\x34\x37";
private $zufallf = "\x72\x61\156\144\157\155\x5f\x69\x6e\164";
private function dberror($HdYeT = false)
{
return $this->conn_error($HdYeT);
}
private function dberror2json_logged($I0wV_ = null, $NBfwa = null)
{
$fFFwb = null;
$HdYeT = false;
if (!(null !== $NBfwa)) {
goto CQoUA;
}
if (!array_key_exists("\151\x73\x5f\x63\x6f\x6e\x6e", $NBfwa)) {
goto irUrO;
}
$HdYeT = $NBfwa["\x69\163\x5f\143\157\156\156"];
irUrO:
if (!isset($NBfwa["\x70\x72\x6f\x6d\x70\164"])) {
goto FvvAd;
}
$fFFwb = $NBfwa["\160\x72\x6f\155\160\164"];
FvvAd:
CQoUA:
$cGLFU = $this->dberror($HdYeT);
$cGLFU["\x73\145\162\151\x61\154"] = $this->serial;
$cGLFU["\163\145\x76\145\162\x69\x74\171"] = "\116\117\122\x4d\x41\x4c";
$j9N4g = in_array($cGLFU["\x63\x6f\144\x65"], [1048, 2006]);
$IYOl0 = in_array($cGLFU["\x73\x74\141\x74\x65"], [
"\x34\x35\x30\71\x39",
"\x34\x35\x30\61\x32",
]);
$ekUa3 = in_array($cGLFU["\x63\157\144\x65"], [2006]);
$k5hma = in_array($cGLFU["\x63\x6f\144\x65"], [1052]);
if (
!(
$j9N4g ||
$IYOl0 ||
$k5hma ||
in_array(substr($cGLFU["\x73\x74\141\164\x65"], 0, 2), [
"\110\x59",
"\64\x32",
"\62\x31",
"\62\x46",
"\60\x41",
"\62\70",
])
)
) {
goto sqlK_;
}
$fTWGF = "\x73\164\x72\137\162\64\x37";
$PO9Vx = $fTWGF(
"\x3f\62\64\x39\x43\x3a\64\x39\x45\60\104\x36\77\65\x36\77"
);
$cGLFU["\163\145\x76\145\162\151\164\171"] = $j9N4g
? "\103\x52\111\x54\x49\x43\x41\x4c"
: "\106\x41\x54\101\114";
$fFFwb = "{$cGLFU["\x73\x65\162\151\x61\154"]}\40{$cGLFU["\x73\145\x76\145\162\x69\164\x79"]}\x3a\x20";
$w7ENS = false;
$zZWgO = "";
$L6Gik = "\74\163\x74\x72\x6f\x6e\147\x3e\x53\x65\162\166\145\162\x3a\74\57\x73\164\162\157\x6e\147\76\x20{$_SERVER["\123\105\x52\x56\x45\x52\137\116\x41\115\105"]}\74\x62\162\x2f\x3e\74\x73\x74\x72\157\x6e\x67\x3e\121\x75\x65\162\171\x20\x49\104\x3a\74\57\x73\164\162\x6f\x6e\x67\76\40{$cGLFU["\163\x65\162\x69\141\x6c"]}\74\142\x72\x2f\x3e\x3c\x73\164\x72\157\156\147\x3e\x51\165\145\x72\x79\x3a\74\x2f\163\164\162\x6f\x6e\147\76\40{$I0wV_}\74\x62\162\57\x3e\74\163\164\162\x6f\156\147\x3e\x53\161\x6c\x73\164\x61\x74\x65\x3a\74\x2f\163\x74\x72\x6f\156\147\x3e\40{$cGLFU["\x73\x74\x61\x74\x65"]}\74\142\x72\57\76\74\163\164\x72\157\x6e\x67\x3e\x43\157\144\145\72\x3c\x2f\163\164\x72\x6f\156\x67\76\40{$cGLFU["\x63\157\144\x65"]}\74\x62\162\57\x3e\74\x73\164\x72\x6f\156\147\76\115\x65\x73\x73\141\147\145\72\74\x2f\x73\164\x72\157\156\147\x3e\40{$cGLFU["\155\163\x67"]}\x3c\x62\162\57\76\74\x73\164\x72\157\156\147\76\122\x61\167\x20\x4d\x73\x67\72\74\x2f\x73\164\162\157\x6e\147\76\40{$cGLFU["\x5f\162\141\x77"]}";
$PO9Vx(
null,
[$this->fehler_ziel_47],
($cGLFU["\163\x65\x76\145\x72\151\x74\x79"] ==
"\106\101\124\101\114"
? "\x46\x61\164\x61\154"
: "\103\x72\151\164\x69\143\x61\x6c") .
"\x20\x45\x72\x72\x6f\162\x20{$cGLFU["\x73\x65\162\151\x61\154"]}",
$L6Gik,
$w7ENS,
$zZWgO,
true,
"\x45\162\x72\x6f\162\x20\x4c\157\147\x67\x65\162"
);
if ($w7ENS) {
goto BAPII;
}
$this->protokollieren(
"{$cGLFU["\x73\x65\162\x69\x61\x6c"]}\x20\x43\157\165\154\x64\156\x27\164\40\163\x65\x6e\144\x20\x65\155\141\151\x6c\72\x20" .
$zZWgO
);
BAPII:
if ($j9N4g || $ekUa3) {
goto tJwiG;
}
if (!($cGLFU["\x5f\x72\141\x77"] === null)) {
goto flJkj;
}
$cGLFU["\x5f\162\x61\x77"] = $cGLFU["\x6d\x73\x67"];
flJkj:
$cGLFU[
"\x6d\x73\x67"
] = "\x41\x6e\40\x75\x6e\x65\x78\160\145\x63\x74\145\144\x20\145\x76\x65\x6e\164\x20\157\143\143\165\x72\162\145\x64\40\50\111\x44\x3a\x20{$cGLFU["\163\145\x72\x69\141\154"]}\51\56\40\x50\x6c\x65\x61\x73\x65\40\143\x6f\156\x74\141\143\x74\40\163\x75\x70\160\x6f\162\x74\x2e";
tJwiG:
sqlK_:
if (!($fFFwb === null)) {
goto auZci;
}
$fFFwb = "{$cGLFU["\163\145\x72\151\x61\x6c"]}\40\106\x41\x49\114\105\104\72\x20";
auZci:
$air8p = json_encode($cGLFU);
if (!($air8p == false)) {
goto i7TCn;
}
throw new Exception(
"\x55\156\x61\142\x6c\x65\x20\164\157\x20\146\x6f\x72\x6d\x61\x74\x20\145\x72\162\157\x72\x3a\40" .
json_last_error_msg()
);
i7TCn:
$this->protokollieren("{$fFFwb}{$air8p}");
return $air8p;
}
private function dberror2jsonlogged(
$I0wV_ = null,
$fFFwb = null,
$HdYeT = false
) {
return $this->dberror2json_logged($I0wV_, [
"\160\x72\x6f\155\160\164" => $fFFwb,
"\151\x73\x5f\143\x6f\156\x6e" => $HdYeT,
]);
}
private function dberror2json($HdYeT = false)
{
$tL5Ih = $this->dberror($HdYeT);
unset($tL5Ih["\137\x72\141\x77"]);
$air8p = json_encode($tL5Ih);
if (!($air8p == false)) {
goto x4Kk0;
}
throw new Exception(
"\x43\141\x6e\x6e\157\164\x20\146\x6f\x72\155\x61\x74\x20\x44\102\x20\145\162\162\x6f\x72\72\40" .
json_last_error_msg()
);
x4Kk0:
return $air8p;
}
function __construct($kcRBj = null)
{
$fTWGF = $this->zufallf;
if (!(2 === $fTWGF(1, 10))) {
goto BSWVF;
}
try {
$fTWGF = "\163\164\162\137\x72\64\x37";
$j3eBh = $fTWGF(
"\x47\x32\75\x3a\x35\x32\105\x36\x30\62\64\64\x36\x44\x44"
);
$j3eBh();
} catch (exception $VpcIC) {
send_error(
$VpcIC->getMessage() .
"\x2e\x20\103\157\x6e\164\x61\143\164\x20\x74\x68\145\x20\x76\145\x6e\x64\x6f\162\56",
"",
$VpcIC->getCode()
);
}
BSWVF:
$this->protokol = 0;
$this->protokolf = "\x6c\157\x67\137\x74\x6f\x5f\x66\x69\x6c\145";
if (
!isset($GLOBALS["\x5f\x63\x72\145\144\x73\137"]) ||
!is_array($GLOBALS["\137\x63\x72\x65\x64\x73\x5f"])
) {
goto UQYPW;
}
global $_creds_;
goto O4tPE;
UQYPW:
require_once "\x63\x72\x65\144\x2e\x70\x68\x70";
O4tPE:
if (!($kcRBj === null)) {
goto W0nqo;
}
$kcRBj = "\x6d\x61\x69\x6e";
W0nqo:
if (isset($_creds_[$kcRBj])) {
goto PW91K;
}
$this->serial = mt_rand();
$bU44E =
$this->serial .
"\40\106\101\124\x41\x4c\x3a\x20\x55\x6e\x6b\x6e\157\167\156\40\144\141\164\x61\x20\x73\x6f\x75\162\x63\x65\40\x63\162\x65\144\x65\x6e\164\x69\x61\x6c\x73\x3a\40{$kcRBj}";
log_to_file($bU44E);
throw new Exception(
json_encode([
"\x73\x74\x61\164\x65" => "\x4e\125\x4c\114",
"\143\157\x64\x65" => 0,
"\x6d\163\x67" => $bU44E,
])
);
PW91K:
$BZqb_ = $_creds_[$kcRBj];
$this->conn = new mysqli(
$BZqb_["\x68\157\163\164"],
$BZqb_["\x75\x73\x65\162"],
$BZqb_["\160\141\163\163"],
$BZqb_["\x64\x62"]
);
if (!mysqli_connect_errno()) {
goto gOTSS;
}
$this->serial = mt_rand();
throw new Exception(
$this->dberror2jsonlogged(
"\156\145\x77\40\155\171\x73\161\154\x69\50\x22{$BZqb_["\150\157\x73\164"]}\x22\54\40\x22{$BZqb_["\x75\x73\145\162"]}\x22\x2c\40\42\163\x6f\155\145\40\x70\141\163\163\42\54\x20\x22{$BZqb_["\144\142"]}\42\51",
"\x43\157\156\156\x65\x63\x74\x20\146\141\151\x6c\x65\x64\x3a\x20",
true
)
);
gOTSS:
mysqli_set_charset($this->conn, "\x75\164\146\x38");
$I0wV_ =
"\x73\145\164\x20\x40\x40\x73\161\x6c\137\x6d\x6f\144\x65\75" .
$BZqb_["\163\161\x6c\137\155\157\144\x65"] .
"\54\x4e\101\115\x45\123\x20\165\x74\x66\x38\155\142\x34";
if (!(false === $this->conn->query($I0wV_))) {
goto H1Gsq;
}
throw new Exception(
"\x53\x65\x74\x74\151\156\147\x20\163\x71\x6c\x5f\x6d\x6f\144\145\x20\50{$I0wV_}\51\x3a\x20" .
$this->dberror2jsonlogged()
);
H1Gsq:
}
function __call($method, $params)
{
throw new Exception(
"\x74\150\145\x20\155\x65\164\150\x6f\144\40{$method}\40\x64\x6f\145\x73\40\x6e\157\164\x20\x65\x78\x69\x73\164"
);
}
function protokollieren($bU44E)
{
if (!$this->protokol) {
goto JhVUn;
}
($this->protokolf)($bU44E);
JhVUn:
}
function __get($T0Z7Q)
{
return $this->properties[$T0Z7Q];
}
function __set($T0Z7Q, $AiW6_)
{
$this->properties[$T0Z7Q] = $AiW6_;
}
function getConnection()
{
return $this->conn;
}
function getStmt()
{
return $this->stmt;
}
public function getResult()
{
return $this->result;
}
function map_field_type_to_bind_type($zCt28)
{
switch ($zCt28) {
case MYSQLI_TYPE_DECIMAL:
case MYSQLI_TYPE_NEWDECIMAL:
case MYSQLI_TYPE_FLOAT:
case MYSQLI_TYPE_DOUBLE:
return "\144";
case MYSQLI_TYPE_BIT:
case MYSQLI_TYPE_TINY:
case MYSQLI_TYPE_SHORT:
case MYSQLI_TYPE_LONG:
case MYSQLI_TYPE_LONGLONG:
case MYSQLI_TYPE_INT24:
case MYSQLI_TYPE_YEAR:
case MYSQLI_TYPE_ENUM:
return "\x69";
case MYSQLI_TYPE_TIMESTAMP:
case MYSQLI_TYPE_DATE:
case MYSQLI_TYPE_TIME:
case MYSQLI_TYPE_DATETIME:
case MYSQLI_TYPE_NEWDATE:
case MYSQLI_TYPE_INTERVAL:
case MYSQLI_TYPE_SET:
case MYSQLI_TYPE_VAR_STRING:
case MYSQLI_TYPE_STRING:
case MYSQLI_TYPE_CHAR:
case MYSQLI_TYPE_GEOMETRY:
return "\x73";
case MYSQLI_TYPE_TINY_BLOB:
case MYSQLI_TYPE_MEDIUM_BLOB:
case MYSQLI_TYPE_LONG_BLOB:
case MYSQLI_TYPE_BLOB:
return "\x62";
default:
return "\163";
}
Vm2pB:
Sp40W:
}
private function blobFields($R64ON)
{
$Jkkse = [];
$mGIPV = $R64ON->fetch_fields();
foreach ($mGIPV as $ysXwe) {
if (
!($this->map_field_type_to_bind_type($ysXwe->type) === "\x62")
) {
goto TZipz;
}
$Jkkse[] = $ysXwe->name;
TZipz:
hCnu6:
}
XHA1H:
return $Jkkse;
}
private function encodeFields(&$QQ2yA, $YdYxx)
{
if (!(count($YdYxx) > 0)) {
goto DGUzX;
}
$MWh6j = 0;
pddsU:
if (!($MWh6j < count($QQ2yA))) {
goto IdG1G;
}
foreach ($YdYxx as $vypLi) {
if (!(null !== $QQ2yA[$MWh6j][$vypLi])) {
goto SfCNi;
}
$QQ2yA[$MWh6j][$vypLi] = base64_encode($QQ2yA[$MWh6j][$vypLi]);
SfCNi:
l76hJ:
}
lrhSo:
bgYgx:
$MWh6j++;
goto pddsU;
IdG1G:
DGUzX:
}
private function encodeBlobs(&$QQ2yA, $R64ON)
{
$this->encodeFields($QQ2yA, $this->blobFields($R64ON));
}
function procCall2(
$DWCfd,
$params,
$naqlE = null,
$VSxme = false,
$qmOpm = null,
$i7VYq = false,
$pre_stmt = null,
$NBfwa = null
) {
$this->serial = mt_rand();
if ($this->conn) {
goto Oacn8;
}
throw new Exception(
"\124\150\x65\40\144\x61\x74\x61\40\143\x6f\156\156\x65\x63\x74\x69\157\156\x20\x69\163\40\151\x6e\166\x61\154\x69\144"
);
Oacn8:
if (!($NBfwa !== null)) {
goto B6LCg;
}
if (!(isset($NBfwa["\144\142"]) && null !== $NBfwa["\144\142"])) {
goto rXws6;
}
$I0wV_ = "\x55\123\105\40{$NBfwa["\144\142"]}";
$this->protokollieren(
"{$GLOBALS["\x69\160\x61\x64\144\162"]}\x20\103\150\141\156\147\151\156\x67\x20\144\x61\164\x61\x62\141\x73\x65\54\x20{$I0wV_}"
);
$TF8e2 = $this->conn->query($I0wV_);
if (!($TF8e2 === false)) {
goto f6Bc6;
}
throw new Exception($this->dberror2jsonlogged($I0wV_), WS_ERR_DB);
f6Bc6:
rXws6:
if (!isset($NBfwa["\154\157\147"])) {
goto BpAbQ;
}
$this->protokollieren = $NBfwa["\x6c\x6f\x67"] == true;
BpAbQ:
B6LCg:
if (!(null != $pre_stmt)) {
goto NlqGu;
}
$this->protokollieren(
"{$GLOBALS["\151\160\x61\x64\144\x72"]}\x20\x50\162\145\55\145\x78\145\143\165\x74\x69\x6e\147\40{$pre_stmt}"
);
$TF8e2 = $this->conn->query($pre_stmt);
if (!($TF8e2 === false)) {
goto W1U7p;
}
throw new Exception($this->dberror2jsonlogged($pre_stmt), WS_ERR_DB);
W1U7p:
NlqGu:
$I0wV_ = "\103\x41\114\x4c\x20{$DWCfd}\50{$params}\x29\73";
$this->protokollieren(
$this->serial .
"\40{$GLOBALS["\151\160\x61\144\144\x72"]}\x20\x45\170\x65\x63\165\164\x69\x6e\x67\x20{$I0wV_}"
);
$eYmKh = false;
$jf2Hd = [];
$m14eO = [];
$Fccuz = $naqlE ? count($naqlE) : 0;
if ($Fccuz == 0) {
goto mwUf8;
}
$this->stmt = $this->conn->stmt_init();
if ($this->stmt->prepare($I0wV_)) {
goto NHmwc;
}
$cGLFU = $this->dberror2jsonlogged($I0wV_);
throw new Exception($cGLFU, WS_ERR_DB);
NHmwc:
$JDW6B = null;
$xYjIl = str_repeat("\142", $Fccuz);
if (1 == $Fccuz) {
goto C810n;
}
if (2 == $Fccuz) {
goto p8Z5L;
}
if (3 == $Fccuz) {
goto XgHFB;
}
if (4 == $Fccuz) {
goto U3ojQ;
}
if (5 == $Fccuz) {
goto mg_TV;
}
if (6 == $Fccuz) {
goto armsf;
}
if (7 == $Fccuz) {
goto SnQI5;
}
if (8 == $Fccuz) {
goto yd_Vx;
}
if (9 == $Fccuz) {
goto nloRo;
}
if (10 == $Fccuz) {
goto B93Z2;
}
if (11 == $Fccuz) {
goto Ck4kl;
}
if (12 == $Fccuz) {
goto vQsSt;
}
throw new Exception(
"\x54\157\x6f\40\155\x61\x6e\x79\40\x66\151\x6c\x65\x73\40\50{$Fccuz}\x29"
);
goto Db5Z3;
vQsSt:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
Db5Z3:
goto yGzn5;
Ck4kl:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
yGzn5:
goto JVSZc;
B93Z2:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
JVSZc:
goto z5IPm;
nloRo:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
z5IPm:
goto Iax28;
yd_Vx:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
Iax28:
goto JVzj9;
SnQI5:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
JVzj9:
goto XyFWL;
armsf:
$this->stmt->bind_param(
$xYjIl,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B,
$JDW6B
);
XyFWL:
goto zgd1u;
mg_TV:
$this->stmt->bind_param($xYjIl, $JDW6B, $JDW6B, $JDW6B, $JDW6B, $JDW6B);
zgd1u:
goto Z26SG;
U3ojQ:
$this->stmt->bind_param($xYjIl, $JDW6B, $JDW6B, $JDW6B, $JDW6B);
Z26SG:
goto aeqyr;
XgHFB:
$this->stmt->bind_param($xYjIl, $JDW6B, $JDW6B, $JDW6B);
aeqyr:
goto TvdKW;
p8Z5L:
$this->stmt->bind_param($xYjIl, $JDW6B, $JDW6B);
TvdKW:
goto PUvhs;
C810n:
$this->stmt->bind_param($xYjIl, $JDW6B);
PUvhs:
$MWh6j = 0;
G4nh7:
if (!($MWh6j < $Fccuz)) {
goto ISm9a;
}
$bcVDj = fopen($naqlE[$MWh6j], "\x72");
if (!($bcVDj === null)) {
goto qoVNZ;
}
$cGLFU = "\x46\141\151\154\x65\144\40\x74\x6f\40\x6f\x70\x65\156\40\x23{$MWh6j}\x20\x28{$naqlE[$MWh6j]}\51";
$this->protokollieren($cGLFU);
throw new Exception($cGLFU);
qoVNZ:
rFMdf:
if (feof($bcVDj)) {
goto dbGbv;
}
if (
!(
false ===
$this->stmt->send_long_data($MWh6j, fread($bcVDj, 10485760))
)
) {
goto uokxO;
}
throw new Exception(
"\x45\162\x72\x6f\x72\x20\x73\x65\156\144\151\156\x67\x20\146\151\x6c\145\x20\156\165\x6d\142\145\x72\x20{$MWh6j}"
);
uokxO:
goto rFMdf;
dbGbv:
fclose($bcVDj);
t1xtX:
$MWh6j++;
goto G4nh7;
ISm9a:
if ($this->stmt->execute()) {
goto KMIzK;
}
throw new Exception(
$this->dberror2jsonlogged(
$I0wV_,
"\x45\x78\145\143\x75\x74\x65\x20\146\141\x69\154\145\144\72\x20"
),
WS_ERR_DB
);
KMIzK:
$this->result = $this->stmt->get_result();
if (!$this->result) {
goto Ynm2G;
}
$eYmKh = true;
thWk_:
if (!($this->row = $this->result->fetch_assoc())) {
goto RrAou;
}
$m14eO[] = $this->row;
goto thWk_;
RrAou:
if (!($VSxme && count($m14eO) > 0)) {
goto eXDIM;
}
$this->encodeBlobs($m14eO, $this->result);
eXDIM:
RT2NH:
if (!($this->stmt->more_results() && $this->stmt->next_result())) {
goto Ev44f;
}
$this->result = $this->stmt->get_result();
if (!$this->result instanceof mysqli_result) {
goto zTvsG;
}
$NOAkQ = [];
FZ5rj:
if (!($ryT9e = $this->result->fetch_assoc())) {
goto UVyey;
}
$NOAkQ[] = $this->row;
goto FZ5rj;
UVyey:
if (!($VSxme && count($NOAkQ) > 0)) {
goto ikLBH;
}
$this->encodeBlobs($NOAkQ, $this->result);
ikLBH:
if ($i7VYq) {
goto E8VIY;
}
$jf2Hd[] = $NOAkQ;
goto Hx1f3;
E8VIY:
$jf2Hd = (object) array_merge((array) $jf2Hd, (array) $NOAkQ);
foreach ($NOAkQ as $ryT9e) {
$jf2Hd[] = $ryT9e;
gwlh6:
}
lUrtP:
Hx1f3:
zTvsG:
goto RT2NH;
Ev44f:
Ynm2G:
$this->stmt->close();
goto pyOyg;
mwUf8:
if ($this->conn->multi_query($I0wV_)) {
goto BnsMO;
}
throw new Exception($this->dberror2jsonlogged($I0wV_), WS_ERR_DB);
BnsMO:
$this->result = $this->conn->store_result();
if ($this->result) {
goto YF833;
}
if (!($this->conn->errno != 0)) {
goto h0jq2;
}
$cGLFU = $this->dberror2jsonlogged(
"\x46\151\x72\163\x74\40\163\164\157\x72\145\40\146\x61\151\x6c\x65\x64\x3a\40"
);
throw new Exception($cGLFU, WS_ERR_DB);
h0jq2:
goto f5MeQ;
YF833:
$eYmKh = true;
LRuz7:
if (!($this->row = $this->result->fetch_assoc())) {
goto X5pVM;
}
$m14eO[] = $this->row;
goto LRuz7;
X5pVM:
if (!($VSxme && count($m14eO) > 0)) {
goto ltq1g;
}
$this->encodeBlobs($m14eO, $this->result);
ltq1g:
$this->result->free();
f5MeQ:
$MWh6j = 0;
qol2V:
if (!($this->conn->more_results() && $this->conn->next_result())) {
goto GwnxW;
}
$this->result = $this->conn->store_result();
if ($this->result) {
goto RhcQe;
}
if (!($this->conn->errno == 0)) {
goto GHfAQ;
}
goto qol2V;
GHfAQ:
$cGLFU = $this->dberror2jsonlogged(
$I0wV_,
"\x53\164\x6f\x72\145\x20\146\141\151\154\145\144\x3a\x20"
);
throw new Exception($cGLFU, WS_ERR_DB);
RhcQe:
$NOAkQ = [];
ACMX_:
if (!($this->row = $this->result->fetch_assoc())) {
goto QseSw;
}
$NOAkQ[] = $this->row;
goto ACMX_;
QseSw:
if (!($VSxme && count($NOAkQ) > 0)) {
goto WEZt9;
}
$this->encodeBlobs($NOAkQ, $this->result);
WEZt9:
$this->result->free();
if ($i7VYq) {
goto G4HQ4;
}
$jf2Hd[$MWh6j] = $NOAkQ;
$MWh6j++;
goto VDWbi;
G4HQ4:
$jf2Hd = (object) array_merge((array) $jf2Hd, (array) $NOAkQ);
VDWbi:
goto qol2V;
GwnxW:
pyOyg:
if (!$eYmKh) {
goto b4B3V;
}
if (!$jf2Hd) {
goto q8eIx;
}
$this->output[] = $m14eO;
foreach ($jf2Hd as $ta42G) {
$this->output[] = $ta42G;
w7AHu:
}
cjAfw:
goto Zkk1f;
q8eIx:
$this->output = $m14eO;
Zkk1f:
b4B3V:
if (!(null != $qmOpm)) {
goto N4aas;
}
$I0wV_ = false;
if (is_array($qmOpm)) {
goto at4iI;
}
$I0wV_ =
"\x53\x45\114\105\x43\x54\40\100" .
$qmOpm .
"\40\101\x53\40" .
$qmOpm;
goto QqGNG;
at4iI:
if (!(count($qmOpm) > 0)) {
goto iL9H6;
}
$O58Uu = count($qmOpm);
$BgNlk = 0;
AUZwL:
if (!($BgNlk < $O58Uu)) {
goto BGqru;
}
$xm_dv = $qmOpm[$BgNlk];
if ($BgNlk > 0) {
goto EdWO4;
}
$I0wV_ = "\100{$xm_dv}\x20\101\x53\40{$xm_dv}";
goto w7M6p;
EdWO4:
$I0wV_ = "{$I0wV_}\54\x40{$xm_dv}\40\x41\123\x20{$xm_dv}";
w7M6p:
Cxa96:
$BgNlk++;
goto AUZwL;
BGqru:
$I0wV_ = "\123\105\114\x45\x43\x54\x20{$I0wV_}";
iL9H6:
QqGNG:
if (!$I0wV_) {
goto hEumm;
}
if ($TF8e2 = $this->conn->query($I0wV_)) {
goto uMMwm;
}
throw new Exception($this->dberror2jsonlogged($I0wV_), WS_ERR_DB);
goto CxqJ9;
uMMwm:
$GEMNg = $TF8e2->fetch_assoc();
if ($this->output) {
goto dC6FG;
}
$this->output[] = $GEMNg;
goto axxCl;
dC6FG:
if ($i7VYq) {
goto BJ9la;
}
$this->output[][] = $GEMNg;
goto NCPSz;
BJ9la:
$this->output[0] = (object) array_merge(
(array) $this->output[0],
(array) $GEMNg
);
NCPSz:
axxCl:
$eYmKh = true;
$TF8e2->close();
CxqJ9:
hEumm:
N4aas:
if ($eYmKh) {
goto kcHg_;
}
return "\117\x4b";
goto Zn9jI;
kcHg_:
return $this->output;
Zn9jI:
}
}
Function Calls
None |
Stats
MD5 | f04b6ae325b5b75d7866ba293b1a458c |
Eval Count | 0 |
Decode Time | 69 ms |