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\101\x53\105\120\101\x54\x48")..

Decoded Output download

<?php 
/* 
Generated by OutputBooks Team 
*/ 
 defined("BASEPATH") or exit("No direct script access allowed"); class Account extends MY_Controller { public function __construct() { goto OsAy5; GE4Sq: $this->load->model("accountModel"); goto UAZgz; UAZgz: $this->currency_symbol = get_company("symbol"); goto v9O9g; OsAy5: parent::__construct(); goto GE4Sq; v9O9g: $this->currency_fraction = get_company("fraction"); goto IAQDS; IAQDS: } public function index() { $this->load->page("home"); } public function listing($type = '') { goto L1Xy2; WCrbF: ubC7e: goto KnSzQ; Neu9W: $this->response->write(); goto EfGV2; Ld8CF: if (empty($list)) { goto hRpe_; } goto fRmtK; ytdEL: goto jbZMB; goto YZpdy; uZ56E: $this->response->set_data("accGroup", $list, true); goto eEZKE; So9ff: $this->response->error("Method not exist"); goto ytdEL; fciKV: if (!empty($type)) { goto ubC7e; } goto UqPWE; KnSzQ: if (!($type != "groups")) { goto YIYCr; } goto lnUAf; lnUAf: valid_permission("ACCHA", 1); goto T_iBF; T_iBF: YIYCr: goto Rp18e; I4aAH: jbZMB: goto Neu9W; S04YA: $this->response->success(); goto Ld8CF; UqPWE: $type = "list"; goto WCrbF; eEZKE: OG1Jh: goto I4aAH; ovCBj: if (method_exists($this->accountModel, $type)) { goto DHLwD; } goto So9ff; Rp18e: $type = "get_" . $type; goto ovCBj; zFURq: $list = $this->accountModel->{$type}($data); goto S04YA; fRmtK: $this->response->set_data("items", $list, true); goto J2Xy1; P5MMi: $list = $this->accountModel->get_groups(array("userGroup" => true)); goto uZ56E; J2Xy1: hRpe_: goto wGpPC; L1Xy2: $data = $this->request->post(); goto fciKV; wGpPC: if (!($type == "get_list" && !empty($data["accGroup"]))) { goto OG1Jh; } goto P5MMi; YZpdy: DHLwD: goto zFURq; EfGV2: } public function search($q = '') { goto lnfFZ; IF0I3: A5e3V: goto O1kOL; gka10: $this->response->set_data("items", $list); goto IF0I3; lnfFZ: $list = $this->accountModel->search($q); goto Lne2J; Lne2J: $this->response->success(); goto ee9jE; ee9jE: if (empty($list)) { goto A5e3V; } goto gka10; O1kOL: $this->response->write(); goto hwElq; hwElq: } public function name($id = '') { goto l6kRL; pLt2e: if (empty($list)) { goto R_JLs; } goto JDGFx; iUNmu: R_JLs: goto YJTv3; l6kRL: $list = $this->accountModel->get_name($id); goto L0SBa; L0SBa: $this->response->success(); goto pLt2e; YJTv3: $this->response->write(); goto xKwx7; JDGFx: $this->response->set_data("items", $list); goto iUNmu; xKwx7: } public function dropdownlisting() { goto jBnD5; F97jj: $list = $this->accountModel->get_dropdownlist($data); goto jp2fz; YbMol: $this->response->set_data("items", $list); goto GQNKO; jBnD5: $data = $this->request->post(); goto F97jj; jp2fz: $this->response->success(); goto CsW__; CsW__: if (empty($list)) { goto CA2_P; } goto YbMol; GQNKO: CA2_P: goto cJis6; cJis6: $this->response->write(); goto R8n81; R8n81: } function import($overwrite = false, $plId = 0) { goto yLnva; CyLRK: if (empty($result["mismatch_groupname_error"])) { goto Eyuse; } goto XwbWN; rnXVC: nl99a: goto eQ9WI; ds64i: $this->response->set_data($result); goto WFTvV; S1d7N: l54sT: goto YIR_R; S6ukM: $this->response->error("Parent name not exists for  " . $result["parentname_errors"]); goto U6g3R; CYRFv: if (empty($result["parentacc_errors"])) { goto sjnqr; } goto yUxE_; UbjMT: waZwn: goto dpd8m; bIBfz: $file_data = $this->attachmentModel->upload_file("import"); goto fYi2I; AArOR: if (empty($result["parentname_errors"])) { goto pwKdH; } goto S6ukM; fYi2I: $params = array("file_data" => !empty($file_data[0]) ? $file_data[0] : $data, "overwrite" => $overwrite); goto TafKk; qW8BO: sjnqr: goto CyLRK; pVMvS: $this->response->error($message); goto S1d7N; KFnOA: JktnA: goto AArOR; zk0Fb: $this->response->error(lang("IMPORT_ERROR")); goto UbjMT; yLnva: $this->load->model("attachmentModel"); goto F4bsQ; UrXH_: return false; goto jTxcs; XdCyW: MVcDa: goto yC2ak; eQ9WI: $this->response->write(); goto UrXH_; sL5Kx: if (empty($message)) { goto l54sT; } goto pVMvS; obCIw: if ($result) { goto waZwn; } goto zk0Fb; F4bsQ: $_POST = $data = $this->request->post(); goto bIBfz; TafKk: $result = $this->accountModel->import($params); goto obCIw; yUxE_: $this->response->error("Parent name not exists for  " . $result["parentacc_errors"]); goto qW8BO; U6g3R: pwKdH: goto CYRFv; hKs3f: Eyuse: goto XkdDW; bSoee: $this->response->error("Groups already exists for  " . $result["groupname_errors"]); goto XdCyW; mfQ42: return true; goto rnXVC; XwbWN: $this->response->error("Group Type Mismatch. Skipped  " . $result["mismatch_groupname_error"]); goto hKs3f; YIR_R: if (empty($result["groupname_errors"])) { goto MVcDa; } goto bSoee; XkdDW: if (!(!empty($result) && !empty($result["id"]))) { goto nl99a; } goto ds64i; WFTvV: $this->response->write(); goto mfQ42; BWVw1: $this->response->error("Account name already exists for  " . $result["accountname_errors"]); goto KFnOA; yC2ak: if (empty($result["accountname_errors"])) { goto JktnA; } goto BWVw1; dpd8m: $message = $this->accountModel->message; goto sL5Kx; jTxcs: } public function search_list($detail = true) { goto OH4wW; mMTQU: unset($data["page"]); goto Jb0p9; Hy7ZX: $this->response->set_data("items", $list, true); goto MdlSV; MdlSV: Xz2cX: goto GByMC; cVfoj: $list = $this->accountModel->get_search_list($data, $detail); goto AEf69; yfk1b: $this->response->success(); goto pg_dV; pg_dV: if (empty($list)) { goto Xz2cX; } goto Hy7ZX; AEf69: SoQ7B: goto yfk1b; GByMC: $this->response->write(); goto z_3UQ; Jb0p9: if (empty($data)) { goto SoQ7B; } goto cVfoj; OH4wW: $data = $this->request->post(); goto mMTQU; z_3UQ: } public function sortgroup() { goto f7nlO; Wjonw: fxufC: goto QF2a1; If9n4: $this->response->success("Order saved successfully"); goto fZ7LE; AqxZx: if (empty($data["previousItem"])) { goto dVUHx; } goto yP_7R; fZ7LE: V2WlI: goto VwsX5; mGbcl: $data["type"] = "accountgroup"; goto g_SGr; DPIjp: return false; goto Wjonw; Wpfk0: $this->response->write(); goto DPIjp; yYcD6: $this->response->write(); goto iMwjq; heEdo: uBxhF: goto km9_5; r1oJ7: z9hoz: goto cnhgd; TAfhs: if (empty($result)) { goto V2WlI; } goto If9n4; QI2_v: $this->response->error("INVALID_REQUEST"); goto yYcD6; G_H88: if (!empty($data)) { goto fxufC; } goto u4YTc; GsDwt: $data["nextItem"]["pId"] = $data["nextItem"]["parentGroupId"]; goto AqxZx; f7nlO: valid_permission("ACCHA", 1); goto bogn_; VwsX5: if (!empty($result)) { goto z9hoz; } goto QI2_v; iMwjq: return false; goto r1oJ7; cnhgd: $this->response->write(); goto dC8KV; yP_7R: $data["previousItem"]["pId"] = $data["previousItem"]["parentGroupId"]; goto AwD7v; g_SGr: if (!(!empty($data["currentItem"]) && !empty($data["nextItem"]))) { goto uBxhF; } goto hCMdX; l1fDK: $result = $this->sortModel->saveorder($data); goto TAfhs; bogn_: $data = $this->request->post(); goto G_H88; QF2a1: $data["currentItem"]["pId"] = $data["currentItem"]["parentGroupId"]; goto GsDwt; dC8KV: return true; goto heEdo; u4YTc: $this->response->error("INVALID_REQUEST"); goto Wpfk0; hCMdX: $this->load->model("sortModel"); goto l1fDK; AwD7v: dVUHx: goto mGbcl; km9_5: } public function delete_account_group() { goto FcsRv; zG7xH: if ($result === true) { goto aUcXg; } goto omVpz; toBES: $data = $this->request->post(); goto eE5UI; o5nsX: goto NQ6kK; goto h4pGY; LAMhO: $this->response->write(); goto SILNV; h4pGY: aUcXg: goto XAvQy; rx_8I: $this->response->set_data("data", $message); goto o5nsX; omVpz: $message = $this->accountModel->message; goto MvYpj; eE5UI: $result = $this->accountModel->delete_account_group($data); goto zG7xH; MvYpj: $this->response->error($message); goto rx_8I; J8gPL: NQ6kK: goto LAMhO; XAvQy: $this->response->set_data("data", "deleted"); goto ludfX; FcsRv: valid_permission("ACCHA", 4); goto toBES; ludfX: $this->response->success("DELETE_SUCCESS"); goto J8gPL; SILNV: } public function save_account_group() { goto Ai18Q; wymuV: $message = $this->accountModel->message; goto s1ZRV; twrpt: $this->response->set_data("data", $result); goto vJzAT; ibg2_: $this->response->success("SUCCESS_SAVE"); goto twrpt; dCecv: $result = $this->accountModel->save_account_group($data); goto PJi6L; s1ZRV: $this->response->error($message); goto gg5ul; Mq2Eg: return true; goto HntUN; PJi6L: if (empty($result)) { goto hYhYN; } goto ibg2_; omFW7: valid_permission("ACCHA", !empty($data["id"]) ? 3 : 2); goto dCecv; vJzAT: $this->response->write(); goto Mq2Eg; gg5ul: $this->response->write(); goto t6q1j; Ai18Q: $data = $this->request->post(); goto omFW7; t6q1j: return; goto PUXa4; HntUN: hYhYN: goto wymuV; PUXa4: } public function save($type = '') { goto e0cx5; L6Tmb: $this->response->error($message); goto vD1J6; hN1dj: sQUvT: goto dA39B; CNmab: $type = "save_" . $type; goto zAc7u; eOf9S: $this->response->set_data($result); goto ryX1G; vRVwU: if (!$result) { goto sQUvT; } goto YRque; dA39B: $message = $this->accountModel->message; goto AJX6X; AJX6X: BwprT: goto L6Tmb; PaIMs: valid_permission($type == "save_banks" ? "BAN" : "ACCHA", !empty($postData["id"]) ? 3 : 2); goto m0z2r; JVP35: $type = "item"; goto ILWFc; xWZEL: if (!method_exists($this->accountModel, $type)) { goto BwprT; } goto aY5Wh; SfPbT: $this->response->set_data("id", $result); goto O2YOe; ILWFc: iPR36: goto CNmab; zAc7u: $message = "Method not exist"; goto xWZEL; GLy0n: ZlI1V: goto SfPbT; ryX1G: goto L0mo0; goto GLy0n; e0cx5: if (!empty($type)) { goto iPR36; } goto JVP35; vD1J6: $this->response->write(); goto aGxuO; aGxuO: return; goto W20Vy; wo2Lu: if (!is_array($result)) { goto ZlI1V; } goto eOf9S; P6TkB: $this->response->write(); goto FhL5i; YRque: $this->response->success("SUCCESS_SAVE"); goto wo2Lu; aY5Wh: $postData = $this->request->post(); goto PaIMs; m0z2r: $result = $this->accountModel->{$type}($postData); goto vRVwU; FhL5i: return true; goto hN1dj; O2YOe: L0mo0: goto P6TkB; W20Vy: } public function delete($id = '', $type = '') { goto xX4Wx; dqb6W: ESpva: goto d613R; f0v_Y: if (!$ret) { goto RvKvH; } goto u2FOt; kzTMu: return; goto dqb6W; jDPpx: $this->response->success("DELETE_SUCCESS"); goto fZLOM; PtJ6E: valid_permission("ACCHA", 4); goto YaZvF; WbYQQ: goto C_ErK; goto HKpTU; pbR2E: $this->response->error("Id Missing."); goto EAquK; HKpTU: ASuuS: goto jDPpx; u2FOt: $this->response->set_data("data", $ret); goto Ky3dh; d613R: $ret = $this->accountModel->delete($id, $type, $data); goto iJ6DL; xX4Wx: $data = $this->input->post(); goto PtJ6E; YaZvF: if (!empty($id)) { goto ESpva; } goto pbR2E; EAquK: $this->response->write(); goto kzTMu; Ky3dh: RvKvH: goto WbYQQ; tfh5A: $this->response->write(); goto CPLhq; Vm5u6: $this->response->error($this->accountModel->message); goto f0v_Y; iJ6DL: if ($ret === true) { goto ASuuS; } goto Vm5u6; fZLOM: C_ErK: goto tfh5A; CPLhq: } public function get_banks($page = 1) { goto jpQQp; faKLM: $data["page"] = !empty($data["page"]) ? $data["page"] : $page; goto fCFFP; qggAM: valid_permission("BANK_TRANS", 1); goto pIMQW; fkcIY: if (!empty($data["dropdown"])) { goto oI2M2; } goto qggAM; k2PAz: $this->response->set_data("items", $result, true); goto bYXgg; bYXgg: $this->response->write(); goto bVoBB; pIMQW: oI2M2: goto faKLM; jpQQp: $data = $this->request->post(); goto fkcIY; fCFFP: $result = $this->accountModel->get_banks($data); goto k2PAz; bVoBB: return true; goto t1eek; t1eek: } public function bankdetails($accId = 0) { goto U039i; U039i: valid_permission("BAN", empty($accId) ? 2 : 3); goto u70lq; nkAUK: $this->response->write(); goto YxCGY; YxCGY: return true; goto fD3vp; u70lq: $result = $this->accountModel->bankdetails($accId); goto tMByl; tMByl: $this->response->set_data($result); goto nkAUK; fD3vp: } function export_file($params, $export_type = "csv") { goto JSQ0D; J5A44: ini_set("max_execution_time", -1); goto vaD2Q; a5Tln: if (is_dir($file_path)) { goto fJTnS; } goto iDeuw; kdR2H: fJTnS: goto a9vIw; H824B: $content = ''; goto ezDr5; Nmb5p: return; goto t9eiE; Rwub_: return $file_path; goto fegzC; MuFpJ: $this->load->helper("download"); goto AMgo6; iDeuw: mkdir($file_path, 0755, TRUE); goto kdR2H; rTL0m: yZ3OS: goto Rwub_; J5nmx: l200V: goto rTL0m; JVUVa: $file_name = $params["file_name"]; goto UNfrV; ezDr5: $items = !empty($params["items"]) ? $params["items"] : array(); goto MuFpJ; vaD2Q: $params["type"] = !empty($params["type"]) ? $params["type"] : "default"; goto H824B; a9vIw: switch ($export_type) { case "all_pdf": case "pdf": goto LXY6Z; gugw5: $mpdf->SetFooter($headerFooterConfiguration); goto fVfDC; vhlbp: if (empty($params["to_date"])) { goto T0nl7; } goto XlP1H; BlATJ: $mpdf->autoVietnamese = true; goto eT02o; orOxT: $mpdf->autoScriptToLang = true; goto A22Nw; Y2mLy: $oddEvenConfiguration = ["L" => ["content" => ''], "C" => ["content" => ''], "R" => ["content" => $headerFooterContent], "line" => 1]; goto VBxtV; LubSw: $file_path .= DS . $file_name . ".pdf"; goto kmWmP; eT02o: $mpdf->autoArabic = true; goto hCtsv; kmWmP: $content = $this->parser->parse("export/report_transactions.php", $params, true); goto Y_moA; EQAlT: $headerFooterContent = "<div align="right">{PAGENO} / {nb}</div>"; goto Y2mLy; W5gGm: DxWMq: goto iPoHo; cPpED: $items = array_chunk($params["items"], 150); goto R9_6p; BYtdd: $mpdf->AddPage('', '', '', '', ''); goto EQAlT; DLPaM: if (empty($params["from_date"])) { goto X4yge; } goto uM59o; EYOEA: $header = "<div style="font-weight:normal;font-style:arial;text-align:left">"; goto kQ08U; d1lGu: $mpdf->WriteHTML(html_entity_decode($content)); goto egcPX; bmNcE: if (empty($params["sideHeader"])) { goto d9e4y; } goto fj69E; QusdZ: $header .= " - " . $to_date; goto Fa25b; NjmAq: $mpdf->SetDisplayMode("fullpage"); goto B9j5s; XlP1H: $to_date = isset($params["to_date"]) ? date("d/m/Y", strtotime($params["to_date"])) : ''; goto QusdZ; wtYBW: $header .= " </div>"; goto bqH43; VvgJt: foreach ($_items as $key => $rows) { goto cWtts; uxmXt: $post["hide_footer"] = false; goto dmnYf; YY4en: bp1dd: goto F6yMp; aStKJ: $content = $this->parser->parse("export/report_transactions.php", $post, true); goto I038Y; I038Y: $mpdf->WriteHTML(html_entity_decode($content)); goto xCz8J; sjbAT: $params["_items"] = $rows; goto dXa3e; dXa3e: $post = $params; goto Htk0P; mMTLs: $this->load->clear_vars(); goto aStKJ; xCz8J: JQCJs: goto aRZWv; Htk0P: if (!$key) { goto bp1dd; } goto ZwRJg; ZwRJg: $post["hide_header"] = false; goto YY4en; dmnYf: pDBp0: goto mMTLs; cWtts: ini_set("max_execution_time", -1); goto sjbAT; F6yMp: if (!($n != $key)) { goto pDBp0; } goto uxmXt; aRZWv: } goto SsOUc; X5ZQY: Bvs15: goto bmNcE; R9_6p: $n = count($items) - 1; goto vuJtq; vuJtq: foreach ($items as $key => $rows) { goto Hvynf; Zs3Qu: $mpdf->WriteHTML(html_entity_decode($content)); goto UKARU; iLLot: if (!$key) { goto mRNpH; } goto DaEFa; DaEFa: $post["hide_header"] = false; goto kTHFm; Hvynf: ini_set("max_execution_time", -1); goto QeUg9; istgN: $this->load->clear_vars(); goto FF8pL; m4z7L: $post["hide_footer"] = false; goto vMs03; FF8pL: $content = $this->parser->parse("export/report_transactions.php", $post, true); goto Zs3Qu; vMs03: zdADZ: goto istgN; UKARU: vZ03L: goto A1Xj9; maPYq: $post = $params; goto iLLot; QeUg9: $params["items"] = $rows; goto maPYq; kTHFm: mRNpH: goto rLVM_; rLVM_: if (!($n != $key)) { goto zdADZ; } goto m4z7L; A1Xj9: } goto E2MZC; E2MZC: Cg3e2: goto YApvD; kLuTc: goto yZ3OS; goto d0S6c; B9j5s: $mpdf->packTableData = true; goto BYtdd; fj69E: $header .= " " . $params["sideHeader"] . " "; goto wcwhN; uM59o: $from_date = isset($params["from_date"]) ? date("d/m/Y", strtotime($params["from_date"])) : ''; goto OtamX; Rcilz: WlzN1: goto cPpED; fVfDC: if (!empty($params["type"]) && ($params["type"] == "ledDetail" || $params["type"] == "balancesheet")) { goto WlzN1; } goto aqZoc; A22Nw: $mpdf->baseScript = 1; goto BlATJ; YApvD: if (empty($_items)) { goto DxWMq; } goto VvgJt; iPoHo: Wkpp0: goto LnLpt; LXY6Z: $this->load->library("parser"); goto LubSw; z_5wy: $mpdf->defaultfooterline = 0; goto EYOEA; TZ1dd: $mpdf->defaultheaderline = 0; goto orOxT; hCtsv: $mpdf->autoLangToFont = true; goto z_5wy; bqH43: $mpdf->SetHeader($header); goto gugw5; qLUNg: ini_set("memory_limit", "-1"); goto gVYk5; gVYk5: $mpdf = new \Mpdf\Mpdf(["orientation" => !empty($params["orientation"]) ? $params["orientation"] : "P", "format" => "A4", "mode" => "en", "mode" => "UTF-8", "default_font_size" => 11, array(5, 5, 8, 8)]); goto NjmAq; Fa25b: T0nl7: goto wtYBW; VBxtV: $headerFooterConfiguration = ["odd" => $oddEvenConfiguration, "even" => $oddEvenConfiguration]; goto TZ1dd; zj8PV: X4yge: goto vhlbp; Y_moA: require_once APPPATH . "third_party/mpdf/autoload.php"; goto qLUNg; OtamX: $header .= $from_date; goto zj8PV; aqZoc: $content = $this->parser->parse("export/report_transactions.php", $params, true); goto d1lGu; kQ08U: if (empty($params["summaryName"])) { goto Bvs15; } goto lhSUh; lhSUh: $header .= "<span style="font-weight:bold">" . strtoupper($params["summaryName"]) . "</span>"; goto X5ZQY; SsOUc: ugBJu: goto W5gGm; egcPX: goto Wkpp0; goto Rcilz; wcwhN: d9e4y: goto DLPaM; LnLpt: $mpdf->Output(FCPATH . $file_path, "F"); goto kLuTc; d0S6c: default: goto og_jA; gcQVP: foreach ($head as $hd => $h) { goto ZdBv3; jqlJh: $head[$hd] = $h; goto JtZ38; g3cj1: $h = str_replace("&nbsp;", '', $h); goto jqlJh; ZdBv3: $h = strip_tags($h); goto g3cj1; JtZ38: THWzD: goto vuaq6; vuaq6: } goto CxZyu; XH_d3: $head = array_column($heading, "name"); goto gcQVP; CxZyu: W3ILY: goto rJ2Kr; og_jA: $file_path .= DS . $file_name . "." . $export_type; goto t61kw; VOq3K: $heading = $params["heading"]; goto XH_d3; t61kw: $separator = $export_type == "csv" ? "," : "	"; goto VOq3K; rJ2Kr: } goto J5nmx; JSQ0D: $pentrans = array(); goto jC09L; IB1zu: $full = array(); goto J5A44; AMgo6: if (!empty($params["file_name"])) { goto GcKop; } goto Nmb5p; t9eiE: GcKop: goto JVUVa; jC09L: $row["name"] = ''; goto IB1zu; UNfrV: $file_path = "temp" . DS . "export" . DS . get_company("id"); goto a5Tln; fegzC: } function export() { goto cYVcB; FZfyt: $this->response->write(); goto xcfXT; TnBlB: rewind($fp); goto FG4Zr; bvY5v: NRKCo: goto Ft_Qe; wkhPw: kbNtA: goto GKTww; qt0iB: $list = $this->accountModel->get_list($data); goto uXBH6; GKTww: $head = array(); goto J_NCj; XmBxa: if (is_dir($file_path)) { goto hl_cP; } goto gVWi8; Sn10b: $file_path .= DS . "accounts_" . time() . $ext; goto pFiBd; QC68Z: Q06td: goto z2BxS; HrOQk: $ext = $data["type"] == "csv" ? ".csv" : ".xls"; goto Sn10b; J_NCj: if (empty($list)) { goto whA5M; } goto TBK8s; uVFfy: $list = $this->accountModel->get_accounts_export(); goto DPcuB; CmSHc: $fp = fopen($file_path, "w+"); goto wkhPw; gisox: $data["file_name"] = "accounts_list"; goto crJGd; DPcuB: ini_set("memory_limit", "-1"); goto U9AD0; i1asR: return true; goto bvY5v; Ft_Qe: if (!(!empty($data["type"]) && $data["type"] == "pdf")) { goto N7XsH; } goto YKJTM; VEw4l: $this->response->set_data("url", $file_name); goto FZfyt; xcfXT: return true; goto KCIte; FG4Zr: $csv_contents = stream_get_contents($fp); goto irLqt; irLqt: fclose($fp); goto S7lH0; z2BxS: whA5M: goto BhfZj; S7lH0: nBRum: goto Ipo7t; gVWi8: mkdir($file_path, 0755, TRUE); goto gIpBr; hI9pR: $file_name = $this->export_file($data, $data["type"]); goto VEw4l; B4eTG: $data["items"] = $list; goto gisox; cYVcB: $data = $this->request->post(); goto qiDG2; Ipo7t: $content = ''; goto jSVc9; U9AD0: $head = $content = ''; goto y0Kth; jSVc9: $this->response->set_data("url", $file_path); goto Ra63y; qiDG2: if (!(!empty($data["type"]) && $data["type"] == "csv")) { goto NRKCo; } goto uVFfy; uXBH6: foreach ($list as $key => $val) { goto ab8Po; APy8O: $val["name"] = str_repeat("_____", $val["depth"] - 1) . $val["name"]; goto WeQIc; WeQIc: WxKtu: goto oyRRj; ab8Po: if (!($val["depth"] > 0)) { goto WxKtu; } goto APy8O; oyRRj: if (!(!empty($val["depth"]) && $val["depth"] == 1 && !empty($val["accId"]))) { goto GnDro; } goto dJXVF; rPZs1: $list[$key] = $val; goto X03Td; X03Td: jZPr_: goto LK8fB; dJXVF: $val["name"] = str_repeat("_____", $val["depth"]) . $val["name"]; goto VRdlD; VRdlD: GnDro: goto rPZs1; LK8fB: } goto Dhefv; Ra63y: $this->response->write(); goto i1asR; ZdwkO: $data["heading"] = array("name" => array("name" => "Name", "wid" => "50%"), "accCustomCode" => array("name" => "Code", "wid" => "30%")); goto hI9pR; y0Kth: $file_path = "temp" . DS . "export" . DS . get_company("id"); goto XmBxa; Dhefv: fAqWf: goto B4eTG; KCIte: N7XsH: goto AkJK0; BhfZj: if (!(!empty($data["type"]) && $data["type"] == "csv")) { goto nBRum; } goto TnBlB; crJGd: $data["title"] = "<h3>Chart of Accounts</h3>"; goto ZdwkO; pFiBd: if (!(!empty($data["type"]) && $data["type"] == "csv")) { goto kbNtA; } goto CmSHc; gIpBr: hl_cP: goto HrOQk; YKJTM: $data["isShowAll"] = true; goto qt0iB; TBK8s: foreach ($list as $key => $res) { goto zs0Sx; oQce0: fputcsv($fp, array("Id", "Account Name", "Account Code", "Account Type", "Parent Account", "Description")); goto AQIF9; AQIF9: oi51Y: goto bQ9N0; YMScj: wJ9_b: goto Rbw2m; w1ZnL: if ($key) { goto oi51Y; } goto oQce0; bQ9N0: fputcsv($fp, $res); goto YMScj; zs0Sx: $res["name"] = !empty($res["name"]) ? ltrim($res["name"], "- ") : ''; goto KffMh; KffMh: $res["Parent Account"] = ''; goto w1ZnL; Rbw2m: } goto QC68Z; AkJK0: } public function get($id = 0) { goto lYWVb; OQwsh: return true; goto T0YP_; k9Y9c: $this->response->write(); goto OQwsh; fLdiD: if (!$id) { goto cUKJO; } goto iwnnM; p0bu7: $this->response->set_data("item", $acc); goto G99rq; lYWVb: valid_permission("ACCHA", 1); goto fLdiD; G99rq: cUKJO: goto k9Y9c; iwnnM: $acc = $this->accountModel->get_account($id); goto p0bu7; T0YP_: } public function parentHasTrans() { goto vlVL2; ub7QT: $result = $this->accountModel->findParentHasTrans($data); goto fRNx5; vlVL2: $data = $this->request->post(); goto ub7QT; CkcNa: return true; goto oKIrM; RJd1h: $this->response->write(); goto CkcNa; fRNx5: $this->response->set_data($result); goto RJd1h; oKIrM: } public function sortAccount() { goto WmOPT; JY1i7: goto L01Ab; goto YI89l; F2llK: $this->response->set_data($result); goto rvyz1; ZGKIm: $this->response->set_data("Sorted"); goto BtR75; WmOPT: $data = $this->request->post(); goto ahn12; O_ZH7: $this->response->set_data("data", $message); goto JY1i7; rvyz1: $this->response->write(); goto PE4yT; ahn12: $result = $this->accountModel->sortAccount($data); goto iKM4i; YI89l: IeI1T: goto ZGKIm; BFLAI: $message = $this->accountModel->message; goto fpFBA; iKM4i: if ($result === true) { goto IeI1T; } goto BFLAI; fpFBA: $this->response->error($message); goto O_ZH7; NcUWM: L01Ab: goto F2llK; PE4yT: return true; goto tuAMi; BtR75: $this->response->success("Sorted"); goto NcUWM; tuAMi: } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/*
Generated by OutputBooks Team
*/
 defined("\x42\101\x53\105\120\101\x54\x48") or exit("\116\x6f\x20\144\x69\162\x65\143\x74\40\x73\x63\x72\151\160\164\40\x61\143\143\x65\163\163\40\141\154\x6c\x6f\x77\x65\x64"); class Account extends MY_Controller { public function __construct() { goto OsAy5; GE4Sq: $this->load->model("\141\143\x63\157\165\x6e\164\x4d\157\144\x65\154"); goto UAZgz; UAZgz: $this->currency_symbol = get_company("\x73\x79\x6d\142\157\154"); goto v9O9g; OsAy5: parent::__construct(); goto GE4Sq; v9O9g: $this->currency_fraction = get_company("\146\x72\141\143\x74\151\x6f\156"); goto IAQDS; IAQDS: } public function index() { $this->load->page("\150\157\155\x65"); } public function listing($type = '') { goto L1Xy2; WCrbF: ubC7e: goto KnSzQ; Neu9W: $this->response->write(); goto EfGV2; Ld8CF: if (empty($list)) { goto hRpe_; } goto fRmtK; ytdEL: goto jbZMB; goto YZpdy; uZ56E: $this->response->set_data("\141\143\x63\x47\x72\x6f\165\x70", $list, true); goto eEZKE; So9ff: $this->response->error("\115\145\164\150\x6f\x64\x20\156\157\164\40\x65\x78\x69\x73\164"); goto ytdEL; fciKV: if (!empty($type)) { goto ubC7e; } goto UqPWE; KnSzQ: if (!($type != "\x67\162\157\x75\160\163")) { goto YIYCr; } goto lnUAf; lnUAf: valid_permission("\101\103\x43\110\x41", 1); goto T_iBF; T_iBF: YIYCr: goto Rp18e; I4aAH: jbZMB: goto Neu9W; S04YA: $this->response->success(); goto Ld8CF; UqPWE: $type = "\154\x69\163\x74"; goto WCrbF; eEZKE: OG1Jh: goto I4aAH; ovCBj: if (method_exists($this->accountModel, $type)) { goto DHLwD; } goto So9ff; Rp18e: $type = "\x67\x65\164\x5f" . $type; goto ovCBj; zFURq: $list = $this->accountModel->{$type}($data); goto S04YA; fRmtK: $this->response->set_data("\151\164\x65\x6d\x73", $list, true); goto J2Xy1; P5MMi: $list = $this->accountModel->get_groups(array("\x75\163\x65\162\107\x72\157\165\x70" => true)); goto uZ56E; J2Xy1: hRpe_: goto wGpPC; L1Xy2: $data = $this->request->post(); goto fciKV; wGpPC: if (!($type == "\147\x65\164\x5f\x6c\151\x73\x74" && !empty($data["\x61\x63\143\x47\x72\x6f\x75\x70"]))) { goto OG1Jh; } goto P5MMi; YZpdy: DHLwD: goto zFURq; EfGV2: } public function search($q = '') { goto lnfFZ; IF0I3: A5e3V: goto O1kOL; gka10: $this->response->set_data("\x69\164\x65\155\x73", $list); goto IF0I3; lnfFZ: $list = $this->accountModel->search($q); goto Lne2J; Lne2J: $this->response->success(); goto ee9jE; ee9jE: if (empty($list)) { goto A5e3V; } goto gka10; O1kOL: $this->response->write(); goto hwElq; hwElq: } public function name($id = '') { goto l6kRL; pLt2e: if (empty($list)) { goto R_JLs; } goto JDGFx; iUNmu: R_JLs: goto YJTv3; l6kRL: $list = $this->accountModel->get_name($id); goto L0SBa; L0SBa: $this->response->success(); goto pLt2e; YJTv3: $this->response->write(); goto xKwx7; JDGFx: $this->response->set_data("\x69\x74\145\155\163", $list); goto iUNmu; xKwx7: } public function dropdownlisting() { goto jBnD5; F97jj: $list = $this->accountModel->get_dropdownlist($data); goto jp2fz; YbMol: $this->response->set_data("\151\x74\x65\155\x73", $list); goto GQNKO; jBnD5: $data = $this->request->post(); goto F97jj; jp2fz: $this->response->success(); goto CsW__; CsW__: if (empty($list)) { goto CA2_P; } goto YbMol; GQNKO: CA2_P: goto cJis6; cJis6: $this->response->write(); goto R8n81; R8n81: } function import($overwrite = false, $plId = 0) { goto yLnva; CyLRK: if (empty($result["\155\x69\163\x6d\x61\x74\x63\x68\x5f\x67\x72\157\165\160\x6e\141\155\x65\137\x65\x72\x72\x6f\162"])) { goto Eyuse; } goto XwbWN; rnXVC: nl99a: goto eQ9WI; ds64i: $this->response->set_data($result); goto WFTvV; S1d7N: l54sT: goto YIR_R; S6ukM: $this->response->error("\120\x61\x72\145\x6e\x74\40\x6e\141\155\x65\x20\x6e\157\x74\x20\145\170\151\163\164\x73\x20\146\157\x72\40\x20" . $result["\160\141\162\145\156\164\156\x61\155\145\137\x65\x72\x72\157\162\x73"]); goto U6g3R; CYRFv: if (empty($result["\x70\x61\162\x65\156\164\x61\x63\x63\137\145\x72\162\157\162\x73"])) { goto sjnqr; } goto yUxE_; UbjMT: waZwn: goto dpd8m; bIBfz: $file_data = $this->attachmentModel->upload_file("\x69\155\x70\157\x72\x74"); goto fYi2I; AArOR: if (empty($result["\160\x61\162\145\x6e\164\x6e\x61\x6d\145\137\145\x72\x72\x6f\x72\x73"])) { goto pwKdH; } goto S6ukM; fYi2I: $params = array("\x66\x69\x6c\x65\x5f\144\x61\x74\x61" => !empty($file_data[0]) ? $file_data[0] : $data, "\x6f\166\x65\162\x77\x72\151\x74\x65" => $overwrite); goto TafKk; qW8BO: sjnqr: goto CyLRK; pVMvS: $this->response->error($message); goto S1d7N; KFnOA: JktnA: goto AArOR; zk0Fb: $this->response->error(lang("\111\x4d\120\x4f\122\124\137\105\122\x52\117\x52")); goto UbjMT; yLnva: $this->load->model("\x61\x74\x74\141\x63\x68\155\145\156\x74\115\x6f\x64\x65\x6c"); goto F4bsQ; UrXH_: return false; goto jTxcs; XdCyW: MVcDa: goto yC2ak; eQ9WI: $this->response->write(); goto UrXH_; sL5Kx: if (empty($message)) { goto l54sT; } goto pVMvS; obCIw: if ($result) { goto waZwn; } goto zk0Fb; F4bsQ: $_POST = $data = $this->request->post(); goto bIBfz; TafKk: $result = $this->accountModel->import($params); goto obCIw; yUxE_: $this->response->error("\120\141\162\145\156\x74\40\156\x61\x6d\145\x20\156\157\164\x20\x65\x78\151\163\164\163\x20\x66\157\162\40\x20" . $result["\160\x61\x72\145\x6e\164\x61\x63\143\137\x65\162\162\x6f\x72\x73"]); goto qW8BO; U6g3R: pwKdH: goto CYRFv; hKs3f: Eyuse: goto XkdDW; bSoee: $this->response->error("\x47\162\x6f\x75\x70\x73\x20\x61\x6c\x72\145\141\x64\x79\x20\x65\170\x69\163\x74\x73\x20\x66\157\162\x20\40" . $result["\x67\x72\x6f\x75\160\x6e\x61\155\x65\137\x65\162\162\x6f\x72\163"]); goto XdCyW; mfQ42: return true; goto rnXVC; XwbWN: $this->response->error("\107\162\x6f\x75\160\40\124\x79\160\x65\40\x4d\x69\163\x6d\x61\164\143\x68\x2e\x20\123\x6b\x69\160\160\x65\144\40\40" . $result["\x6d\151\x73\x6d\141\164\x63\x68\x5f\147\162\x6f\165\160\156\x61\x6d\145\x5f\x65\162\x72\157\162"]); goto hKs3f; YIR_R: if (empty($result["\147\x72\x6f\x75\160\x6e\141\155\x65\137\x65\x72\x72\x6f\162\x73"])) { goto MVcDa; } goto bSoee; XkdDW: if (!(!empty($result) && !empty($result["\x69\x64"]))) { goto nl99a; } goto ds64i; WFTvV: $this->response->write(); goto mfQ42; BWVw1: $this->response->error("\101\x63\x63\x6f\x75\156\164\40\x6e\x61\x6d\x65\40\141\154\x72\x65\141\144\171\40\145\x78\x69\163\164\x73\x20\x66\x6f\162\x20\40" . $result["\141\x63\143\157\x75\x6e\164\x6e\x61\155\145\137\145\x72\162\x6f\162\x73"]); goto KFnOA; yC2ak: if (empty($result["\141\143\143\x6f\x75\x6e\x74\156\x61\155\x65\x5f\x65\x72\162\x6f\x72\x73"])) { goto JktnA; } goto BWVw1; dpd8m: $message = $this->accountModel->message; goto sL5Kx; jTxcs: } public function search_list($detail = true) { goto OH4wW; mMTQU: unset($data["\x70\141\147\145"]); goto Jb0p9; Hy7ZX: $this->response->set_data("\x69\x74\x65\x6d\x73", $list, true); goto MdlSV; MdlSV: Xz2cX: goto GByMC; cVfoj: $list = $this->accountModel->get_search_list($data, $detail); goto AEf69; yfk1b: $this->response->success(); goto pg_dV; pg_dV: if (empty($list)) { goto Xz2cX; } goto Hy7ZX; AEf69: SoQ7B: goto yfk1b; GByMC: $this->response->write(); goto z_3UQ; Jb0p9: if (empty($data)) { goto SoQ7B; } goto cVfoj; OH4wW: $data = $this->request->post(); goto mMTQU; z_3UQ: } public function sortgroup() { goto f7nlO; Wjonw: fxufC: goto QF2a1; If9n4: $this->response->success("\x4f\x72\144\x65\x72\40\x73\141\166\145\x64\40\163\165\x63\x63\145\163\x73\146\x75\x6c\x6c\x79"); goto fZ7LE; AqxZx: if (empty($data["\x70\x72\145\166\x69\157\x75\163\x49\x74\x65\x6d"])) { goto dVUHx; } goto yP_7R; fZ7LE: V2WlI: goto VwsX5; mGbcl: $data["\164\x79\x70\x65"] = "\141\143\143\157\165\156\x74\147\162\x6f\165\160"; goto g_SGr; DPIjp: return false; goto Wjonw; Wpfk0: $this->response->write(); goto DPIjp; yYcD6: $this->response->write(); goto iMwjq; heEdo: uBxhF: goto km9_5; r1oJ7: z9hoz: goto cnhgd; TAfhs: if (empty($result)) { goto V2WlI; } goto If9n4; QI2_v: $this->response->error("\111\116\126\101\x4c\x49\104\137\122\x45\x51\125\105\123\x54"); goto yYcD6; G_H88: if (!empty($data)) { goto fxufC; } goto u4YTc; GsDwt: $data["\x6e\145\x78\x74\111\164\x65\155"]["\x70\111\x64"] = $data["\156\x65\170\x74\x49\164\145\155"]["\x70\x61\162\x65\x6e\164\x47\x72\157\x75\x70\x49\144"]; goto AqxZx; f7nlO: valid_permission("\x41\103\103\110\x41", 1); goto bogn_; VwsX5: if (!empty($result)) { goto z9hoz; } goto QI2_v; iMwjq: return false; goto r1oJ7; cnhgd: $this->response->write(); goto dC8KV; yP_7R: $data["\160\162\x65\x76\151\157\165\163\x49\x74\x65\x6d"]["\x70\111\x64"] = $data["\160\x72\145\166\x69\157\x75\163\x49\164\145\155"]["\x70\x61\162\145\156\x74\x47\162\x6f\x75\160\111\144"]; goto AwD7v; g_SGr: if (!(!empty($data["\x63\165\x72\x72\x65\x6e\164\111\x74\x65\x6d"]) && !empty($data["\156\145\x78\164\111\164\145\x6d"]))) { goto uBxhF; } goto hCMdX; l1fDK: $result = $this->sortModel->saveorder($data); goto TAfhs; bogn_: $data = $this->request->post(); goto G_H88; QF2a1: $data["\x63\165\162\162\x65\156\164\111\164\x65\x6d"]["\160\x49\x64"] = $data["\x63\x75\162\162\145\x6e\x74\111\164\145\155"]["\x70\141\x72\145\x6e\x74\x47\162\x6f\165\x70\x49\x64"]; goto GsDwt; dC8KV: return true; goto heEdo; u4YTc: $this->response->error("\x49\116\126\101\x4c\x49\x44\137\x52\105\x51\125\105\123\x54"); goto Wpfk0; hCMdX: $this->load->model("\x73\157\162\164\x4d\x6f\x64\x65\154"); goto l1fDK; AwD7v: dVUHx: goto mGbcl; km9_5: } public function delete_account_group() { goto FcsRv; zG7xH: if ($result === true) { goto aUcXg; } goto omVpz; toBES: $data = $this->request->post(); goto eE5UI; o5nsX: goto NQ6kK; goto h4pGY; LAMhO: $this->response->write(); goto SILNV; h4pGY: aUcXg: goto XAvQy; rx_8I: $this->response->set_data("\144\x61\x74\141", $message); goto o5nsX; omVpz: $message = $this->accountModel->message; goto MvYpj; eE5UI: $result = $this->accountModel->delete_account_group($data); goto zG7xH; MvYpj: $this->response->error($message); goto rx_8I; J8gPL: NQ6kK: goto LAMhO; XAvQy: $this->response->set_data("\144\x61\164\141", "\144\145\x6c\x65\164\145\144"); goto ludfX; FcsRv: valid_permission("\x41\103\x43\110\101", 4); goto toBES; ludfX: $this->response->success("\x44\x45\114\105\124\105\137\x53\x55\103\x43\105\123\123"); goto J8gPL; SILNV: } public function save_account_group() { goto Ai18Q; wymuV: $message = $this->accountModel->message; goto s1ZRV; twrpt: $this->response->set_data("\144\x61\x74\x61", $result); goto vJzAT; ibg2_: $this->response->success("\x53\x55\x43\x43\105\123\x53\x5f\123\x41\126\x45"); goto twrpt; dCecv: $result = $this->accountModel->save_account_group($data); goto PJi6L; s1ZRV: $this->response->error($message); goto gg5ul; Mq2Eg: return true; goto HntUN; PJi6L: if (empty($result)) { goto hYhYN; } goto ibg2_; omFW7: valid_permission("\101\103\103\110\x41", !empty($data["\151\x64"]) ? 3 : 2); goto dCecv; vJzAT: $this->response->write(); goto Mq2Eg; gg5ul: $this->response->write(); goto t6q1j; Ai18Q: $data = $this->request->post(); goto omFW7; t6q1j: return; goto PUXa4; HntUN: hYhYN: goto wymuV; PUXa4: } public function save($type = '') { goto e0cx5; L6Tmb: $this->response->error($message); goto vD1J6; hN1dj: sQUvT: goto dA39B; CNmab: $type = "\163\x61\x76\145\137" . $type; goto zAc7u; eOf9S: $this->response->set_data($result); goto ryX1G; vRVwU: if (!$result) { goto sQUvT; } goto YRque; dA39B: $message = $this->accountModel->message; goto AJX6X; AJX6X: BwprT: goto L6Tmb; PaIMs: valid_permission($type == "\x73\x61\x76\x65\x5f\142\141\x6e\153\x73" ? "\x42\x41\x4e" : "\101\x43\103\110\x41", !empty($postData["\x69\x64"]) ? 3 : 2); goto m0z2r; JVP35: $type = "\151\164\145\x6d"; goto ILWFc; xWZEL: if (!method_exists($this->accountModel, $type)) { goto BwprT; } goto aY5Wh; SfPbT: $this->response->set_data("\x69\144", $result); goto O2YOe; ILWFc: iPR36: goto CNmab; zAc7u: $message = "\x4d\x65\x74\150\157\x64\x20\x6e\157\x74\x20\x65\x78\x69\x73\164"; goto xWZEL; GLy0n: ZlI1V: goto SfPbT; ryX1G: goto L0mo0; goto GLy0n; e0cx5: if (!empty($type)) { goto iPR36; } goto JVP35; vD1J6: $this->response->write(); goto aGxuO; aGxuO: return; goto W20Vy; wo2Lu: if (!is_array($result)) { goto ZlI1V; } goto eOf9S; P6TkB: $this->response->write(); goto FhL5i; YRque: $this->response->success("\x53\125\103\x43\x45\123\123\137\x53\101\x56\105"); goto wo2Lu; aY5Wh: $postData = $this->request->post(); goto PaIMs; m0z2r: $result = $this->accountModel->{$type}($postData); goto vRVwU; FhL5i: return true; goto hN1dj; O2YOe: L0mo0: goto P6TkB; W20Vy: } public function delete($id = '', $type = '') { goto xX4Wx; dqb6W: ESpva: goto d613R; f0v_Y: if (!$ret) { goto RvKvH; } goto u2FOt; kzTMu: return; goto dqb6W; jDPpx: $this->response->success("\104\105\x4c\x45\124\x45\137\x53\x55\103\x43\x45\x53\123"); goto fZLOM; PtJ6E: valid_permission("\101\103\103\110\101", 4); goto YaZvF; WbYQQ: goto C_ErK; goto HKpTU; pbR2E: $this->response->error("\111\144\40\115\151\x73\x73\x69\x6e\x67\56"); goto EAquK; HKpTU: ASuuS: goto jDPpx; u2FOt: $this->response->set_data("\x64\x61\164\x61", $ret); goto Ky3dh; d613R: $ret = $this->accountModel->delete($id, $type, $data); goto iJ6DL; xX4Wx: $data = $this->input->post(); goto PtJ6E; YaZvF: if (!empty($id)) { goto ESpva; } goto pbR2E; EAquK: $this->response->write(); goto kzTMu; Ky3dh: RvKvH: goto WbYQQ; tfh5A: $this->response->write(); goto CPLhq; Vm5u6: $this->response->error($this->accountModel->message); goto f0v_Y; iJ6DL: if ($ret === true) { goto ASuuS; } goto Vm5u6; fZLOM: C_ErK: goto tfh5A; CPLhq: } public function get_banks($page = 1) { goto jpQQp; faKLM: $data["\160\141\147\x65"] = !empty($data["\160\x61\147\145"]) ? $data["\x70\x61\147\x65"] : $page; goto fCFFP; qggAM: valid_permission("\102\x41\x4e\x4b\x5f\x54\122\101\116\123", 1); goto pIMQW; fkcIY: if (!empty($data["\144\x72\x6f\160\x64\157\x77\x6e"])) { goto oI2M2; } goto qggAM; k2PAz: $this->response->set_data("\x69\164\x65\x6d\163", $result, true); goto bYXgg; bYXgg: $this->response->write(); goto bVoBB; pIMQW: oI2M2: goto faKLM; jpQQp: $data = $this->request->post(); goto fkcIY; fCFFP: $result = $this->accountModel->get_banks($data); goto k2PAz; bVoBB: return true; goto t1eek; t1eek: } public function bankdetails($accId = 0) { goto U039i; U039i: valid_permission("\102\101\x4e", empty($accId) ? 2 : 3); goto u70lq; nkAUK: $this->response->write(); goto YxCGY; YxCGY: return true; goto fD3vp; u70lq: $result = $this->accountModel->bankdetails($accId); goto tMByl; tMByl: $this->response->set_data($result); goto nkAUK; fD3vp: } function export_file($params, $export_type = "\x63\163\166") { goto JSQ0D; J5A44: ini_set("\x6d\x61\x78\137\x65\x78\x65\x63\x75\164\x69\157\156\137\x74\x69\x6d\x65", -1); goto vaD2Q; a5Tln: if (is_dir($file_path)) { goto fJTnS; } goto iDeuw; kdR2H: fJTnS: goto a9vIw; H824B: $content = ''; goto ezDr5; Nmb5p: return; goto t9eiE; Rwub_: return $file_path; goto fegzC; MuFpJ: $this->load->helper("\x64\x6f\167\x6e\x6c\x6f\141\144"); goto AMgo6; iDeuw: mkdir($file_path, 0755, TRUE); goto kdR2H; rTL0m: yZ3OS: goto Rwub_; J5nmx: l200V: goto rTL0m; JVUVa: $file_name = $params["\x66\151\x6c\x65\x5f\x6e\x61\x6d\145"]; goto UNfrV; ezDr5: $items = !empty($params["\151\164\x65\155\x73"]) ? $params["\x69\x74\x65\155\163"] : array(); goto MuFpJ; vaD2Q: $params["\164\x79\160\x65"] = !empty($params["\164\171\x70\x65"]) ? $params["\x74\171\x70\x65"] : "\144\145\x66\141\x75\154\164"; goto H824B; a9vIw: switch ($export_type) { case "\141\154\x6c\x5f\x70\x64\x66": case "\160\144\146": goto LXY6Z; gugw5: $mpdf->SetFooter($headerFooterConfiguration); goto fVfDC; vhlbp: if (empty($params["\164\157\x5f\144\x61\164\145"])) { goto T0nl7; } goto XlP1H; BlATJ: $mpdf->autoVietnamese = true; goto eT02o; orOxT: $mpdf->autoScriptToLang = true; goto A22Nw; Y2mLy: $oddEvenConfiguration = ["\114" => ["\x63\157\x6e\x74\145\x6e\x74" => ''], "\103" => ["\x63\x6f\x6e\x74\145\x6e\x74" => ''], "\x52" => ["\x63\x6f\x6e\x74\x65\x6e\164" => $headerFooterContent], "\x6c\x69\156\145" => 1]; goto VBxtV; LubSw: $file_path .= DS . $file_name . "\56\x70\x64\146"; goto kmWmP; eT02o: $mpdf->autoArabic = true; goto hCtsv; kmWmP: $content = $this->parser->parse("\x65\170\160\157\x72\x74\x2f\x72\145\160\x6f\162\x74\137\x74\162\x61\x6e\163\x61\x63\x74\151\157\156\163\56\160\150\160", $params, true); goto Y_moA; EQAlT: $headerFooterContent = "\x3c\x64\151\166\40\141\x6c\x69\x67\x6e\x3d\x22\162\151\x67\150\164\x22\x3e\173\120\101\107\105\x4e\x4f\x7d\x20\x2f\40\x7b\156\142\175\x3c\x2f\144\x69\x76\76"; goto Y2mLy; W5gGm: DxWMq: goto iPoHo; cPpED: $items = array_chunk($params["\151\x74\x65\x6d\x73"], 150); goto R9_6p; BYtdd: $mpdf->AddPage('', '', '', '', ''); goto EQAlT; DLPaM: if (empty($params["\146\162\157\x6d\x5f\x64\141\164\x65"])) { goto X4yge; } goto uM59o; EYOEA: $header = "\x3c\x64\151\x76\x20\x73\164\171\154\145\75\42\146\x6f\156\164\55\x77\145\x69\x67\x68\164\72\x6e\157\x72\155\x61\x6c\x3b\x66\157\x6e\164\55\x73\164\x79\154\145\x3a\x61\x72\x69\x61\154\73\x74\x65\170\x74\55\x61\154\x69\147\156\72\154\145\146\164\x22\76"; goto kQ08U; d1lGu: $mpdf->WriteHTML(html_entity_decode($content)); goto egcPX; bmNcE: if (empty($params["\163\x69\x64\145\x48\x65\x61\144\145\162"])) { goto d9e4y; } goto fj69E; QusdZ: $header .= "\40\x2d\40" . $to_date; goto Fa25b; NjmAq: $mpdf->SetDisplayMode("\146\x75\154\154\160\x61\147\145"); goto B9j5s; XlP1H: $to_date = isset($params["\x74\x6f\137\x64\x61\x74\145"]) ? date("\x64\57\x6d\57\x59", strtotime($params["\x74\x6f\x5f\144\141\x74\145"])) : ''; goto QusdZ; wtYBW: $header .= "\40\x3c\x2f\144\x69\x76\76"; goto bqH43; VvgJt: foreach ($_items as $key => $rows) { goto cWtts; uxmXt: $post["\x68\151\144\x65\137\x66\x6f\157\164\145\162"] = false; goto dmnYf; YY4en: bp1dd: goto F6yMp; aStKJ: $content = $this->parser->parse("\x65\x78\160\x6f\x72\x74\57\x72\145\x70\157\x72\x74\x5f\x74\x72\141\156\x73\141\x63\x74\x69\x6f\156\163\x2e\160\150\160", $post, true); goto I038Y; I038Y: $mpdf->WriteHTML(html_entity_decode($content)); goto xCz8J; sjbAT: $params["\x5f\x69\164\x65\x6d\163"] = $rows; goto dXa3e; dXa3e: $post = $params; goto Htk0P; mMTLs: $this->load->clear_vars(); goto aStKJ; xCz8J: JQCJs: goto aRZWv; Htk0P: if (!$key) { goto bp1dd; } goto ZwRJg; ZwRJg: $post["\150\x69\x64\145\137\150\x65\x61\144\x65\x72"] = false; goto YY4en; dmnYf: pDBp0: goto mMTLs; cWtts: ini_set("\x6d\x61\170\x5f\x65\170\145\143\x75\164\x69\x6f\x6e\x5f\x74\151\x6d\x65", -1); goto sjbAT; F6yMp: if (!($n != $key)) { goto pDBp0; } goto uxmXt; aRZWv: } goto SsOUc; X5ZQY: Bvs15: goto bmNcE; R9_6p: $n = count($items) - 1; goto vuJtq; vuJtq: foreach ($items as $key => $rows) { goto Hvynf; Zs3Qu: $mpdf->WriteHTML(html_entity_decode($content)); goto UKARU; iLLot: if (!$key) { goto mRNpH; } goto DaEFa; DaEFa: $post["\150\151\144\x65\x5f\x68\145\141\x64\145\162"] = false; goto kTHFm; Hvynf: ini_set("\155\141\170\137\x65\x78\145\x63\x75\164\x69\x6f\x6e\x5f\x74\151\155\145", -1); goto QeUg9; istgN: $this->load->clear_vars(); goto FF8pL; m4z7L: $post["\x68\x69\x64\145\137\146\157\157\164\x65\162"] = false; goto vMs03; FF8pL: $content = $this->parser->parse("\145\170\x70\x6f\162\164\57\x72\145\160\157\162\164\137\x74\x72\141\x6e\163\141\143\164\151\x6f\x6e\x73\56\160\x68\160", $post, true); goto Zs3Qu; vMs03: zdADZ: goto istgN; UKARU: vZ03L: goto A1Xj9; maPYq: $post = $params; goto iLLot; QeUg9: $params["\151\164\x65\155\163"] = $rows; goto maPYq; kTHFm: mRNpH: goto rLVM_; rLVM_: if (!($n != $key)) { goto zdADZ; } goto m4z7L; A1Xj9: } goto E2MZC; E2MZC: Cg3e2: goto YApvD; kLuTc: goto yZ3OS; goto d0S6c; B9j5s: $mpdf->packTableData = true; goto BYtdd; fj69E: $header .= "\40" . $params["\163\x69\144\x65\110\x65\141\144\x65\162"] . "\40"; goto wcwhN; uM59o: $from_date = isset($params["\x66\x72\157\155\137\x64\x61\164\145"]) ? date("\x64\x2f\x6d\57\131", strtotime($params["\x66\162\x6f\x6d\x5f\144\141\164\x65"])) : ''; goto OtamX; Rcilz: WlzN1: goto cPpED; fVfDC: if (!empty($params["\x74\x79\160\x65"]) && ($params["\164\171\x70\x65"] == "\x6c\145\144\104\x65\164\141\151\x6c" || $params["\164\x79\x70\x65"] == "\x62\141\x6c\141\x6e\x63\x65\x73\x68\145\x65\x74")) { goto WlzN1; } goto aqZoc; A22Nw: $mpdf->baseScript = 1; goto BlATJ; YApvD: if (empty($_items)) { goto DxWMq; } goto VvgJt; iPoHo: Wkpp0: goto LnLpt; LXY6Z: $this->load->library("\x70\141\162\x73\x65\x72"); goto LubSw; z_5wy: $mpdf->defaultfooterline = 0; goto EYOEA; TZ1dd: $mpdf->defaultheaderline = 0; goto orOxT; hCtsv: $mpdf->autoLangToFont = true; goto z_5wy; bqH43: $mpdf->SetHeader($header); goto gugw5; qLUNg: ini_set("\155\x65\x6d\157\x72\x79\x5f\154\151\155\151\164", "\55\x31"); goto gVYk5; gVYk5: $mpdf = new \Mpdf\Mpdf(["\157\x72\151\x65\156\x74\x61\x74\151\157\156" => !empty($params["\157\162\151\145\x6e\164\141\164\x69\157\x6e"]) ? $params["\157\x72\x69\x65\156\164\x61\164\x69\x6f\x6e"] : "\120", "\x66\x6f\162\x6d\x61\164" => "\101\x34", "\155\x6f\144\x65" => "\145\x6e", "\155\157\x64\x65" => "\125\124\106\x2d\x38", "\x64\145\146\141\x75\x6c\x74\x5f\x66\157\x6e\x74\x5f\163\151\x7a\145" => 11, array(5, 5, 8, 8)]); goto NjmAq; Fa25b: T0nl7: goto wtYBW; VBxtV: $headerFooterConfiguration = ["\x6f\x64\x64" => $oddEvenConfiguration, "\145\166\x65\156" => $oddEvenConfiguration]; goto TZ1dd; zj8PV: X4yge: goto vhlbp; Y_moA: require_once APPPATH . "\x74\150\151\162\x64\x5f\x70\x61\162\x74\171\57\x6d\160\x64\x66\57\x61\x75\x74\157\x6c\x6f\141\x64\56\x70\x68\x70"; goto qLUNg; OtamX: $header .= $from_date; goto zj8PV; aqZoc: $content = $this->parser->parse("\x65\170\x70\157\x72\x74\x2f\x72\145\x70\x6f\162\x74\x5f\164\x72\141\x6e\163\141\143\164\151\157\156\x73\x2e\160\x68\x70", $params, true); goto d1lGu; kQ08U: if (empty($params["\163\x75\155\155\141\162\x79\x4e\141\x6d\x65"])) { goto Bvs15; } goto lhSUh; lhSUh: $header .= "\74\x73\x70\141\156\40\163\164\x79\154\145\x3d\42\x66\x6f\x6e\164\55\x77\145\x69\x67\x68\164\72\x62\x6f\x6c\x64\x22\76" . strtoupper($params["\x73\x75\x6d\155\x61\x72\171\116\141\x6d\145"]) . "\74\x2f\x73\x70\141\156\x3e"; goto X5ZQY; SsOUc: ugBJu: goto W5gGm; egcPX: goto Wkpp0; goto Rcilz; wcwhN: d9e4y: goto DLPaM; LnLpt: $mpdf->Output(FCPATH . $file_path, "\x46"); goto kLuTc; d0S6c: default: goto og_jA; gcQVP: foreach ($head as $hd => $h) { goto ZdBv3; jqlJh: $head[$hd] = $h; goto JtZ38; g3cj1: $h = str_replace("\46\x6e\142\x73\x70\73", '', $h); goto jqlJh; ZdBv3: $h = strip_tags($h); goto g3cj1; JtZ38: THWzD: goto vuaq6; vuaq6: } goto CxZyu; XH_d3: $head = array_column($heading, "\x6e\x61\x6d\145"); goto gcQVP; CxZyu: W3ILY: goto rJ2Kr; og_jA: $file_path .= DS . $file_name . "\56" . $export_type; goto t61kw; VOq3K: $heading = $params["\150\145\x61\144\151\x6e\147"]; goto XH_d3; t61kw: $separator = $export_type == "\x63\163\x76" ? "\54" : "\11"; goto VOq3K; rJ2Kr: } goto J5nmx; JSQ0D: $pentrans = array(); goto jC09L; IB1zu: $full = array(); goto J5A44; AMgo6: if (!empty($params["\x66\151\154\145\137\x6e\x61\x6d\145"])) { goto GcKop; } goto Nmb5p; t9eiE: GcKop: goto JVUVa; jC09L: $row["\156\x61\155\145"] = ''; goto IB1zu; UNfrV: $file_path = "\164\x65\155\x70" . DS . "\x65\x78\160\157\162\164" . DS . get_company("\x69\x64"); goto a5Tln; fegzC: } function export() { goto cYVcB; FZfyt: $this->response->write(); goto xcfXT; TnBlB: rewind($fp); goto FG4Zr; bvY5v: NRKCo: goto Ft_Qe; wkhPw: kbNtA: goto GKTww; qt0iB: $list = $this->accountModel->get_list($data); goto uXBH6; GKTww: $head = array(); goto J_NCj; XmBxa: if (is_dir($file_path)) { goto hl_cP; } goto gVWi8; Sn10b: $file_path .= DS . "\x61\143\x63\x6f\x75\156\164\x73\137" . time() . $ext; goto pFiBd; QC68Z: Q06td: goto z2BxS; HrOQk: $ext = $data["\164\x79\x70\145"] == "\143\x73\x76" ? "\x2e\143\x73\166" : "\56\170\x6c\x73"; goto Sn10b; J_NCj: if (empty($list)) { goto whA5M; } goto TBK8s; uVFfy: $list = $this->accountModel->get_accounts_export(); goto DPcuB; CmSHc: $fp = fopen($file_path, "\x77\x2b"); goto wkhPw; gisox: $data["\x66\151\154\x65\x5f\156\x61\x6d\x65"] = "\x61\143\143\157\x75\x6e\x74\x73\137\154\151\163\164"; goto crJGd; DPcuB: ini_set("\155\x65\x6d\x6f\162\x79\x5f\154\151\x6d\151\x74", "\55\61"); goto U9AD0; i1asR: return true; goto bvY5v; Ft_Qe: if (!(!empty($data["\x74\171\160\145"]) && $data["\164\x79\160\x65"] == "\160\144\x66")) { goto N7XsH; } goto YKJTM; VEw4l: $this->response->set_data("\165\x72\154", $file_name); goto FZfyt; xcfXT: return true; goto KCIte; FG4Zr: $csv_contents = stream_get_contents($fp); goto irLqt; irLqt: fclose($fp); goto S7lH0; z2BxS: whA5M: goto BhfZj; S7lH0: nBRum: goto Ipo7t; gVWi8: mkdir($file_path, 0755, TRUE); goto gIpBr; hI9pR: $file_name = $this->export_file($data, $data["\x74\x79\x70\145"]); goto VEw4l; B4eTG: $data["\151\x74\x65\155\163"] = $list; goto gisox; cYVcB: $data = $this->request->post(); goto qiDG2; Ipo7t: $content = ''; goto jSVc9; U9AD0: $head = $content = ''; goto y0Kth; jSVc9: $this->response->set_data("\x75\162\154", $file_path); goto Ra63y; qiDG2: if (!(!empty($data["\164\x79\160\x65"]) && $data["\164\171\160\145"] == "\143\163\x76")) { goto NRKCo; } goto uVFfy; uXBH6: foreach ($list as $key => $val) { goto ab8Po; APy8O: $val["\156\x61\x6d\x65"] = str_repeat("\x5f\137\137\x5f\137", $val["\144\x65\x70\x74\150"] - 1) . $val["\x6e\x61\x6d\x65"]; goto WeQIc; WeQIc: WxKtu: goto oyRRj; ab8Po: if (!($val["\x64\x65\x70\164\x68"] > 0)) { goto WxKtu; } goto APy8O; oyRRj: if (!(!empty($val["\x64\145\x70\164\x68"]) && $val["\x64\x65\160\164\x68"] == 1 && !empty($val["\x61\x63\143\x49\144"]))) { goto GnDro; } goto dJXVF; rPZs1: $list[$key] = $val; goto X03Td; X03Td: jZPr_: goto LK8fB; dJXVF: $val["\x6e\141\155\x65"] = str_repeat("\x5f\137\137\137\x5f", $val["\x64\145\x70\x74\x68"]) . $val["\156\141\x6d\145"]; goto VRdlD; VRdlD: GnDro: goto rPZs1; LK8fB: } goto Dhefv; Ra63y: $this->response->write(); goto i1asR; ZdwkO: $data["\150\x65\x61\144\x69\x6e\x67"] = array("\x6e\141\155\145" => array("\156\141\x6d\145" => "\116\x61\155\145", "\167\x69\144" => "\65\x30\45"), "\141\143\x63\103\165\163\164\x6f\155\x43\157\x64\145" => array("\156\141\x6d\x65" => "\x43\157\144\145", "\167\x69\144" => "\63\60\45")); goto hI9pR; y0Kth: $file_path = "\x74\x65\155\160" . DS . "\x65\170\160\157\162\x74" . DS . get_company("\x69\x64"); goto XmBxa; Dhefv: fAqWf: goto B4eTG; KCIte: N7XsH: goto AkJK0; BhfZj: if (!(!empty($data["\x74\171\x70\x65"]) && $data["\164\171\x70\145"] == "\x63\x73\166")) { goto nBRum; } goto TnBlB; crJGd: $data["\164\151\164\154\x65"] = "\x3c\x68\x33\76\x43\150\141\162\x74\40\x6f\x66\40\101\x63\x63\157\165\x6e\164\x73\74\57\x68\x33\76"; goto ZdwkO; pFiBd: if (!(!empty($data["\164\171\160\x65"]) && $data["\x74\171\160\x65"] == "\143\x73\x76")) { goto kbNtA; } goto CmSHc; gIpBr: hl_cP: goto HrOQk; YKJTM: $data["\151\163\x53\150\157\x77\x41\154\154"] = true; goto qt0iB; TBK8s: foreach ($list as $key => $res) { goto zs0Sx; oQce0: fputcsv($fp, array("\111\x64", "\101\x63\x63\157\x75\x6e\x74\x20\116\x61\155\145", "\101\x63\x63\x6f\x75\x6e\x74\40\103\x6f\144\x65", "\101\x63\143\157\x75\x6e\164\x20\124\x79\x70\145", "\x50\141\162\x65\156\x74\x20\101\143\x63\157\165\156\164", "\104\x65\x73\143\x72\151\x70\164\151\157\x6e")); goto AQIF9; AQIF9: oi51Y: goto bQ9N0; YMScj: wJ9_b: goto Rbw2m; w1ZnL: if ($key) { goto oi51Y; } goto oQce0; bQ9N0: fputcsv($fp, $res); goto YMScj; zs0Sx: $res["\x6e\141\x6d\x65"] = !empty($res["\156\141\x6d\145"]) ? ltrim($res["\x6e\x61\x6d\145"], "\x2d\x20") : ''; goto KffMh; KffMh: $res["\x50\141\162\x65\x6e\164\x20\x41\x63\x63\157\x75\156\x74"] = ''; goto w1ZnL; Rbw2m: } goto QC68Z; AkJK0: } public function get($id = 0) { goto lYWVb; OQwsh: return true; goto T0YP_; k9Y9c: $this->response->write(); goto OQwsh; fLdiD: if (!$id) { goto cUKJO; } goto iwnnM; p0bu7: $this->response->set_data("\x69\164\x65\155", $acc); goto G99rq; lYWVb: valid_permission("\101\x43\x43\x48\101", 1); goto fLdiD; G99rq: cUKJO: goto k9Y9c; iwnnM: $acc = $this->accountModel->get_account($id); goto p0bu7; T0YP_: } public function parentHasTrans() { goto vlVL2; ub7QT: $result = $this->accountModel->findParentHasTrans($data); goto fRNx5; vlVL2: $data = $this->request->post(); goto ub7QT; CkcNa: return true; goto oKIrM; RJd1h: $this->response->write(); goto CkcNa; fRNx5: $this->response->set_data($result); goto RJd1h; oKIrM: } public function sortAccount() { goto WmOPT; JY1i7: goto L01Ab; goto YI89l; F2llK: $this->response->set_data($result); goto rvyz1; ZGKIm: $this->response->set_data("\123\x6f\x72\x74\x65\144"); goto BtR75; WmOPT: $data = $this->request->post(); goto ahn12; O_ZH7: $this->response->set_data("\144\x61\x74\141", $message); goto JY1i7; rvyz1: $this->response->write(); goto PE4yT; ahn12: $result = $this->accountModel->sortAccount($data); goto iKM4i; YI89l: IeI1T: goto ZGKIm; BFLAI: $message = $this->accountModel->message; goto fpFBA; iKM4i: if ($result === true) { goto IeI1T; } goto BFLAI; fpFBA: $this->response->error($message); goto O_ZH7; NcUWM: L01Ab: goto F2llK; PE4yT: return true; goto tuAMi; BtR75: $this->response->success("\123\x6f\x72\164\x65\x64"); goto NcUWM; tuAMi: } }

Function Calls

None

Variables

None

Stats

MD5 18eb582f9f8f4aa7e26a89652aeb1d87
Eval Count 0
Decode Time 55 ms