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 /* * Copyright (c) Ewoosoft Co., Ltd. * * All rights reserved. */ if (!de..

Decoded Output download

<?php 
/* 
 * Copyright (c) Ewoosoft Co., Ltd. 
 * 
 * All rights reserved. 
 */ 
 if (!defined("BASEPATH")) { exit("No direct script access allowed"); } class E2acc_model extends CI_Model { function __construct() { parent::__construct(); load_database($this, "E2DB"); } public function getUserAccountByName($name) { $query = $this->db->get_where("e2_acc", array("acc_username" => $name)); $result = $query->result(); if (count($result) > 0) { return array_values($result)[0]; } else { return false; } } public function getAccountList() { $this->db->from("e2_acc"); $this->db->order_by("acc_account_id", "asc"); $query = $this->db->get(); $arr = array(); foreach ($query->result() as $row) { $item = array(); $item["strAccountName"] = $row->acc_username; $item["strAccountPasswd"] = $row->acc_password; $item["strGrade"] = $row->acc_level; $item["bDataDel"] = $row->acc_data_del === "t"; $item["bDataTransfer"] = $row->acc_data_transfer === "t"; $item["bDataExport"] = $row->acc_data_export === "t"; array_push($arr, $item); } return $arr; } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/*
 * Copyright (c) Ewoosoft Co., Ltd.
 *
 * All rights reserved.
 */
 if (!defined("\102\101\x53\105\120\101\x54\110")) { exit("\x4e\157\x20\144\x69\x72\x65\x63\164\x20\163\x63\x72\151\x70\164\x20\141\x63\x63\145\x73\163\x20\x61\154\x6c\x6f\x77\x65\144"); } class E2acc_model extends CI_Model { function __construct() { parent::__construct(); load_database($this, "\x45\62\x44\102"); } public function getUserAccountByName($name) { $query = $this->db->get_where("\145\x32\137\x61\143\143", array("\141\x63\x63\137\x75\163\145\162\x6e\141\x6d\x65" => $name)); $result = $query->result(); if (count($result) > 0) { return array_values($result)[0]; } else { return false; } } public function getAccountList() { $this->db->from("\x65\x32\x5f\x61\x63\x63"); $this->db->order_by("\141\143\143\137\x61\x63\x63\x6f\x75\x6e\164\137\x69\144", "\141\x73\x63"); $query = $this->db->get(); $arr = array(); foreach ($query->result() as $row) { $item = array(); $item["\163\164\162\101\x63\x63\157\x75\156\x74\116\x61\155\145"] = $row->acc_username; $item["\x73\164\162\x41\x63\143\x6f\x75\156\x74\x50\141\x73\x73\x77\x64"] = $row->acc_password; $item["\163\164\162\x47\x72\x61\144\x65"] = $row->acc_level; $item["\142\x44\x61\164\x61\x44\x65\x6c"] = $row->acc_data_del === "\x74"; $item["\x62\x44\x61\x74\x61\x54\x72\141\156\163\x66\x65\162"] = $row->acc_data_transfer === "\164"; $item["\142\104\141\x74\x61\x45\x78\x70\157\162\x74"] = $row->acc_data_export === "\x74"; array_push($arr, $item); } return $arr; } }

Function Calls

None

Variables

None

Stats

MD5 2ce3b4b1548165507b045284979fb1c0
Eval Count 0
Decode Time 48 ms