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 app\admin\controller; use think\facade\Env; use think\facade\Db; class Co..

Decoded Output download

<?php 
namespace appdmin\controller; use thinkacade\Env; use thinkacade\Db; class Config extends Base { public function index() { goto lVdWYlr; lVdWYlV: foreach ($ltfYfY as $ltfYfr => $ltfYff) { Db::name("config")->where("ename", $ltfYfr)->update(["value" => $ltfYff]); } goto lVdWYlJ; lVdWYld: return view('', ["confData1" => $ltfYfl, "confData2" => $ltfYfW, "left_menu" => 3]); goto lVdWYlo; lVdWYlJ: return alert("", "index", 6, 3); goto lVdWYlE; lVdWYlg: if (!request()->isPost()) { goto lVdWYlY; } goto lVdWYla; lVdWYlf: $ltfYfW = Db::name("Config")->order("id asc")->where("config_type", 2)->select(); goto lVdWYlg; lVdWYlr: $ltfYfl = Db::name("Config")->order("id asc")->where("config_type", 1)->select(); goto lVdWYlf; lVdWYlE: lVdWYlY: goto lVdWYld; lVdWYla: $ltfYfY = input("post."); goto lVdWYlV; lVdWYlo: } public function del_cache() { goto lVdWYlP; lVdWYlP: $ltfYfg = root_path() . "runtime"; goto lVdWYls; lVdWYls: delFileByDir($ltfYfg); goto lVdWYlh; lVdWYlh: return alert("", "index", 6, 3); goto lVdWYlt; lVdWYlt: } public function edit_password() { goto lVdWYWY; lVdWYWf: $ltfYfY = input("post."); goto lVdWYWg; lVdWYWa: return alert("", "edit_password", 5, 3); goto lVdWYWV; lVdWYWd: return alert("", "index", 6, 3); goto lVdWYWo; lVdWYWV: lVdWYWl: goto lVdWYWJ; lVdWYWP: return view('', ["left_menu" => 3]); goto lVdWYWs; lVdWYWJ: $ltfYfV = $this->password_salt($ltfYfY["password"]); goto lVdWYWE; lVdWYWE: Db::name("admin")->where("id", $ltfYfa["id"])->update(["password" => $ltfYfV]); goto lVdWYWd; lVdWYWo: lVdWYWW: goto lVdWYWP; lVdWYWY: $ltfYfa = session("adminAccount"); goto lVdWYWr; lVdWYWr: if (!request()->isPost()) { goto lVdWYWW; } goto lVdWYWf; lVdWYWg: if (!(strlen($ltfYfY["password"]) < 6)) { goto lVdWYWl; } goto lVdWYWa; lVdWYWs: } public function tongzhi() { goto lVdWYYE; lVdWYfl: goto lVdWYYg; goto lVdWYfW; lVdWYYE: $ltfYfJ = Db::name("tongzhi")->where("id", 1)->find(); goto lVdWYYd; lVdWYrr: $ltfYfY["fufei"] = 1; goto lVdWYrf; lVdWYYt: lVdWYWh: goto lVdWYrl; lVdWYrl: $ltfYfY["tixian"] = 2; goto lVdWYrW; lVdWYra: $ltfYfY["fufei"] = 2; goto lVdWYrV; lVdWYff: if (array_key_exists("gengxin", $ltfYfY)) { goto lVdWYYa; } goto lVdWYfg; lVdWYfo: return alert("", "/admin/config/tongzhi", 6, 3); goto lVdWYfP; lVdWYfY: $ltfYfY["jiekou"] = 2; goto lVdWYfr; lVdWYfE: lVdWYYV: goto lVdWYfd; lVdWYrE: $ltfYfY["shuju"] = 1; goto lVdWYrd; lVdWYYd: if (!request()->isPost()) { goto lVdWYYJ; } goto lVdWYYo; lVdWYYh: goto lVdWYWt; goto lVdWYYt; lVdWYrg: lVdWYYl: goto lVdWYra; lVdWYfs: return view('', ["tongzhi" => $ltfYfJ]); goto lVdWYfh; lVdWYrd: goto lVdWYYr; goto lVdWYro; lVdWYrP: $ltfYfY["shuju"] = 2; goto lVdWYrs; lVdWYrh: if (array_key_exists("jiekou", $ltfYfY)) { goto lVdWYYf; } goto lVdWYrt; lVdWYYP: if (array_key_exists("tixian", $ltfYfY)) { goto lVdWYWh; } goto lVdWYYs; lVdWYrV: lVdWYYW: goto lVdWYrJ; lVdWYrW: lVdWYWt: goto lVdWYrY; lVdWYrJ: if (array_key_exists("shuju", $ltfYfY)) { goto lVdWYYY; } goto lVdWYrE; lVdWYrf: goto lVdWYYW; goto lVdWYrg; lVdWYfg: $ltfYfY["gengxin"] = 1; goto lVdWYfa; lVdWYrs: lVdWYYr: goto lVdWYrh; lVdWYfJ: $ltfYfY["gengxin"] = 2; goto lVdWYfE; lVdWYfV: lVdWYYa: goto lVdWYfJ; lVdWYYo: $ltfYfY = input("post."); goto lVdWYYP; lVdWYfW: lVdWYYf: goto lVdWYfY; lVdWYfP: lVdWYYJ: goto lVdWYfs; lVdWYfa: goto lVdWYYV; goto lVdWYfV; lVdWYrt: $ltfYfY["jiekou"] = 1; goto lVdWYfl; lVdWYfd: Db::name("tongzhi")->where("id", 1)->update($ltfYfY); goto lVdWYfo; lVdWYrY: if (array_key_exists("fufei", $ltfYfY)) { goto lVdWYYl; } goto lVdWYrr; lVdWYYs: $ltfYfY["tixian"] = 1; goto lVdWYYh; lVdWYfr: lVdWYYg: goto lVdWYff; lVdWYro: lVdWYYY: goto lVdWYrP; lVdWYfh: } } ?>

Did this file decode correctly?

Original Code

<?php
namespace app\admin\controller; use think\facade\Env; use think\facade\Db; class Config extends Base { public function index() { goto lVdWYlr; lVdWYlV: foreach ($ltfYfY as $ltfYfr => $ltfYff) { Db::name("\x63\x6f\156\x66\151\x67")->where("\x65\156\141\x6d\x65", $ltfYfr)->update(["\166\141\x6c\165\145" => $ltfYff]); } goto lVdWYlJ; lVdWYld: return view('', ["\x63\157\156\x66\104\141\164\x61\61" => $ltfYfl, "\x63\x6f\x6e\146\x44\141\x74\141\62" => $ltfYfW, "\x6c\x65\146\x74\x5f\155\145\x6e\165" => 3]); goto lVdWYlo; lVdWYlJ: return alert("\xe6\x93\x8d\344\xbd\x9c\xe6\x88\x90\xe5\x8a\237\xef\274\201", "\x69\x6e\x64\x65\170", 6, 3); goto lVdWYlE; lVdWYlg: if (!request()->isPost()) { goto lVdWYlY; } goto lVdWYla; lVdWYlf: $ltfYfW = Db::name("\103\x6f\156\146\151\x67")->order("\151\144\x20\x61\x73\x63")->where("\x63\157\156\x66\151\147\137\x74\x79\160\x65", 2)->select(); goto lVdWYlg; lVdWYlr: $ltfYfl = Db::name("\x43\x6f\x6e\146\151\147")->order("\151\x64\x20\x61\x73\143")->where("\x63\157\156\x66\151\147\137\x74\171\160\x65", 1)->select(); goto lVdWYlf; lVdWYlE: lVdWYlY: goto lVdWYld; lVdWYla: $ltfYfY = input("\x70\x6f\x73\x74\56"); goto lVdWYlV; lVdWYlo: } public function del_cache() { goto lVdWYlP; lVdWYlP: $ltfYfg = root_path() . "\x72\x75\x6e\x74\x69\155\145"; goto lVdWYls; lVdWYls: delFileByDir($ltfYfg); goto lVdWYlh; lVdWYlh: return alert("\xe5\x88\xa0\xe9\231\244\xe7\xbc\x93\xe5\xad\230\xe6\210\x90\xe5\212\x9f\357\xbc\x81", "\x69\x6e\144\x65\170", 6, 3); goto lVdWYlt; lVdWYlt: } public function edit_password() { goto lVdWYWY; lVdWYWf: $ltfYfY = input("\x70\x6f\x73\164\56"); goto lVdWYWg; lVdWYWa: return alert("\345\257\206\xe7\xa0\x81\351\x95\277\345\xba\xa6\xe5\xa4\247\344\xba\x8e\xe5\x85\255\344\xbd\215\346\x95\260", "\x65\144\x69\x74\137\x70\141\163\163\167\x6f\162\144", 5, 3); goto lVdWYWV; lVdWYWd: return alert("\345\257\x86\347\240\201\xe9\207\215\xe7\xbd\256\346\210\x90\345\212\237\xef\xbc\201", "\x69\156\x64\145\x78", 6, 3); goto lVdWYWo; lVdWYWV: lVdWYWl: goto lVdWYWJ; lVdWYWP: return view('', ["\x6c\x65\146\164\x5f\x6d\x65\x6e\x75" => 3]); goto lVdWYWs; lVdWYWJ: $ltfYfV = $this->password_salt($ltfYfY["\x70\x61\x73\x73\167\157\162\144"]); goto lVdWYWE; lVdWYWE: Db::name("\x61\144\155\151\156")->where("\151\144", $ltfYfa["\x69\144"])->update(["\x70\x61\x73\x73\167\x6f\x72\144" => $ltfYfV]); goto lVdWYWd; lVdWYWo: lVdWYWW: goto lVdWYWP; lVdWYWY: $ltfYfa = session("\141\x64\155\x69\156\x41\143\x63\x6f\165\156\164"); goto lVdWYWr; lVdWYWr: if (!request()->isPost()) { goto lVdWYWW; } goto lVdWYWf; lVdWYWg: if (!(strlen($ltfYfY["\x70\x61\163\x73\167\157\x72\x64"]) < 6)) { goto lVdWYWl; } goto lVdWYWa; lVdWYWs: } public function tongzhi() { goto lVdWYYE; lVdWYfl: goto lVdWYYg; goto lVdWYfW; lVdWYYE: $ltfYfJ = Db::name("\x74\x6f\156\147\x7a\x68\151")->where("\x69\x64", 1)->find(); goto lVdWYYd; lVdWYrr: $ltfYfY["\x66\165\x66\x65\151"] = 1; goto lVdWYrf; lVdWYYt: lVdWYWh: goto lVdWYrl; lVdWYrl: $ltfYfY["\164\x69\170\x69\141\156"] = 2; goto lVdWYrW; lVdWYra: $ltfYfY["\x66\165\x66\145\x69"] = 2; goto lVdWYrV; lVdWYff: if (array_key_exists("\x67\x65\x6e\147\170\x69\x6e", $ltfYfY)) { goto lVdWYYa; } goto lVdWYfg; lVdWYfo: return alert("\344\xbf\xae\xe6\x94\271\xe6\210\220\xe5\212\x9f\357\274\x81", "\57\x61\x64\155\151\x6e\57\x63\x6f\156\146\x69\x67\x2f\164\157\x6e\147\x7a\150\151", 6, 3); goto lVdWYfP; lVdWYfY: $ltfYfY["\x6a\151\145\x6b\x6f\x75"] = 2; goto lVdWYfr; lVdWYfE: lVdWYYV: goto lVdWYfd; lVdWYrE: $ltfYfY["\x73\x68\165\x6a\x75"] = 1; goto lVdWYrd; lVdWYYd: if (!request()->isPost()) { goto lVdWYYJ; } goto lVdWYYo; lVdWYYh: goto lVdWYWt; goto lVdWYYt; lVdWYrg: lVdWYYl: goto lVdWYra; lVdWYfs: return view('', ["\x74\157\x6e\147\172\150\151" => $ltfYfJ]); goto lVdWYfh; lVdWYrd: goto lVdWYYr; goto lVdWYro; lVdWYrP: $ltfYfY["\163\x68\165\152\165"] = 2; goto lVdWYrs; lVdWYrh: if (array_key_exists("\x6a\151\x65\x6b\157\165", $ltfYfY)) { goto lVdWYYf; } goto lVdWYrt; lVdWYYP: if (array_key_exists("\164\x69\x78\151\x61\156", $ltfYfY)) { goto lVdWYWh; } goto lVdWYYs; lVdWYrV: lVdWYYW: goto lVdWYrJ; lVdWYrW: lVdWYWt: goto lVdWYrY; lVdWYrJ: if (array_key_exists("\163\150\x75\x6a\165", $ltfYfY)) { goto lVdWYYY; } goto lVdWYrE; lVdWYrf: goto lVdWYYW; goto lVdWYrg; lVdWYfg: $ltfYfY["\147\145\x6e\147\x78\x69\156"] = 1; goto lVdWYfa; lVdWYrs: lVdWYYr: goto lVdWYrh; lVdWYfJ: $ltfYfY["\x67\145\x6e\x67\170\x69\156"] = 2; goto lVdWYfE; lVdWYfV: lVdWYYa: goto lVdWYfJ; lVdWYYo: $ltfYfY = input("\x70\157\x73\x74\56"); goto lVdWYYP; lVdWYfW: lVdWYYf: goto lVdWYfY; lVdWYfP: lVdWYYJ: goto lVdWYfs; lVdWYfa: goto lVdWYYV; goto lVdWYfV; lVdWYrt: $ltfYfY["\x6a\x69\x65\153\x6f\165"] = 1; goto lVdWYfl; lVdWYfd: Db::name("\164\x6f\156\x67\172\x68\x69")->where("\x69\x64", 1)->update($ltfYfY); goto lVdWYfo; lVdWYrY: if (array_key_exists("\x66\x75\146\x65\151", $ltfYfY)) { goto lVdWYYl; } goto lVdWYrr; lVdWYYs: $ltfYfY["\164\151\170\x69\x61\156"] = 1; goto lVdWYYh; lVdWYfr: lVdWYYg: goto lVdWYff; lVdWYro: lVdWYYY: goto lVdWYrP; lVdWYfh: } }

Function Calls

None

Variables

None

Stats

MD5 c6f403255bcf5c2705a980d7ab8db731
Eval Count 0
Decode Time 48 ms