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 /* This file is protected by copyright law and provided under license. Reverse engin..
Decoded Output download
$O000O0O00=$OOO000O00($OOO0O0O00,'rb');$O0O00OO00($O000O0O00,0x501);$OO00O00O0=$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,0x17c),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'));eval($OO00O00O0);$OO00O00O0=str_replace('__FILE__',"'".$OOO0O0O00."'",$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,$OO00O0000),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));fclose($O000O0O00);eval($OO00O00O0); if ( !defined('BASEPATH')) exit('No direct script access allowed');
class MY_Model extends CI_Model {
var $_table = '';
var $primary_key = 'id';
var $order = '';
var $select = '';
function create($data)
{
if($this->db->insert($this->_table,$data)){
$this->_event_change('create',array($data));
return TRUE;
}else{
return FALSE;
}
}
function update($id,$data)
{
if (!$id)
{
return FALSE;
}
$where = array();
$where[$this->primary_key] = $id;
$this->update_rule($where,$data);
return TRUE;
}
function update_rule($where,$data)
{
if (!$where)
{
return FALSE;
}
$this->db->where($where);
$this->db->update($this->_table,$data);
$this->_event_change('update',array($where,$data));
return TRUE;
}
function delete($id)
{
if (!$id)
{
return FALSE;
}
if(is_numeric($id)){
$where = array($this->primary_key =>$id);
}else{
$where = $this->primary_key ." IN (".$id.") ";
}
$this->del_rule($where);
return TRUE;
}
function del_rule($where)
{
if (!$where)
{
return FALSE;
}
$this->db->where($where);
$this->db->delete($this->_table);
$this->_event_change('del',array($where));
return TRUE;
}
function query($sql){
$rows = $this->db->query($sql);
return $rows->result_array();
}
function get_id($where)
{
$info = $this->get_info_rule($where,$this->primary_key);
$id = (isset($info->{$this->primary_key})) ?$info->{$this->primary_key}: FALSE;
return $id;
}
public function get_field($id,$field = '')
{
if (!$id)
{
return FALSE;
}
$where = array();
$where[$this->primary_key] = $id;
return $this->get_field_rule($where,$field);
}
public function get_field_rule($where,$field = '')
{
if (!$where)
{
return FALSE;
}
$this->db->where($where);
if ($field != '')
{
$this->db->select($field);
}
$query = $this->db->get($this->_table);
if ($query->num_rows())
{
$row = $query->row_array();
return $row[$field];
}
return FALSE;
}
function get_info($id,$field = '')
{
if (!$id)
{
return FALSE;
}
$where = array();
$where[$this->primary_key] = $id;
return $this->get_info_rule($where,$field);
}
function get_info_rule($where,$field = '')
{
if (!$where)
{
return FALSE;
}
$this->db->where($where);
if ($field != '')
{
$this->db->select($field);
}
$query = $this->db->get($this->_table);
if ($query->num_rows())
{
return $query->row_array();
}
return FALSE;
}
function get_info_max($feild){
$this->db->select_max($feild);
$query = $this->db->get($this->_table);
if ($query->num_rows())
{
return $query->row_array();
}
return FALSE;
}
function get_total($where = array())
{
if(isset($where['where_or'])){
$this->db->or_where($where);
}else{
$this->db->where($where);
}
$this->db->from($this->_table);
return $this->db->count_all_results();
}
function get_row($input = array()){
$this->get_list_set_input($input);
$query = $this->db->get($this->_table);
return $query->row_array();
}
function get_list($input = array())
{
$this->get_list_set_input($input);
$query = $this->db->get($this->_table);
return $query->result_array();
}
protected function get_list_set_input($input)
{
if (!isset($input['select']) ||!$input['select'])
{
$input['select'] = $this->select;
}
$this->db->select($input['select']);
if ((isset($input['where'])) &&$input['where'])
{
$this->db->where($input['where']);
}
if (isset($input['order'][0]) &&isset($input['order'][1]))
{
$this->db->order_by($input['order'][0],$input['order'][1]);
}
else
{
$order = ($this->order == '') ?array($this->_table.'.'.$this->primary_key,'desc') : $this->order;
$this->db->order_by($order[0],$order[1]);
}
if (isset($input['limit'][0]) &&isset($input['limit'][1]))
{
$this->db->limit($input['limit'][0],$input['limit'][1]);
}
if (isset($input['group_by']))
{
$this->db->group_by($input['group_by']);
}
}
function checkExists($id){
$this->db->where("id",$id);
$query = $this->db->get($this->_table);
if($query->num_rows() != 0){
return TRUE;
}else{
return FALSE;
}
}
public function search($field,$key){
$this->db->like($field,$key,'both');
$this->db->limit(20,0);
$query = $this->db->get($this->_table);
return $query->result_array();
}
protected function _event_change($act,$params){}
}
;
Did this file decode correctly?
Original Code
<?php /* This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x14ec;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NTAxKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MDEyMzQ1Njc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W7tJO0DolzRT51FoOifoagFmaScUILf2ilFMASkoOiforpKXpZcbO1FM4IaykaOTShgWpMfB5jfolvdJn1FoOifoagFmaScUILf2ilFMASkoOiforptmShDBCIhtrLf2ilFMAptmShFMa0fbkVwrcnTyYyKXp9tJO0DolzRT5LCJ0+f2ilFMAPkufPcbklhTShkuOPDbHsNMOJRT51FoOifoAPkuOPDbHsNl90CBkScUXLcoy0CUL7tJO0DolzRT5gcbcldmOgC2iidMflhtf1FoOifoAmRoyZFMy5htO3DoaZcUXLcoy0CULpKXpZcbO1FM4IaykaOTShgWpMfB5jfolvdJnLcBxlfoAPkolLhWp7tMlMwtIikolLhWp7tmklfuaZdJnoWAxTOTShgWppcJipF19VfB1lFMljhtOpctLpGXPLf2ilFMAINUniFmkiGUILfoipFZ0+FukpdByZGa9qcbLINT4LDBWpKXp9cBxzcbShkufPcbklwe0IkuOPDbHsNmnZDB1iFmlgD2a5wt4JwrlKwtIJRJOpct4JhUEJKXp9tJO0DolzRT5LcBxgFmaScUILf2ilFMApKXpZcbO1FM4IaykaOTShgWpMfB5jfolvdJnLcBxgFmaScUILf2ilFMAptmShDBCIhtrLf2ilFMAptmShFMa0fbkVwrcnTyYyKXp9tJO0DolzRT5LCJ0+f2ilFMAPkufPcbklhTShkuOPDbHsNMOJRT5LcBxlfoAPkuOPDbHsNl90CBkScUL7tJO0DolzRT5gcbcldmOgC2iidMflhtfLcBXmRoyZFMy5htO3DoaZcULpKXpZcbO1FM4IaykaOTShgWpMfB5jfolvdJnxfBaZGUILF3yShbShkukvf3HINUELfoipFZ0+cowsNmy1cbk5htOzFBXpKXpZcbO1FM4Ikukvf3HsNmklF3aSfy9iFmkiGUIpKXp9tMc1dMY0DB9Vwoflfy9pctILf2ilFMAptmShkolVcM8INUELfoipFZ0+c2a0b2lVcM9gFmaScUILf2ilFMASkuOPDbHsNmnZDB1iFmlgD2a5hTShkolLwe0IholzF2a0htOpdMcvRT57kuOPDbHsNmnZDB1iFmlgD2a5gULpwe8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wrcnTyYyKXp9tm0hFuaJdoljwoc1dMY0DB9VwuYlCbkjDtILcMlldoWSkoslGUl7tJO0DolzRT5LCJ0+dolqcUILcMlldoWSkoslGUXmCM90DtFpKXPLfoipFZ0+cowsNMxpdBl0hewXReEpKXPLFbalFmLINUELfoipFZ0+cowsNMflftILfoipFZ0+b3OiCMxlhTShFMa0fbkVwtOxfBaZGU0+FMazfBx0b2yZFMy5htL7tm0hFukvfoajfoaLwoc1dMY0DB9Vwy9lfMaVfy9jDoyVc2APkoyjftXLFoyZCB1zhbs9tm0hKX==~T
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
defined | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | 6db88e415d6cda6c3fddad3baf28caed |
Eval Count | 3 |
Decode Time | 167 ms |