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 defined('BASEPATH') OR exit('No direct script access allowed'); class Area exten..
Decoded Output download
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Area extends MY_Controller {
public function __construct() {
parent::__construct();
$this->create_session_themes();
$this->_pages = 'unit';
$this->_themes = $this->get_themes();
$_POST['brand'] = $this->get_brand();
$this->auth_login();
$this->load->model($this->_model . '/area_model','area_m');
}
public function index()
{
$result = $this->area_m->read();
$data['datatables'] = $result['data'];
$data['pages'] = $this->_pages;
$content = $this->load->view('area/crud', $data, TRUE);
$this->template->main($content, $this->_themes, $this->_pages);
}
public function create()
{
$post = $this->input->post();
$result = $this->area_m->create($post);
$result['csrfName'] = $this->security->get_csrf_token_name();
$result['csrfHash'] = $this->security->get_csrf_hash();
$this->output
->set_content_type('application/json')
->set_output(json_encode($result));
}
public function edit(){
$post = $this->input->post();
$result = $this->area_m->edit($post);
$result['csrfName'] = $this->security->get_csrf_token_name();
$result['csrfHash'] = $this->security->get_csrf_hash();
$this->output
->set_content_type('application/json')
->set_output(json_encode($result));
}
public function detail($id)
{
$result = $this->area_m->detail($id);
$this->output
->set_content_type('application/json')
->set_output(json_encode($result));
}
public function delete($id)
{
$result = $this->area_m->deletes($id);
$this->output
->set_content_type('application/json')
->set_output(json_encode($result));
}
} ?>
Did this file decode correctly?
Original Code
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Area extends MY_Controller {
public function __construct() {
parent::__construct();
$this->create_session_themes();
$this->_pages = 'unit';
$this->_themes = $this->get_themes();
$_POST['brand'] = $this->get_brand();
$this->auth_login();
$this->load->model($this->_model . '/area_model','area_m');
}
public function index()
{
$result = $this->area_m->read();
$data['datatables'] = $result['data'];
$data['pages'] = $this->_pages;
$content = $this->load->view('area/crud', $data, TRUE);
$this->template->main($content, $this->_themes, $this->_pages);
}
public function create()
{
$post = $this->input->post();
$result = $this->area_m->create($post);
$result['csrfName'] = $this->security->get_csrf_token_name();
$result['csrfHash'] = $this->security->get_csrf_hash();
$this->output
->set_content_type('application/json')
->set_output(json_encode($result));
}
public function edit(){
$post = $this->input->post();
$result = $this->area_m->edit($post);
$result['csrfName'] = $this->security->get_csrf_token_name();
$result['csrfHash'] = $this->security->get_csrf_hash();
$this->output
->set_content_type('application/json')
->set_output(json_encode($result));
}
public function detail($id)
{
$result = $this->area_m->detail($id);
$this->output
->set_content_type('application/json')
->set_output(json_encode($result));
}
public function delete($id)
{
$result = $this->area_m->deletes($id);
$this->output
->set_content_type('application/json')
->set_output(json_encode($result));
}
}
Function Calls
defined | 1 |
Stats
MD5 | c52926cc3739ba4d6c3580f236bd9954 |
Eval Count | 0 |
Decode Time | 99 ms |