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/modules/admin/rest/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/send-app/modules/admin/rest/whats-new.php
<?php
namespace Send_App\Modules\Admin\Rest;

use Send_App\Core\Base\Route_Base;
use Send_App\Modules\Admin\Module;

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

class Whats_New extends Route_Base {
	protected string $path = '/service/whatsnew';

	public function get_name(): string {
		return 'whats-new';
	}

	/**
	 * @inheritDoc
	 */
	public function get_methods(): array {
		return [
			'GET',
		];
	}

	/**
	 * @param \WP_REST_Request $request
	 *
	 * @return \WP_REST_Response|\WP_Error
	 */
	public function GET( \WP_REST_Request $request ) {
		$valid = $this->verify_capability();
		if ( is_wp_error( $valid ) ) {
			return $valid;
		}

		$module = Module::get_instance();

		$notifications_component = $module->get_component( 'Notificator' );
		$notifications = $notifications_component->get_notifications( true );

		if ( is_wp_error( $notifications ) ) {
			return $this->respond_error_json( $notifications );
		}

		return $this->respond_success_json( $notifications );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit