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 loan\common\model; class Loan extends Base { private $status = [..

Decoded Output download

<?php 
namespace loan\common\model; 
 
class Loan extends Base 
{ 
    private $status = [1=>'', 2=>'', 3=>'', 4=>'']; 
 
    public function getStatusAttr($value) 
    { 
        return	$this->status[$value]; 
    } 
 
    public function getCreatedAttr($value) 
    { 
        return	date('Y-m-d H:i:s', $value); 
    } 
 
    public function getSuccessedAttr($value) 
    { 
        if (empty($value)) { 
            return ''; 
        } else { 
            return date('Y-m-d H:i:s', $value); 
        } 
    } 
 
    public function getLoanMoneyAttr($value) 
    { 
        return sprintf("%0.2f", $value); 
    } 
 
    public function getStatusHash() 
    { 
        return $this->status; 
    } 
 
    public function user() 
    { 
        return	$this->hasOne('User', 'userId', 'userId', 'LEFT')->field('cellphone,realName,idNo'); 
    } 
 
    public function borrow() 
    { 
        return	$this->hasOne('Borrow', 'id', 'borrowId', 'LEFT')->field('borrowMoney,marketingMoney,fee,receiveMoney,cycle'); 
    } 
} ?>

Did this file decode correctly?

Original Code

<?php
namespace loan\common\model;

class Loan extends Base
{
    private $status = [1=>'', 2=>'', 3=>'', 4=>''];

    public function getStatusAttr($value)
    {
        return	$this->status[$value];
    }

    public function getCreatedAttr($value)
    {
        return	date('Y-m-d H:i:s', $value);
    }

    public function getSuccessedAttr($value)
    {
        if (empty($value)) {
            return '';
        } else {
            return date('Y-m-d H:i:s', $value);
        }
    }

    public function getLoanMoneyAttr($value)
    {
        return sprintf("%0.2f", $value);
    }

    public function getStatusHash()
    {
        return $this->status;
    }

    public function user()
    {
        return	$this->hasOne('User', 'userId', 'userId', 'LEFT')->field('cellphone,realName,idNo');
    }

    public function borrow()
    {
        return	$this->hasOne('Borrow', 'id', 'borrowId', 'LEFT')->field('borrowMoney,marketingMoney,fee,receiveMoney,cycle');
    }
}

Function Calls

None

Variables

None

Stats

MD5 4baafd51a5e579de06b3edece10c354e
Eval Count 0
Decode Time 78 ms