403Webshell
Server IP : 77.68.25.176  /  Your IP : 216.73.216.24
Web Server : Apache
System : Linux plesk 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64
User : dwp ( 10001)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/dazzlingwebplanet.co.uk/rightway-admin.dazzlingwebplanet.co.uk/app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/dazzlingwebplanet.co.uk/rightway-admin.dazzlingwebplanet.co.uk/app//CmpAchAuth.php
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Crypt;

class CmpAchAuth extends Model
{

    protected $guarded = [];

    protected $table = 'ach_auth';

    protected $fillable = [
        'cmp_id',
        'name_institution',
        'institution_address',
        'name',
        'address',
        'amount',
        'max_amount',
        'routing_number',
        'acount_num',
        'card_info',
        'card_number',
        'type',
        'exp_date',
        'csv',
        'name_card',
        'card_address',
        'date',
        'customer_phone'
    ];
    

    public function setCardInfoAttribute($value)
    {
        $this->attributes['card_info'] = Crypt::encryptString($value);
    }
    public function setCardNumberAttribute($value)
    {
        $this->attributes['card_number'] = Crypt::encryptString($value);
    }
    public function setTypeAttribute($value)
    {
        $this->attributes['type'] = Crypt::encryptString($value);
    }
    public function setExpDateAttribute($value)
    {
        $this->attributes['exp_date'] = Crypt::encryptString($value);
    }
    public function setCsvAttribute($value)
    {
        $this->attributes['csv'] = Crypt::encryptString($value);
    }
    public function setNameCardAttribute($value)
    {
        $this->attributes['name_card'] = Crypt::encryptString($value);
    }
    public function setCardAddressAttribute($value)
    {
        $this->attributes['card_address'] = Crypt::encryptString($value);
    }

    public function setRoutingNumberAttribute($value)
    {
        $this->attributes['routing_number'] = Crypt::encryptString($value);
    }
    public function setAcountNumAttribute($value)
    {
        $this->attributes['acount_num'] = Crypt::encryptString($value);
    }

    public function getCardInfoAttribute($value)
    {
        try {
            return Crypt::decryptString($value);
        } catch (\Exception $e) {
            return $value;
        }
    }
    public function getCardNumberAttribute($value)
    {
        try {
            return Crypt::decryptString($value);
        } catch (\Exception $e) {
            return $value;
        }
    }
    public function getTypeAttribute($value)
    {
        try {
            return Crypt::decryptString($value);
        } catch (\Exception $e) {
            return $value;
        }
    }
    public function getExpDateAttribute($value)
    {
        try {
            return Crypt::decryptString($value);
        } catch (\Exception $e) {
            return $value;
        }
    }
    public function getCsvAttribute($value)
    {
        try {
            return Crypt::decryptString($value);
        } catch (\Exception $e) {
            return $value;
        }
    }
    public function getNameCardAttribute($value)
    {
        try {
            return Crypt::decryptString($value);
        } catch (\Exception $e) {
            return $value;
        }
    }

    public function getCardAddressAttribute($value)
    {
        try {
            return Crypt::decryptString($value);
        } catch (\Exception $e) {
            return $value;
        }
    }

    public function getRoutingNumberAttribute($value)
    {
        try {
            return Crypt::decryptString($value);
        } catch (\Exception $e) {
            return $value;
        }
    }
    public function getAcountNumAttribute($value)
    {
        try {
            return Crypt::decryptString($value);
        } catch (\Exception $e) {
            return $value;
        }
    }

    public function getData($cmp_id)
    {
        return static::where('cmp_id', $cmp_id)->orderBy('created_at', 'desc')->first();
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit