Decoded Output

Download
<?php 
/* @Author https://www.jmphp.cn/ */ 
 namespace apppi\controller; use coreasic\Controller; use coreasic\Model; class AiseoController extends Controller { protected $model; public function __construct() { $this->model = new Model(); } public function sort_() { $result = $this->model->table("ay_content_sort")->field("scode as id,pcode as pid,name")->order("pcode,sorting,scode")->select(); $tree = get_tree($result, 0, "id", "pid", "children"); json(2000, $tree); } public function add_() { goto veIHzJFLoA; wDipWNqeLx: if (!(preg_match("/<img\s+.*?src=\s?['|\"](.*?(\.gif|\.jpg|\.png|\.jpeg))['|\"].*?[\/]?>/i", decode_string($content), $srcs) && isset($srcs[1]))) { goto ErXxl472WH; } $ico = $srcs[1]; ErXxl472WH: if (!$ico) { goto DWRO1Mpw4h; } resize_img(ROOT_PATH . $ico, '', $this->config("ico.max_width"), $this->config("ico.max_height")); goto BbGI1ttwl7; veIHzJFLoA: $content = post("content"); $title = post("title"); $class_id = post("class_id"); if (empty($content) || empty($title) || empty($class_id)) { goto F3l7FcFpKM; } $ico = ''; goto wDipWNqeLx; eK0s2UxU6Z: F3l7FcFpKM: json(2001, ""); juwq7G59cQ: goto yK1PWBPk9S; BbGI1ttwl7: DWRO1Mpw4h: $data = array("acode" => post("acode") ?? "cn", "scode" => $class_id, "subscode" => '', "title" => $title, "titlecolor" => '', "subtitle" => '', "filename" => '', "author" => post("author") ?? "admin", "source" => "", "outlink" => '', "date" => date("Y-m-d H:i:s"), "ico" => $ico, "pics" => '', "content" => $content, "tags" => post("keywords") ?? '', "enclosure" => '', "keywords" => post("keywords") ?? '', "description" => post("intro") ?? '', "sorting" => 255, "status" => 1, "istop" => 0, "isrecommend" => 0, "isheadline" => 0, "visits" => 0, "likes" => 0, "oppose" => 0, "create_user" => post("username") ?? "admin", "update_user" => post("username") ?? "admin"); $id = $this->model->table("ay_content")->autoTime()->insertGetId($data); json(2000, []); goto juwq7G59cQ; goto eK0s2UxU6Z; yK1PWBPk9S: } } ?>

Function Calls

None

Variables

None

Stats

MD55f4750c9ab3a2e2830cdb0d803272202
Eval Count0
Decode Time174 ms

Original Code

<?php
/* @Author https://www.jmphp.cn/ */
 namespace app\api\controller; use core\basic\Controller; use core\basic\Model; class AiseoController extends Controller { protected $model; public function __construct() { $this->model = new Model(); } public function sort_() { $result = $this->model->table("\141\171\x5f\143\x6f\156\x74\145\156\164\137\163\x6f\162\164")->field("\163\143\157\144\x65\40\141\163\40\151\x64\x2c\160\143\x6f\x64\145\x20\141\x73\40\x70\x69\144\x2c\x6e\141\155\145")->order("\x70\x63\157\x64\x65\x2c\x73\157\162\x74\151\156\x67\54\x73\143\157\144\x65")->select(); $tree = get_tree($result, 0, "\151\144", "\160\151\144", "\x63\150\x69\x6c\144\162\x65\156"); json(2000, $tree); } public function add_() { goto veIHzJFLoA; wDipWNqeLx: if (!(preg_match("\57\74\x69\155\147\x5c\x73\53\x2e\x2a\77\x73\x72\143\75\134\x73\77\x5b\47\174\134\x22\x5d\50\56\52\77\50\134\56\147\x69\x66\174\134\56\152\x70\x67\x7c\134\56\x70\156\x67\174\134\56\152\x70\145\147\x29\51\x5b\47\174\134\x22\x5d\x2e\x2a\77\133\x5c\57\x5d\x3f\76\57\x69", decode_string($content), $srcs) && isset($srcs[1]))) { goto ErXxl472WH; } $ico = $srcs[1]; ErXxl472WH: if (!$ico) { goto DWRO1Mpw4h; } resize_img(ROOT_PATH . $ico, '', $this->config("\x69\143\157\x2e\x6d\141\x78\x5f\167\151\144\x74\x68"), $this->config("\x69\143\157\x2e\155\x61\x78\x5f\150\x65\x69\x67\150\x74")); goto BbGI1ttwl7; veIHzJFLoA: $content = post("\143\157\156\164\x65\156\x74"); $title = post("\164\151\164\x6c\145"); $class_id = post("\x63\154\141\x73\x73\x5f\x69\x64"); if (empty($content) || empty($title) || empty($class_id)) { goto F3l7FcFpKM; } $ico = ''; goto wDipWNqeLx; eK0s2UxU6Z: F3l7FcFpKM: json(2001, "\344\270\273\xe8\246\x81\xe5\217\202\xe6\x95\xb0\xe7\xbc\272\xe5\xa4\261"); juwq7G59cQ: goto yK1PWBPk9S; BbGI1ttwl7: DWRO1Mpw4h: $data = array("\141\x63\157\144\x65" => post("\x61\x63\x6f\144\145") ?? "\x63\156", "\163\143\x6f\x64\145" => $class_id, "\x73\x75\x62\163\143\157\x64\145" => '', "\x74\x69\164\154\145" => $title, "\164\151\164\x6c\145\x63\x6f\x6c\x6f\162" => '', "\x73\165\x62\164\x69\164\154\x65" => '', "\146\x69\154\x65\156\x61\155\x65" => '', "\141\165\164\x68\x6f\162" => post("\x61\x75\x74\x68\157\x72") ?? "\141\144\155\x69\156", "\x73\x6f\165\x72\143\x65" => "\xe6\x9c\xac\xe7\253\x99", "\x6f\x75\164\154\151\x6e\x6b" => '', "\144\141\164\x65" => date("\x59\x2d\155\x2d\x64\x20\110\72\151\72\163"), "\x69\x63\157" => $ico, "\160\151\143\163" => '', "\x63\x6f\x6e\164\145\156\x74" => $content, "\x74\x61\147\x73" => post("\x6b\145\171\167\157\x72\144\163") ?? '', "\145\x6e\x63\154\x6f\163\x75\x72\x65" => '', "\x6b\145\171\x77\x6f\162\144\163" => post("\x6b\145\171\x77\x6f\162\x64\163") ?? '', "\x64\x65\163\x63\x72\x69\x70\164\x69\x6f\156" => post("\x69\156\164\162\x6f") ?? '', "\x73\x6f\x72\x74\x69\156\x67" => 255, "\163\164\x61\x74\x75\163" => 1, "\x69\x73\164\x6f\x70" => 0, "\151\163\162\x65\143\157\x6d\x6d\x65\x6e\144" => 0, "\151\163\x68\145\x61\144\x6c\151\156\x65" => 0, "\166\x69\163\151\164\163" => 0, "\154\151\153\x65\163" => 0, "\x6f\160\x70\157\163\x65" => 0, "\143\162\145\x61\164\145\137\x75\163\x65\162" => post("\x75\163\x65\162\x6e\x61\155\145") ?? "\x61\x64\x6d\x69\156", "\x75\x70\144\x61\x74\145\137\165\x73\145\162" => post("\x75\x73\145\x72\x6e\x61\155\145") ?? "\141\144\x6d\x69\x6e"); $id = $this->model->table("\x61\x79\x5f\x63\157\156\x74\x65\156\164")->autoTime()->insertGetId($data); json(2000, []); goto juwq7G59cQ; goto eK0s2UxU6Z; yK1PWBPk9S: } }