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 namespace Controllers\Admin; /** * Module Controller * * @author sasou * @ver..

Decoded Output download

<?php
namespace Controllers\Admin;

/**
 * Module Controller
 * 
 * @author  sasou
 * @version  1.0
 * @date  2018-05-15
 */
class Module extends \Gene\Controller
{

    /**
     * run
     *
     * @return mixed
     */
    function run()
    {
        $this->title = '';
        $this->module = \Services\Admin\Module::getInstance()->manageList();
        $this->display("admin/module/run", "parent");
    }

    /**
     * info
     *
     * @param  mixed $params url
     * @return mixed
     */
    function info($params)
    {
        $id = intval($params["id"]);
        $this->row = \Services\Admin\Module::getInstance()->row($id);
    }
    
    /**
     * add
     *
     * @param  mixed $params url
     * @return mixed
     */
    function add()
    {
        $this->title = '';
        $this->moduleList = \Services\Admin\Module::getInstance()->manageList();
        $this->display("admin/module/add", "dialog");
    }
    
    /**
     * addPost
     *
     * @param  mixed $params url
     * @return mixed
     */
    function addPost()
    {
        $data = $this->post('data');
        $id = \Services\Admin\Module::getInstance()->add($data);
        if ($id) {
            return $this->success("");
        }
        return $this->error("");
    }
    
    /**
     * edit
     *
     * @param  mixed $params url
     * @return mixed
     */
    function edit($params)
    {
        $this->title = '';
        $id = intval($params["id"]);
        $this->moduleList = \Services\Admin\Module::getInstance()->manageList();
        $this->module = \Services\Admin\Module::getInstance()->row($id);
        $this->display("admin/module/edit", "dialog");
    }
    
    /**
     * editPost
     *
     * @param  mixed $params url
     * @return mixed
     */
    function editPost()
    {
        $id = intval($this->post('id'));
        $data = $this->post('data');
        $count = \Services\Admin\Module::getInstance()->edit($id, $data);
        if ($count) {
            return $this->success("");
        }
        return $this->error("");
    }
    
    /**
     * status
     *
     * @param  mixed $params url
     * @return mixed
     */
    function status($params)
    {
        $id = intval($params["id"]);
        $count = \Services\Admin\Module::getInstance()->status($id);
        if ($count) {
            return $this->success("");
        }
        return $this->error("");
    }
    
    /**
     * del
     *
     * @param  mixed $params url
     * @return mixed
     */
    function del($params)
    {
        $id = intval($params["id"]);
        $module = \Services\Admin\Module::getInstance();
        if ($module->countChird($id) > 0) {
            return $this->error(",");
        }
        $count = $module->del($id);
        if ($count) {
            return $this->success("");
        }
        return $this->error("");
    }

    /**
     * delAll
     *
     * @param  mixed $params url
     * @return mixed
     */
    function delAll()
    {
        $id_arr = $this->post("id", 0);
        $module = \Services\Admin\Module::getInstance();
        if ($module->countChird($id_arr) > 0) {
            return $this->error(",");
        }
        $count = $module->delAll($id_arr);
        if ($count) {
            return $this->success("");
        }
        return $this->error("");
    }

}
 ?>

Did this file decode correctly?

Original Code

<?php
namespace Controllers\Admin;

/**
 * Module Controller
 * 
 * @author  sasou
 * @version  1.0
 * @date  2018-05-15
 */
class Module extends \Gene\Controller
{

    /**
     * run
     *
     * @return mixed
     */
    function run()
    {
        $this->title = '';
        $this->module = \Services\Admin\Module::getInstance()->manageList();
        $this->display("admin/module/run", "parent");
    }

    /**
     * info
     *
     * @param  mixed $params url
     * @return mixed
     */
    function info($params)
    {
        $id = intval($params["id"]);
        $this->row = \Services\Admin\Module::getInstance()->row($id);
    }
    
    /**
     * add
     *
     * @param  mixed $params url
     * @return mixed
     */
    function add()
    {
        $this->title = '';
        $this->moduleList = \Services\Admin\Module::getInstance()->manageList();
        $this->display("admin/module/add", "dialog");
    }
    
    /**
     * addPost
     *
     * @param  mixed $params url
     * @return mixed
     */
    function addPost()
    {
        $data = $this->post('data');
        $id = \Services\Admin\Module::getInstance()->add($data);
        if ($id) {
            return $this->success("");
        }
        return $this->error("");
    }
    
    /**
     * edit
     *
     * @param  mixed $params url
     * @return mixed
     */
    function edit($params)
    {
        $this->title = '';
        $id = intval($params["id"]);
        $this->moduleList = \Services\Admin\Module::getInstance()->manageList();
        $this->module = \Services\Admin\Module::getInstance()->row($id);
        $this->display("admin/module/edit", "dialog");
    }
    
    /**
     * editPost
     *
     * @param  mixed $params url
     * @return mixed
     */
    function editPost()
    {
        $id = intval($this->post('id'));
        $data = $this->post('data');
        $count = \Services\Admin\Module::getInstance()->edit($id, $data);
        if ($count) {
            return $this->success("");
        }
        return $this->error("");
    }
    
    /**
     * status
     *
     * @param  mixed $params url
     * @return mixed
     */
    function status($params)
    {
        $id = intval($params["id"]);
        $count = \Services\Admin\Module::getInstance()->status($id);
        if ($count) {
            return $this->success("");
        }
        return $this->error("");
    }
    
    /**
     * del
     *
     * @param  mixed $params url
     * @return mixed
     */
    function del($params)
    {
        $id = intval($params["id"]);
        $module = \Services\Admin\Module::getInstance();
        if ($module->countChird($id) > 0) {
            return $this->error(",");
        }
        $count = $module->del($id);
        if ($count) {
            return $this->success("");
        }
        return $this->error("");
    }

    /**
     * delAll
     *
     * @param  mixed $params url
     * @return mixed
     */
    function delAll()
    {
        $id_arr = $this->post("id", 0);
        $module = \Services\Admin\Module::getInstance();
        if ($module->countChird($id_arr) > 0) {
            return $this->error(",");
        }
        $count = $module->delAll($id_arr);
        if ($count) {
            return $this->success("");
        }
        return $this->error("");
    }

}

Function Calls

None

Variables

None

Stats

MD5 a993de9b4a6046690c44e89b60c5d5af
Eval Count 0
Decode Time 115 ms