| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/rasin.ddns.net/wp-content/plugins/image-optimization/modules/oauth/ |
Upload File : |
<?php
namespace ImageOptimization\Modules\Oauth;
use ImageOptimization\Classes\Module_Base;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Class Module
*/
class Module extends Module_Base {
/**
* Get module name.
* Retrieve the module name.
* @access public
* @return string Module name.
*/
public function get_name(): string {
return 'oauth';
}
public static function routes_list(): array {
return [
'Connect_Init',
'Disconnect',
'Get_Subscriptions',
'Activate',
'Deactivate',
'Version',
];
}
public static function component_list(): array {
return [
'Connect',
'Checkpoint',
'Connect_Pointer',
];
}
public static function is_active(): bool {
return ! empty( get_option( 'image_optimizer_client_data' ) );
}
public function __construct() {
$this->register_components();
$this->register_routes();
}
}