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 Copyright (c)..

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 fecshopppppadmin\modules\Fecadminlock\myaccount;

use Yii;
use fec\helpers\CUrl;
use fec\helpers\CRequest;

/**
 * @author Terry Zhao <[email protected]>
 * @since 1.0
 */
class Index extends \yiiase\BaseObject
{
	public function getLastData(){
		$data = CRequest::param("updatepass");
		if($data){
            // ajax update
			$resetStatus = Yii::$service->adminUser->adminUser->resetCurrentPassword($data);
            if (!$resetStatus) {
                $errors = Yii::$service->helper->errors->get();
                echo  json_encode(["statusCode"=>"300",
					"message" => $errors,
				]);
            } else {
                echo  json_encode(["statusCode"=>"200",
					"message" => 'Update Password Success',
				]);
            }
            exit;
        }
        $adminUser = \Yii::$app->user->identity;
		$current_account = $adminUser->username;
		$editUrl = CUrl::getUrl("fecadmin/myaccount/index");

		return [
			'current_account' => $current_account,
			'editUrl'			=> $editUrl,
		];
	}

}
 ?>

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\appadmin\modules\Fecadmin\block\myaccount;

use Yii;
use fec\helpers\CUrl;
use fec\helpers\CRequest;

/**
 * @author Terry Zhao <[email protected]>
 * @since 1.0
 */
class Index extends \yii\base\BaseObject
{
	public function getLastData(){
		$data = CRequest::param("updatepass");
		if($data){
            // ajax update
			$resetStatus = Yii::$service->adminUser->adminUser->resetCurrentPassword($data);
            if (!$resetStatus) {
                $errors = Yii::$service->helper->errors->get();
                echo  json_encode(["statusCode"=>"300",
					"message" => $errors,
				]);
            } else {
                echo  json_encode(["statusCode"=>"200",
					"message" => 'Update Password Success',
				]);
            }
            exit;
        }
        $adminUser = \Yii::$app->user->identity;
		$current_account = $adminUser->username;
		$editUrl = CUrl::getUrl("fecadmin/myaccount/index");

		return [
			'current_account' => $current_account,
			'editUrl'			=> $editUrl,
		];
	}

}

Function Calls

None

Variables

None

Stats

MD5 50ed6a5cf3b92d9107b3a18b89754b1e
Eval Count 0
Decode Time 123 ms