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 /* Generated by OutputBooks Team */ defined("\x42\x41\123\x45\120\101\124\110"..
Decoded Output download
<?php
/*
Generated by OutputBooks Team
*/
defined("BASEPATH") or exit("No direct script access allowed");
class Account_table extends Base_table
{
function __construct()
{
parent::__construct(array("tbl" => "account", "tbl_key" => "id"));
}
function list_fields($tbl = '')
{
return array("id", "cId", "name", "groupId", "groupCode", "accCode", "accCustomCode", "descr", "taxId", "HS", "itc", "taxTypeCode", "isActive", "systemRec", "bId", "userAccess");
}
public function save($data, $params = array())
{
goto xlaNW;
iyRaU:
return false;
goto fPbRX;
H120A:
$values["bId"] = $this->bId;
goto OT8I8;
Aotk8:
return false;
goto YGhn0;
XrgOy:
if (!get_company("isFranchise")) {
goto GZ5d6;
}
goto H120A;
msPt6:
if (!($acc["bId"] != 0 && $acc["bId"] != $this->bId)) {
goto yP_le;
}
goto DKTaN;
YGhn0:
qN6ff:
goto FIEsc;
jVS6F:
$acc = $this->CI->db->select("bId")->from("account")->where(array("id" => $data["id"], "cId" => $this->cId))->get()->row_array();
goto msPt6;
BMlyC:
imvHw:
goto h5xgs;
OT8I8:
GZ5d6:
goto YH6qG;
FIEsc:
return $id;
goto dPh4a;
xlaNW:
if (empty($data["id"])) {
goto imvHw;
}
goto jVS6F;
YH6qG:
if ($id = parent::save($values)) {
goto qN6ff;
}
goto Aotk8;
h5xgs:
$values = parent::strip_fields($data);
goto XrgOy;
fPbRX:
yP_le:
goto BMlyC;
DKTaN:
$this->error = "You don't have permission to edit this account!";
goto iyRaU;
dPh4a:
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*
Generated by OutputBooks Team
*/
defined("\x42\x41\123\x45\120\101\124\110") or exit("\x4e\157\40\144\x69\x72\x65\x63\164\x20\163\143\162\151\160\x74\x20\x61\x63\x63\x65\163\x73\40\x61\154\x6c\157\x77\x65\x64");
class Account_table extends Base_table
{
function __construct()
{
parent::__construct(array("\x74\142\154" => "\x61\143\143\x6f\x75\156\x74", "\x74\142\x6c\x5f\153\x65\x79" => "\x69\144"));
}
function list_fields($tbl = '')
{
return array("\151\x64", "\143\111\144", "\x6e\141\155\145", "\147\162\157\165\x70\111\144", "\147\162\157\165\160\103\x6f\144\145", "\141\x63\143\103\x6f\144\145", "\x61\143\x63\103\x75\x73\164\x6f\155\103\x6f\144\145", "\x64\145\x73\143\x72", "\x74\141\x78\x49\x64", "\x48\x53", "\151\x74\143", "\164\141\170\x54\x79\x70\145\103\x6f\x64\x65", "\x69\x73\101\x63\x74\151\166\145", "\x73\x79\163\164\x65\155\x52\x65\x63", "\142\111\144", "\165\x73\145\162\x41\143\x63\145\x73\163");
}
public function save($data, $params = array())
{
goto xlaNW;
iyRaU:
return false;
goto fPbRX;
H120A:
$values["\142\111\x64"] = $this->bId;
goto OT8I8;
Aotk8:
return false;
goto YGhn0;
XrgOy:
if (!get_company("\x69\163\106\162\x61\x6e\x63\150\x69\x73\145")) {
goto GZ5d6;
}
goto H120A;
msPt6:
if (!($acc["\x62\111\144"] != 0 && $acc["\x62\x49\x64"] != $this->bId)) {
goto yP_le;
}
goto DKTaN;
YGhn0:
qN6ff:
goto FIEsc;
jVS6F:
$acc = $this->CI->db->select("\x62\111\144")->from("\141\143\x63\x6f\165\156\x74")->where(array("\151\144" => $data["\151\144"], "\x63\111\x64" => $this->cId))->get()->row_array();
goto msPt6;
BMlyC:
imvHw:
goto h5xgs;
OT8I8:
GZ5d6:
goto YH6qG;
FIEsc:
return $id;
goto dPh4a;
xlaNW:
if (empty($data["\x69\144"])) {
goto imvHw;
}
goto jVS6F;
YH6qG:
if ($id = parent::save($values)) {
goto qN6ff;
}
goto Aotk8;
h5xgs:
$values = parent::strip_fields($data);
goto XrgOy;
fPbRX:
yP_le:
goto BMlyC;
DKTaN:
$this->error = "\x59\157\x75\40\x64\x6f\x6e\x27\x74\40\150\141\166\145\40\x70\145\162\x6d\151\x73\163\x69\157\156\40\164\x6f\40\x65\144\151\164\x20\164\150\x69\x73\x20\141\x63\143\157\x75\x6e\x74\41";
goto iyRaU;
dPh4a:
}
}
Function Calls
None |
Stats
MD5 | 1883dffefeae0f49d93baadfe6c2949b |
Eval Count | 0 |
Decode Time | 51 ms |