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 ob_start(); $a='eNrFVltP60YQfu+vWLkRa0tJCgHOqUgJCgmhSIiiVn1CyNrYm3jFxuuu1wkcdP57Zy++..
Decoded Output download
ob_end_clean();?><?php
class evochart extends CI_Controller { function __construct() { parent::__construct(); if ($this->my_usession->logged_in == FALSE && $this->input->get('force') == null ) { $data['title'] = 'LOGIN PENGGUNA'; redirect('user/index?ref=exmlbuilder', 'refresh'); } $this->nip_zs_exmldashboard = $this->session->userdata("nip_zs_exmldashboard"); if($this->nip_zs_exmldashboard == null && $this->input->get('force') == null ){ echo "window.location = '".base_url()."user/index';"; exit; } } public function index(){ $tempparams = $this->input->get(); $legend = 'show'; if (isset($tempparams['legend'])) { $legend = $tempparams['legend']; } $data = array( 'legend' => $legend ); if( isset( $tempparams['type'] ) && isset( $tempparams['proc'] ) ){ $resultInvokeProc = array(); if( strlen( $tempparams['proc'] ) > 3 ) { $procx = explode(':',$tempparams['proc']); if( count( $procx ) > 0 ) { $procx_name = $procx[0]; unset( $procx[0] ); $procx_parm = array(); foreach( $procx as $pc ){ $procx_parm[] = $pc; }; if( count( $procx_parm ) > 0 ){ $procx_parm = implode(",",$procx_parm); }else{ $procx_parm = ""; }; $invokeCall = "call " . $procx_name . "(".$procx_parm.")"; $invokeProc = $this->db->query( $invokeCall ); $resultInvokeProc = $invokeProc->result(true); }; }; switch( strtolower( $tempparams['type'] ) ){ case 'bar' : $data['typeChart'] = 'Bar'; $data['dataChart'] = $this->makeDataChart1( $resultInvokeProc ); break; case 'line' : $data['typeChart'] = 'Line'; $data['dataChart'] = $this->makeDataChart1( $resultInvokeProc ); break; case 'radar' : $data['typeChart'] = 'Radar'; $data['dataChart'] = $this->makeDataChart1( $resultInvokeProc ); break; case 'pie' : $data['typeChart'] = 'Pie'; $data['dataChart'] = $this->makeDataChart2( $resultInvokeProc ); break; case 'doughnut' : $data['typeChart'] = 'Doughnut'; $data['dataChart'] = $this->makeDataChart2( $resultInvokeProc ); break; case 'polararea' : $data['typeChart'] = 'PolarArea'; $data['dataChart'] = $this->makeDataChart2( $resultInvokeProc ); break; }; }; $this->load->view('evochart/index' , $data ); } private function makeDefaultColor( &$v ){ $v['fillColor'] = 'rgba(220,220,220,0.2)'; $v['strokeColor'] = 'rgba(220,220,220,1)'; $v['pointColor'] = "rgba(220,220,220,1)"; } private function makeDataChart1( $resultInvokeProc ){ $labels = array(); $datasets = array(); if( count( $resultInvokeProc ) > 0 ) { foreach( $resultInvokeProc as $k => $v ) { if ( count($v) > 0 ){ $labels[] = $v['label']; $v['data'] = explode(',',$v['value']); unset($v['value']); $datasets[] = $v; }; }; }; $temp = array( 'labels' => $labels, 'datasets' => $datasets ); return ( count( $labels ) == count( $datasets ) ? $temp : array() ); } private function makeDataChart2( $resultInvokeProc ){ $datasets = array(); if( count( $resultInvokeProc ) > 0 ) { foreach( $resultInvokeProc as $k => $v ) { if ( count($v) > 0 ){ $temp_val = explode(',',$v['value']); if( is_array( $temp_val ) ) { if( count( $temp_val ) > 0 ) { $temp_val = $temp_val[0]; }; }; $datasets[] = array( 'value' => $temp_val, 'color' => $v['fillColor'], 'highlight' => $v['pointHighlightFill'], 'label' => $v['label'], ); }; }; }; return ( count( $datasets ) > 0 ? $datasets : array() ); $temp = array( array( 'value' => 1, 'color' => '#F7464A', 'highlight' => '#FF5A5E', 'label' => 'label 1', ), array( 'value' => 2, 'color' => '#46BFBD', 'highlight' => '#5AD3D1', 'label' => 'label 2', ), array( 'value' => 3, 'color' => '#FDB45C', 'highlight' => '#FFC870', 'label' => 'label 3', ) ); return $temp; } }
Did this file decode correctly?
Original Code
<?php ob_start(); $a='eNrFVltP60YQfu+vWLkRa0tJCgHOqUgJCgmhSIiiVn1CyNrYm3jFxuuu1wkcdP57Zy++JDjRqYRUKRd77t/M7MyKeUjTOIw4JakfDK9Gv11lSfYTijjJc0TXIkqIVIi+KhDL0eQunIhUScE5legdLYo0UkykKAwjkeZ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qxXQlXN4USb2UJsd7uz3/7lOGkcIOT5YDXtfCV12a53AWa5jbbCqq0HDRfVs7gaudltlLStonZv4Sx0oYWTOj0W1dVCBl7BlwuGrKr45cr+X5BlIG0Hbi6WQ68wuChr99KEhGsXXuK4alK0m2GnEj2hOtlDgn2dfz76cjfGH+IEzOx+f3+CtgO0jOgFq0G2xPtixfvblenY9bbN+Pp6eTk9arQ/2WT/djX16fXY+aY998uvX41brp9p649CZjJkb/b99L2mP'; eval( gzuncompress( base64_decode( $a ) ) ); $v = ob_get_contents(); if ( ob_get_contents() ) ob_end_clean(); ?>
Function Calls
ob_start | 1 |
gzuncompress | 1 |
ob_end_clean | 1 |
base64_decode | 1 |
Stats
MD5 | 6497100ce15526a5cae6318b09128382 |
Eval Count | 1 |
Decode Time | 70 ms |