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 /* __________________________________________________ | QZSYSTEM ..
Decoded Output download
<?php
/* __________________________________________________
| QZSYSTEM PHP ENCODE V2.0.10 |
| QQ 571451370 |
| www.qzsystem.com |
|__________________________________________________|
*/
declare (strict_types=1); namespace app\common\service; use thinkacade\Request; use app\common\model\Product as M; use app\commonalidate\Product as V; class Product { public static function goAdd($w) { goto v? H: return ["msg" => $b->getError(), "code" => 201]; goto B; v: try { M::create($w); } catch (\Exception $Q) { return ["msg" => "" . $Q->getMessage(), "code" => 201]; } goto H? v? $b = new V(); goto U; U: if ($b->scene("add")->check($w)) { goto i; } goto H; B: i: goto v; H? } public static function goEdit($w, $A) { goto t? x: if ($b->scene("edit")->check($w)) { goto a; } goto c; j: try { M::update($w); } catch (\Exception $Q) { return ["msg" => "" . $Q->getMessage(), "code" => 201]; } goto O; J: $b = new V(); goto x; c: return ["msg" => $b->getError(), "code" => 201]; goto s; s: a: goto j; t? $w["id"] = $A; goto J; O: } public static function goRemove($A) { goto L; B: return ["msg" => "", "code" => 201]; goto Q; Q: O: goto i; B: if (!$D?>isEmpty()) { goto O; } goto B; L: $D?= M::find($A); goto B; i: try { $D?>delete(); } catch (\Exception $Q) { return ["msg" => "" . $Q->getMessage(), "code" => 201]; } goto E; E: } public static function goBatchRemove($S) { goto b; h: try { M::destroy($S); } catch (\Exception $Q) { return ["msg" => "" . $Q->getMessage(), "code" => 201]; } goto G?; B: return ["msg" => "", "code" => 201]; goto Q; b: if (is_array($S)) { goto u; } goto B; Q: u: goto h; G?: } public static function goRecycle() { goto Z? D: return ["code" => 0, "data" => $G->items(), "extend" => ["count" => $G->total(), "limit" => $i]]; goto i; H: if (is_array($S)) { goto X; } goto m? m? return ["msg" => "", "code" => "201"]; goto L; v: u: goto Z; X: $i = input("get.limit"); goto g; H: try { goto U; I: I: goto s; s: h: goto A; J: A: goto k? k? $w = M::onlyTrashed()->whereIn("id", $S)->select(); goto N; U: if (Request::param("type")) { goto A; } goto P; P: M::destroy($S, true); goto d; d: goto h; goto J; N: foreach ($w as $N) { $N->restore(); m: } goto I; A: } catch (\Exception $Q) { return ["msg" => "" . $Q->getMessage(), "code" => 201]; } goto B; b?: $S = Request::param("ids"); goto H; L: X: goto H; E: $B[] = ["product_name", "like", "%" . $v . "%"]; goto v; Z? if (!Request::isPost()) { goto l? } goto b?; Z: $G = M::onlyTrashed()->where($B)->paginate($i); goto D; E: $B = []; goto X; B: return ["msg" => ""]; goto I; g: if (!($v = input("product_name"))) { goto u; } goto E; I: l? goto E; i: } }
Did this file decode correctly?
Original Code
<?php
/* __________________________________________________
| QZSYSTEM PHP ENCODE V2.0.10 |
| QQ 571451370 |
| www.qzsystem.com |
|__________________________________________________|
*/
declare (strict_types=1); namespace app\common\service; use think\facade\Request; use app\common\model\Product as M; use app\common\validate\Product as V; class Product { public static function goAdd($w) { goto v? H: return ["\x6d\x73\x67" => $b->getError(), "\x63\x6f\144\145" => 201]; goto B; v: try { M::create($w); } catch (\Exception $Q) { return ["\x6d\163\147" => "\xe6\x93\215\344\275\x9c\345\244\xb1\xe8\264\245" . $Q->getMessage(), "\x63\x6f\144\145" => 201]; } goto H? v? $b = new V(); goto U; U: if ($b->scene("\141\144\144")->check($w)) { goto i; } goto H; B: i: goto v; H? } public static function goEdit($w, $A) { goto t? x: if ($b->scene("\x65\144\x69\x74")->check($w)) { goto a; } goto c; j: try { M::update($w); } catch (\Exception $Q) { return ["\155\x73\147" => "\346\223\x8d\xe4\275\234\345\xa4\xb1\350\xb4\xa5" . $Q->getMessage(), "\143\x6f\x64\145" => 201]; } goto O; J: $b = new V(); goto x; c: return ["\x6d\163\x67" => $b->getError(), "\143\157\144\145" => 201]; goto s; s: a: goto j; t? $w["\151\144"] = $A; goto J; O: } public static function goRemove($A) { goto L; B: return ["\155\163\147" => "\346\x95\xb0\xe6\x8d\xae\344\xb8\x8d\xe5\255\x98\xe5\x9c\250", "\143\x6f\144\145" => 201]; goto Q; Q: O: goto i; B: if (!$D?>isEmpty()) { goto O; } goto B; L: $D?= M::find($A); goto B; i: try { $D?>delete(); } catch (\Exception $Q) { return ["\155\163\147" => "\xe6\x93\215\xe4\xbd\x9c\345\244\261\350\264\245" . $Q->getMessage(), "\143\x6f\144\x65" => 201]; } goto E; E: } public static function goBatchRemove($S) { goto b; h: try { M::destroy($S); } catch (\Exception $Q) { return ["\155\163\147" => "\346\223\x8d\344\xbd\234\xe5\xa4\261\350\xb4\xa5" . $Q->getMessage(), "\143\x6f\144\145" => 201]; } goto G?; B: return ["\x6d\x73\x67" => "\346\225\260\xe6\x8d\256\344\xb8\x8d\345\xad\x98\345\234\250", "\143\x6f\144\x65" => 201]; goto Q; b: if (is_array($S)) { goto u; } goto B; Q: u: goto h; G?: } public static function goRecycle() { goto Z? D: return ["\x63\157\x64\145" => 0, "\144\141\164\141" => $G->items(), "\x65\x78\164\145\x6e\144" => ["\143\157\165\156\164" => $G->total(), "\154\x69\155\151\x74" => $i]]; goto i; H: if (is_array($S)) { goto X; } goto m? m? return ["\155\x73\x67" => "\345\x8f\x82\xe6\x95\xb0\351\224\231\350\xaf\xaf", "\143\157\144\x65" => "\x32\x30\x31"]; goto L; v: u: goto Z; X: $i = input("\x67\145\x74\x2e\154\x69\155\151\164"); goto g; H: try { goto U; I: I: goto s; s: h: goto A; J: A: goto k? k? $w = M::onlyTrashed()->whereIn("\x69\x64", $S)->select(); goto N; U: if (Request::param("\164\171\160\145")) { goto A; } goto P; P: M::destroy($S, true); goto d; d: goto h; goto J; N: foreach ($w as $N) { $N->restore(); m: } goto I; A: } catch (\Exception $Q) { return ["\155\x73\147" => "\xe6\223\x8d\344\275\234\345\xa4\261\350\264\245" . $Q->getMessage(), "\x63\157\x64\145" => 201]; } goto B; b?: $S = Request::param("\151\144\163"); goto H; L: X: goto H; E: $B[] = ["\160\162\x6f\x64\x75\143\164\137\x6e\x61\155\145", "\154\x69\x6b\145", "\45" . $v . "\45"]; goto v; Z? if (!Request::isPost()) { goto l? } goto b?; Z: $G = M::onlyTrashed()->where($B)->paginate($i); goto D; E: $B = []; goto X; B: return ["\155\x73\147" => "\xe6\223\215\xe4\xbd\x9c\346\x88\220\xe5\x8a\x9f"]; goto I; g: if (!($v = input("\x70\162\x6f\144\165\143\x74\137\x6e\141\x6d\x65"))) { goto u; } goto E; I: l? goto E; i: } }
Function Calls
None |
Stats
MD5 | 3cd6db935958c1dff32f538528a0614e |
Eval Count | 0 |
Decode Time | 42 ms |