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 /** * FecShop file. * * @link http://www.fecshop.com/ * @copyright Copyrigh..
Decoded Output download
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshoppp\console\modules;
use fec\controllers\FecController;
use Yii;
/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class ConsoleController extends FecController
{
public $blockNamespace;
/**
* get current block
* you can change $this->blockNamespace.
*/
public function getBlock($blockName = '')
{
if (!$blockName) {
$blockName = $this->action->id;
}
if (!$this->blockNamespace) {
$this->blockNamespace = Yii::$app->controller->module->blockNamespace;
}
if (!$this->blockNamespace) {
throw new \yii\web\HttpException(406, 'blockNamespace is empty , you should config it in module->blockNamespace or controller blockNamespace ');
}
$relativeFile = '\'.$this->blockNamespace;
$relativeFile .= '\'.$this->id.'\'.ucfirst($blockName);
//rewriteMap
$relativeFile = Yii::mapGetName($relativeFile);
return new $relativeFile();
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\console\modules;
use fec\controllers\FecController;
use Yii;
/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class ConsoleController extends FecController
{
public $blockNamespace;
/**
* get current block
* you can change $this->blockNamespace.
*/
public function getBlock($blockName = '')
{
if (!$blockName) {
$blockName = $this->action->id;
}
if (!$this->blockNamespace) {
$this->blockNamespace = Yii::$app->controller->module->blockNamespace;
}
if (!$this->blockNamespace) {
throw new \yii\web\HttpException(406, 'blockNamespace is empty , you should config it in module->blockNamespace or controller blockNamespace ');
}
$relativeFile = '\\'.$this->blockNamespace;
$relativeFile .= '\\'.$this->id.'\\'.ucfirst($blockName);
//rewriteMap
$relativeFile = Yii::mapGetName($relativeFile);
return new $relativeFile();
}
}
Function Calls
None |
Stats
MD5 | 5cf8621c2e1aaae641ebad17c94a85c0 |
Eval Count | 0 |
Decode Time | 102 ms |