403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.217.33
Web Server : nginx/1.27.3
System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : mitr ( 1000)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/html/epauto.ru/wordpress/wp-content/plugins/acf-extended/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/epauto.ru/wordpress/wp-content/plugins/acf-extended/includes/field.php
<?php

if(!defined('ABSPATH')){
    exit;
}

if(!class_exists('acfe_field')):

class acfe_field extends acf_field{
    
    /**
     * construct
     */
    function __construct(){
    
        // parent construct
        parent::__construct();
        
        // custom filters
        $this->add_field_filter('acfe/form/format_value',        array($this, 'format_front_value'),       10, 5);
        $this->add_field_filter('acfe/form/validate_value',      array($this, 'validate_front_value'),     10, 5);
        $this->add_field_filter('acfe/field_wrapper_attributes', array($this, 'field_wrapper_attributes'), 10, 2);
        $this->add_field_filter('acfe/load_fields',              array($this, 'load_fields'),              10, 2);

    }
    
    
    /**
     * pre_validate_front_value
     *
     * @param $valid
     * @param $value
     * @param $field
     * @param $form
     *
     * @return mixed|null
     */
    function pre_validate_front_value($valid, $value, $field, $form){
        
        // already invalid
        if(!$valid || (is_string($valid) && !empty($valid))){
            return false;
        }
        
        // empty value
        if(empty($value)){
            return false;
        }
        
        // default validation
        $validate = true;
        
        // variations
        $validate = apply_filters("acfe/form/pre_validate_value/form={$form['name']}",   $validate, $field, $form);
        $validate = apply_filters("acfe/form/pre_validate_value/type={$field['type']}",  $validate, $field, $form);
        $validate = apply_filters("acfe/form/pre_validate_value/name={$field['_name']}", $validate, $field, $form);
        $validate = apply_filters("acfe/form/pre_validate_value/key={$field['key']}",    $validate, $field, $form);
        
        // return
        return $validate;
        
    }
    
}

endif;

Youez - 2016 - github.com/yon3zu
LinuXploit