AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/thread-self/cwd/wp-content/plugins/image-optimization/modules/oauth/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /proc/thread-self/cwd/wp-content/plugins/image-optimization/modules/oauth/components/checkpoint.php
<?php

namespace ImageOptimization\Modules\Oauth\Components;

use ImageOptimization\Classes\Utils;
use ImageOptimization\Modules\Oauth\Classes\Data;

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

/**
 * Class Checkpoint
 */
class Checkpoint {

	const ON_CONNECT = 'image-optimizer-connect';
	const ON_DISCONNECT = 'image-optimizer-disconnect';
	const ON_ACTIVATE = 'image-optimizer-activate';
	const ON_DEACTIVATE = 'image-optimizer-deactivate';

	/**
	 * event
	 *
	 * @param array $event_data
	 */
	public static function event( array $event_data = [] ): void {
		$event_name = current_action();
		// only allow specific events
		if ( ! in_array( $event_name, self::get_checkpoints() ) ) {
			return;
		}

		$response = Utils::get_api_client()->make_request(
			'POST',
			'status/checkpoint',
			[
					'event_name' => $event_name,
					'event_data' => $event_data,
			]
		);
	}

	/**
	 * get_checkpoints
	 * @return string[]
	 */
	public static function get_checkpoints(): array {
		return [
			self::ON_DISCONNECT,
			self::ON_CONNECT,
			self::ON_ACTIVATE,
			self::ON_DEACTIVATE,
		];
	}
	public function __construct() {
		foreach ( self::get_checkpoints() as $checkpoint ) {
			add_action( $checkpoint, [ __CLASS__, 'event' ], 10, 0 );
		}
	}
}

Anon7 - 2022
AnonSec Team