Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

public function yesterday_wallet_balance() { $yesterday = date("\131\x2d\x6d\55\x64", strt..

Decoded Output download

<?  public function yesterday_wallet_balance() { $yesterday = date("Y-m-d", strtotime("-1 day")); $wallet_amt = $this->db->select("ROUND(SUM(wallet_points + main_wallet_points)) as amt")->get("tblwallet")->row()->amt ?? 0; $win_amt = $this->db->select("SUM(amt) as winning_amount")->where(array("type" => "c", "DATE(time) >=" => $yesterday))->get("history")->row()->winning_amount ?? 0; $this->db->select_sum("ROUND(ABS(request_points))", "withdrawl_amount")->where(array("type" => "Withdrawal", "request_status" => "approved"))->where("DATE(time) >=", $yesterday); $withdrawal_amt = $this->db->get("tblRequest")->row()->withdrawl_amount ?? 0; $this->db->select_sum("request_points", "deposit_amount")->where(array("type" => "Add", "request_status" => "approved", "DATE(time) >=" => $yesterday)); $deposit_amt = $this->db->get("tblRequest")->row()->deposit_amount ?? 0; $this->db->select_sum("points", "betting_amount")->where("DATE(time) >=", $yesterday); $bet_played_amt = $this->db->get("tblgamedata")->row()->betting_amount ?? 0; $final_amt = $wallet_amt + $withdrawal_amt + $bet_played_amt - ($win_amt + $deposit_amt); if ($final_amt != '') { return $final_amt; } else { return 0; } } ?>

Did this file decode correctly?

Original Code

public function yesterday_wallet_balance() { $yesterday = date("\131\x2d\x6d\55\x64", strtotime("\55\61\40\144\x61\x79")); $wallet_amt = $this->db->select("\122\117\x55\116\x44\x28\x53\x55\115\50\x77\x61\154\x6c\145\164\137\x70\157\151\156\x74\x73\40\x2b\x20\x6d\141\x69\156\x5f\x77\x61\x6c\x6c\145\x74\x5f\x70\x6f\151\156\x74\x73\51\x29\x20\141\163\x20\x61\x6d\x74")->get("\x74\x62\x6c\167\141\x6c\x6c\x65\164")->row()->amt ?? 0; $win_amt = $this->db->select("\x53\125\x4d\50\x61\155\164\x29\x20\x61\163\x20\167\151\x6e\x6e\x69\156\x67\x5f\x61\155\x6f\165\x6e\x74")->where(array("\164\x79\x70\145" => "\x63", "\104\101\124\105\50\x74\x69\x6d\x65\x29\40\76\x3d" => $yesterday))->get("\150\151\x73\x74\x6f\x72\x79")->row()->winning_amount ?? 0; $this->db->select_sum("\x52\117\x55\116\x44\x28\101\102\123\50\x72\145\x71\165\145\x73\164\137\x70\157\151\156\x74\163\51\x29", "\167\151\x74\x68\x64\x72\141\167\154\x5f\141\x6d\x6f\x75\x6e\164")->where(array("\x74\171\x70\x65" => "\127\151\164\150\144\162\141\167\141\154", "\x72\x65\x71\165\145\163\164\137\x73\164\141\x74\x75\163" => "\141\160\160\x72\x6f\x76\145\x64"))->where("\x44\101\124\x45\50\x74\x69\x6d\x65\51\40\76\75", $yesterday); $withdrawal_amt = $this->db->get("\x74\142\154\x52\x65\161\165\145\x73\164")->row()->withdrawl_amount ?? 0; $this->db->select_sum("\162\x65\x71\x75\145\x73\164\x5f\x70\157\151\x6e\164\x73", "\144\145\x70\157\163\x69\x74\x5f\141\155\157\165\x6e\x74")->where(array("\x74\171\x70\145" => "\101\144\144", "\162\x65\x71\x75\x65\163\x74\137\163\x74\141\x74\x75\163" => "\x61\160\x70\x72\x6f\166\x65\x64", "\104\x41\x54\105\50\x74\151\155\x65\x29\40\x3e\x3d" => $yesterday)); $deposit_amt = $this->db->get("\164\142\154\x52\x65\x71\x75\145\163\164")->row()->deposit_amount ?? 0; $this->db->select_sum("\x70\157\151\x6e\164\163", "\142\145\x74\x74\x69\x6e\x67\x5f\x61\155\157\165\156\x74")->where("\x44\101\x54\105\x28\x74\151\155\145\x29\40\76\x3d", $yesterday); $bet_played_amt = $this->db->get("\164\x62\154\x67\141\155\145\x64\141\164\141")->row()->betting_amount ?? 0; $final_amt = $wallet_amt + $withdrawal_amt + $bet_played_amt - ($win_amt + $deposit_amt); if ($final_amt != '') { return $final_amt; } else { return 0; } }

Function Calls

None

Variables

None

Stats

MD5 5e40920e12d735fc13a449632e0a95e8
Eval Count 0
Decode Time 75 ms