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\Doc; /** * Mark Controller * * @author sasou<admin@php-ge..
Decoded Output download
<?php
namespace Controllers\Doc;
/**
* Mark Controller
*
* @author sasou<[email protected]>
* @version 1.0
*/
class Mark extends \Gene\Controller
{
/**
* run
*/
function run()
{
$this->page = intval($this->get("page", 1));
$this->limit = intval($this->get("limit", 10));
$search['title'] = trim($this->get("title"));
$this->title = '';
$this->mark_type = ["", "", "", ""];
$this->search = $search;
$this->mark = \Services\Doc\Mark::getInstance()->lists($this->page, $this->limit, $this->search);
$this->display("doc/mark/run", "parent");
}
/**
* info
*
* @param mixed $params url
* @return mixed
*/
function info($params)
{
$id = intval($params["id"]);
$this->row = \Services\Doc\Mark::getInstance()->row($id);
}
/**
* add
*/
function add()
{
$this->title = '';
$this->display("doc/mark/add", "dialog");
}
/**
* addPost
*/
function addPost()
{
$data = $this->post('data');
$id = \Services\Doc\Mark::getInstance()->add($data);
if ($id) {
return $this->success("");
}
return $this->error("");
}
/**
* edit
*/
function edit($params)
{
$this->title = '';
$id = intval($params["id"]);
$this->mark = \Services\Doc\Mark::getInstance()->row($id);
$this->display("doc/mark/edit", "dialog");
}
/**
* editPost
*/
function editPost()
{
$id = intval($this->post('id'));
$data = $this->post('data');
$count = \Services\Doc\Mark::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\Doc\Mark::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"]);
$count = \Services\Doc\Mark::getInstance()->del($id);
if ($count) {
return $this->success("");
}
return $this->error("");
}
/**
* delAll
*/
function delAll()
{
$id_arr = $this->post("id", 0);
$count = \Services\Doc\Mark::getInstance()->delAll($id_arr);
if ($count) {
return $this->success("");
}
return $this->error("");
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Controllers\Doc;
/**
* Mark Controller
*
* @author sasou<[email protected]>
* @version 1.0
*/
class Mark extends \Gene\Controller
{
/**
* run
*/
function run()
{
$this->page = intval($this->get("page", 1));
$this->limit = intval($this->get("limit", 10));
$search['title'] = trim($this->get("title"));
$this->title = '';
$this->mark_type = ["", "", "", ""];
$this->search = $search;
$this->mark = \Services\Doc\Mark::getInstance()->lists($this->page, $this->limit, $this->search);
$this->display("doc/mark/run", "parent");
}
/**
* info
*
* @param mixed $params url
* @return mixed
*/
function info($params)
{
$id = intval($params["id"]);
$this->row = \Services\Doc\Mark::getInstance()->row($id);
}
/**
* add
*/
function add()
{
$this->title = '';
$this->display("doc/mark/add", "dialog");
}
/**
* addPost
*/
function addPost()
{
$data = $this->post('data');
$id = \Services\Doc\Mark::getInstance()->add($data);
if ($id) {
return $this->success("");
}
return $this->error("");
}
/**
* edit
*/
function edit($params)
{
$this->title = '';
$id = intval($params["id"]);
$this->mark = \Services\Doc\Mark::getInstance()->row($id);
$this->display("doc/mark/edit", "dialog");
}
/**
* editPost
*/
function editPost()
{
$id = intval($this->post('id'));
$data = $this->post('data');
$count = \Services\Doc\Mark::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\Doc\Mark::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"]);
$count = \Services\Doc\Mark::getInstance()->del($id);
if ($count) {
return $this->success("");
}
return $this->error("");
}
/**
* delAll
*/
function delAll()
{
$id_arr = $this->post("id", 0);
$count = \Services\Doc\Mark::getInstance()->delAll($id_arr);
if ($count) {
return $this->success("");
}
return $this->error("");
}
}
Function Calls
None |
Stats
MD5 | 13849df5d0ac637e62d7c971395b40a6 |
Eval Count | 0 |
Decode Time | 566 ms |