Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

namespace app\controllers; use Yii; use yii\filters\AccessControl; use yii\web\Controller;..

Decoded Output download

<?  namespace app\controllers; use Yii; use yiiilters\AccessControl; use yii\web\Controller; use yii\web\Response; use yiiilters\VerbFilter; use app\models\LoginForm; use app\models\ContactForm; class SiteController extends Controller { public function behaviors() { return array("access" => array("class" => AccessControl::class, "only" => array("logout"), "rules" => array(array("actions" => array("logout"), "allow" => true, "roles" => array("@")))), "verbs" => array("class" => VerbFilter::class, "actions" => array("logout" => array("post")))); } public function actions() { return array("error" => array("class" => "yii\web\ErrorAction"), "captcha" => array("class" => "yii\captcha\CaptchaAction", "fixedVerifyCode" => YII_ENV_TEST ? "testme" : null)); } public function actionIndex() { if (Yii::$app->user->isGuest) { return $this->render("index"); } else { return $this->render("home"); } } public function actionPage() { $get = Yii::$app->request->get(); if (isset($get["view"])) { $script = substr(isset($get["view"]) ? $get["view"] : '', 0, 25); } if (isset($get["reporthos"])) { $script = "/reporthos/" . substr(isset($get["reporthos"]) ? $get["reporthos"] : '', 0, 25); } return $this->render($script); } public function actionLogin() { if (!Yii::$app->user->isGuest) { return $this->goHome(); } $model = new LoginForm(); if ($model->load(Yii::$app->request->post()) && $model->login()) { return $this->goBack(); } $model->password = ''; return $this->render("login", array("model" => $model)); } public function actionLogout() { Yii::$app->user->logout(); return $this->goHome(); } public function actionContact() { $model = new ContactForm(); if ($model->load(Yii::$app->request->post()) && $model->contact(Yii::$app->params["adminEmail"])) { Yii::$app->session->setFlash("contactFormSubmitted"); return $this->refresh(); } return $this->render("contact", array("model" => $model)); } public function actionAbout() { return $this->render("about"); } ?>

Did this file decode correctly?

Original Code

namespace app\controllers; use Yii; use yii\filters\AccessControl; use yii\web\Controller; use yii\web\Response; use yii\filters\VerbFilter; use app\models\LoginForm; use app\models\ContactForm; class SiteController extends Controller { public function behaviors() { return array("\141\143\143\145\163\x73" => array("\x63\x6c\141\x73\x73" => AccessControl::class, "\157\156\x6c\x79" => array("\154\x6f\147\x6f\x75\164"), "\x72\x75\x6c\x65\163" => array(array("\x61\x63\x74\151\157\156\x73" => array("\x6c\x6f\x67\157\x75\164"), "\x61\154\154\x6f\167" => true, "\162\157\x6c\x65\x73" => array("\100")))), "\166\145\162\142\x73" => array("\x63\x6c\x61\x73\x73" => VerbFilter::class, "\141\x63\164\x69\x6f\156\163" => array("\154\x6f\x67\x6f\x75\x74" => array("\160\x6f\x73\164")))); } public function actions() { return array("\145\162\x72\157\162" => array("\x63\x6c\141\x73\x73" => "\171\x69\151\134\x77\145\x62\134\x45\162\162\x6f\x72\101\143\164\151\x6f\156"), "\x63\x61\160\164\143\x68\141" => array("\x63\154\141\163\163" => "\171\151\151\x5c\143\141\160\x74\143\x68\x61\x5c\x43\141\x70\x74\x63\x68\141\x41\x63\164\x69\x6f\156", "\x66\x69\170\145\x64\126\x65\x72\151\x66\x79\103\x6f\x64\145" => YII_ENV_TEST ? "\164\145\163\x74\155\145" : null)); } public function actionIndex() { if (Yii::$app->user->isGuest) { return $this->render("\151\156\144\145\170"); } else { return $this->render("\x68\157\x6d\145"); } } public function actionPage() { $get = Yii::$app->request->get(); if (isset($get["\x76\151\x65\x77"])) { $script = substr(isset($get["\x76\x69\x65\167"]) ? $get["\x76\x69\x65\x77"] : '', 0, 25); } if (isset($get["\162\x65\x70\x6f\x72\x74\x68\157\163"])) { $script = "\57\x72\145\160\x6f\x72\164\x68\157\163\57" . substr(isset($get["\x72\x65\160\x6f\x72\164\150\157\163"]) ? $get["\162\x65\160\157\162\x74\x68\x6f\163"] : '', 0, 25); } return $this->render($script); } public function actionLogin() { if (!Yii::$app->user->isGuest) { return $this->goHome(); } $model = new LoginForm(); if ($model->load(Yii::$app->request->post()) && $model->login()) { return $this->goBack(); } $model->password = ''; return $this->render("\154\157\147\151\x6e", array("\155\x6f\144\x65\154" => $model)); } public function actionLogout() { Yii::$app->user->logout(); return $this->goHome(); } public function actionContact() { $model = new ContactForm(); if ($model->load(Yii::$app->request->post()) && $model->contact(Yii::$app->params["\x61\144\x6d\151\x6e\x45\x6d\141\x69\154"])) { Yii::$app->session->setFlash("\143\x6f\x6e\164\x61\x63\164\x46\x6f\x72\155\x53\x75\x62\x6d\151\164\164\x65\x64"); return $this->refresh(); } return $this->render("\143\157\156\x74\x61\x63\x74", array("\155\157\x64\145\154" => $model)); } public function actionAbout() { return $this->render("\141\x62\157\165\x74"); }

Function Calls

None

Variables

None

Stats

MD5 f13626289eff09d941ea4ff91e9cd582
Eval Count 0
Decode Time 91 ms