HEX
Server: Apache
System: Linux belinyu.iixcp.rumahweb.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: sduw1495 (3615)
PHP: 7.4.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //proc/self/cwd/wp-content/plugins/jetformbuilder/modules/rest-api/controller.php
<?php


namespace JFB_Modules\Rest_Api;

use JFB_Components\Rest_Api\Rest_Api_Controller_Base;
use JFB_Components\Rest_Api\Rest_Api_Endpoint_Base;
use JFB_Modules\Rest_Api\Endpoints\Get_Form_Fields;
use JFB_Modules\Rest_Api\Endpoints\Install_Migrations_Endpoint;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

/**
 * Here would be global rest-api endpoints
 *
 * Class Controller
 *
 * @package JFB_Modules\Rest_Api
 */
class Controller extends Rest_Api_Controller_Base {

	protected $routes = array();

	public function __construct() {
		$this->routes = array(
			new Get_Form_Fields(),
			new Install_Migrations_Endpoint(),
		);
	}

	public function routes(): array {
		return $this->routes;
	}

	public function install( Rest_Api_Endpoint_Base $base ) {
		$this->routes[] = $base;
	}

	public function uninstall( Rest_Api_Endpoint_Base $base ) {
		$class_name = get_class( $base );

		foreach ( $this->routes as $index => $route ) {
			if ( ! is_a( $route, $class_name ) ) {
				continue;
			}
			unset( $this->routes[ $index ] );
		}

		$this->routes = array_values( $this->routes );
	}
}