403Webshell
Server IP : 192.64.118.117  /  Your IP : 18.188.27.20
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/mobilecreationz.com/wp-content/plugins/leads/shared/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/mobilecreationz.com/wp-content/plugins/leads/shared/classes/class.acf-bootstrap.php
<?php

class Inbound_Shared_ACF_BootStrap {

    public function __construct() {
        self::load_acf();
        self::load_acf_extended_fields();
    }

    public static function load_acf() {

        /* load ACF if not already loaded */
        if( !class_exists('acf') || defined('ACF_PRELOADED') ) {

            define( 'ACF_LITE', true );
            define( 'ACF_FREE', true );

            include_once( INBOUNDNOW_SHARED_PATH . 'assets/plugins/advanced-custom-fields/acf.php');

            /* customize ACF path */
            add_filter('acf/settings/path', array( __CLASS__, 'define_acf_settings_path' ) );

            /* customize ACF URL path */
            add_filter('acf/settings/dir', array( __CLASS__, 'define_acf_settings_url' ) );

            /* Hide ACF field group menu item */
            add_filter('acf/settings/show_admin', '__return_false');


        } else {
            /* find out if ACF free or ACF Pro is installed & activated*/
            include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
            if ( !function_exists('acf_add_local_field_group') ) {
                define( 'ACF_FREE', true );
            }  else {
                define( 'ACF_PRO', true );
                add_filter('lp_init' , array(__CLASS__,'acf_register_global') , 20 , 1 ); /* registeres a global of registered field values for support between ACF5 & ACF6 */
            }
        }
    }

    /**
     * Load extended/custom field support
     */
    public static function load_acf_extended_fields() {
        if (!function_exists('register_fields_font_awesome')) {
            include_once( INBOUNDNOW_SHARED_PATH . 'assets/plugins/advanced-custom-fields-font-awesome/acf-font-awesome.php');
            include_once( INBOUNDNOW_SHARED_PATH . 'assets/plugins/acf-field-date-time-picker/acf-date-time-picker.php');
        }
    }

    /**
     * If ACF Pro is active then register a global for active fields - this provides legacy support to Landing Pages
     */
    public static function acf_register_global( $field_group ) {
        $GLOBALS['acf_register_field_group'][] = array(
            'fields' => acf_local()->fields
        );
    }
    /**
     * define custom ACF path
     * @param $path
     * @return string
     */
    public static function define_acf_settings_path( $path ) {

        $path = INBOUNDNOW_SHARED_PATH . 'assets/plugins/advanced-custom-fields/';

        return $path;

    }

    /**
     * define custom settings URL
     * @param $url
     * @return string
     */
    public static function define_acf_settings_url( $url ) {

        $url = INBOUNDNOW_SHARED_PATH . 'assets/plugins/advanced-custom-fields/';

        return $url;
    }

}


new Inbound_Shared_ACF_BootStrap;

Youez - 2016 - github.com/yon3zu
LinuXploit