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 class Controller extends CController { public $layout = "\57\57\x6c\141\171\157\x7..

Decoded Output download

<?php 
 class Controller extends CController { public $layout = "//layouts/design3"; public $menu = array(); public $breadcrumbs = array(); public function init() { Yii::$classMap = array_merge(Yii::$classMap, array("CaptchaExtendedAction" => Yii::getPathOfAlias("ext.captchaExtended") . DIRECTORY_SEPARATOR . "CaptchaExtendedAction.php", "CaptchaExtendedValidator" => Yii::getPathOfAlias("ext.captchaExtended") . DIRECTORY_SEPARATOR . "CaptchaExtendedValidator.php")); if (empty(constant("redaction"))) { throw new CHttpException(404, Yii::t("main-ui", "<strong>Warning!</strong> Your license has expired, send email to [email protected] for license renewal!")); } if (constant("redaction") !== "DEMO" and !empty(constant("license_date"))) { $expiration = constant("license_date"); $date = strtotime("-20 days", strtotime($expiration)); $days = date("d", strtotime($expiration) - strtotime(date("d.m.Y"))); if (strtotime(date("d.m.Y")) >= strtotime($expiration)) { Yii::app()->user->setFlash("danger", Yii::t("main-ui", "<strong>Warning!</strong> Your license has expired, send email to [email protected] for license renewal!")); } if (strtotime(date("d.m.Y")) >= strtotime("-1 day", $date) and strtotime(date("d.m.Y")) < strtotime($expiration)) { Yii::app()->user->setFlash("warning", Yii::t("main-ui", "<strong>Warning!</strong> Your license will expire in ") . ($days - 1) . Yii::t("main-ui", " days, send email to [email protected] for license renewal!")); } if (strtotime(date("d.m.Y")) > strtotime("+10 day", strtotime($expiration))) { throw new CHttpException(404, Yii::t("main-ui", "<strong>Warning!</strong> Your license has expired, send email to [email protected] for license renewal!")); } } } } ?>

Did this file decode correctly?

Original Code

<?php
 class Controller extends CController { public $layout = "\57\57\x6c\141\171\157\x75\164\163\x2f\x64\145\x73\151\x67\156\x33"; public $menu = array(); public $breadcrumbs = array(); public function init() { Yii::$classMap = array_merge(Yii::$classMap, array("\103\141\160\x74\x63\150\x61\105\170\x74\145\x6e\x64\x65\144\101\x63\x74\x69\157\156" => Yii::getPathOfAlias("\x65\170\x74\x2e\143\x61\160\164\x63\x68\141\105\x78\x74\145\156\x64\x65\144") . DIRECTORY_SEPARATOR . "\x43\141\160\x74\x63\150\x61\105\170\164\145\156\144\145\x64\101\143\164\151\157\156\56\x70\150\160", "\103\141\x70\164\x63\x68\x61\105\x78\x74\x65\156\144\145\144\126\141\x6c\x69\144\x61\x74\x6f\x72" => Yii::getPathOfAlias("\x65\170\x74\x2e\143\141\x70\164\143\150\141\105\170\164\x65\x6e\x64\x65\x64") . DIRECTORY_SEPARATOR . "\x43\x61\160\164\143\x68\141\x45\170\x74\x65\x6e\x64\145\x64\x56\141\x6c\x69\x64\141\x74\x6f\162\x2e\160\x68\x70")); if (empty(constant("\x72\x65\x64\x61\143\x74\x69\x6f\x6e"))) { throw new CHttpException(404, Yii::t("\x6d\141\151\156\x2d\x75\151", "\x3c\x73\x74\x72\157\x6e\x67\x3e\127\141\162\x6e\151\156\x67\41\x3c\57\x73\164\162\157\x6e\147\x3e\x20\131\157\165\162\x20\x6c\151\143\x65\x6e\163\145\40\150\141\x73\40\145\x78\160\x69\x72\145\x64\x2c\40\x73\145\x6e\x64\40\x65\155\x61\x69\154\x20\x74\157\40\x73\x61\x6c\145\x73\x40\166\163\x64\145\x73\x6b\x2e\162\165\x20\x66\x6f\162\x20\154\151\x63\145\x6e\163\x65\40\x72\145\x6e\x65\167\141\x6c\41")); } if (constant("\x72\145\144\141\143\164\x69\x6f\x6e") !== "\x44\x45\115\x4f" and !empty(constant("\154\151\x63\x65\x6e\x73\x65\x5f\x64\141\x74\145"))) { $expiration = constant("\154\x69\x63\x65\x6e\x73\x65\137\x64\x61\x74\x65"); $date = strtotime("\55\62\x30\40\144\141\171\x73", strtotime($expiration)); $days = date("\144", strtotime($expiration) - strtotime(date("\144\56\x6d\56\x59"))); if (strtotime(date("\144\56\x6d\56\x59")) >= strtotime($expiration)) { Yii::app()->user->setFlash("\144\141\156\x67\145\162", Yii::t("\155\141\x69\156\x2d\x75\x69", "\74\163\164\162\157\x6e\147\76\x57\x61\x72\156\x69\156\147\x21\74\x2f\163\164\162\157\156\x67\x3e\x20\131\x6f\165\x72\x20\x6c\x69\143\145\156\x73\145\x20\150\141\163\40\x65\170\x70\151\x72\145\x64\54\x20\163\x65\156\144\40\145\x6d\x61\151\x6c\40\164\157\40\163\x61\154\145\163\x40\x76\x73\144\145\163\x6b\56\x72\165\40\146\x6f\162\x20\x6c\x69\143\145\156\163\x65\x20\x72\145\x6e\x65\x77\x61\154\x21")); } if (strtotime(date("\x64\x2e\155\56\131")) >= strtotime("\x2d\x31\40\x64\x61\171", $date) and strtotime(date("\x64\x2e\x6d\56\x59")) < strtotime($expiration)) { Yii::app()->user->setFlash("\167\x61\x72\156\x69\x6e\x67", Yii::t("\155\x61\151\156\x2d\165\x69", "\74\x73\x74\x72\x6f\x6e\x67\x3e\x57\x61\162\x6e\151\156\x67\x21\x3c\57\x73\x74\162\157\156\147\76\x20\x59\x6f\x75\162\x20\x6c\151\143\x65\x6e\x73\145\40\167\x69\154\x6c\x20\x65\170\160\x69\162\145\x20\x69\156\x20") . ($days - 1) . Yii::t("\155\141\151\156\55\x75\151", "\x20\144\x61\171\x73\54\x20\x73\145\x6e\144\40\145\155\x61\x69\154\x20\x74\157\x20\163\141\x6c\x65\163\100\166\163\144\x65\163\153\56\162\x75\x20\x66\157\162\40\154\x69\x63\145\x6e\x73\145\x20\x72\x65\156\x65\167\141\154\41")); } if (strtotime(date("\144\x2e\x6d\x2e\131")) > strtotime("\53\61\60\40\x64\141\x79", strtotime($expiration))) { throw new CHttpException(404, Yii::t("\155\141\x69\x6e\x2d\165\x69", "\74\x73\164\x72\x6f\x6e\x67\x3e\x57\x61\162\156\x69\x6e\x67\41\x3c\x2f\163\x74\162\157\x6e\147\x3e\40\131\157\165\x72\40\154\x69\143\x65\156\x73\x65\40\x68\141\163\x20\x65\170\160\151\162\x65\144\x2c\x20\163\x65\x6e\x64\40\145\x6d\x61\x69\x6c\40\x74\x6f\40\163\141\x6c\x65\163\x40\166\x73\144\x65\x73\153\56\162\165\x20\146\157\162\x20\x6c\151\x63\x65\x6e\163\x65\x20\162\145\x6e\x65\167\x61\154\x21")); } } } }

Function Calls

None

Variables

None

Stats

MD5 5670111dfb64bf907c91ae93cb161cca
Eval Count 0
Decode Time 119 ms