Uname:Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64

403WebShell
403Webshell
Server IP : 13.126.101.145  /  Your IP : 216.73.217.84
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/rentals_updated/wp-content/plugins/api_manager/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/rentals_updated/wp-content/plugins/api_manager/includes/class-api-manager.php
<?php

class API_Manager {

    protected $loader;
    protected $plugin_name;
    protected $version;
    protected $db;

    public function __construct() {
        $this->plugin_name = 'api-manager';
        $this->version = API_MANAGER_VERSION;
        $this->load_dependencies();
        $this->define_admin_hooks();
    }

    private function load_dependencies() {
        require_once API_MANAGER_PLUGIN_DIR . 'includes/class-api-manager-loader.php';
        require_once API_MANAGER_PLUGIN_DIR . 'includes/class-api-manager-admin.php';
        require_once API_MANAGER_PLUGIN_DIR . 'includes/class-invoiceapi.php';
        require_once API_MANAGER_PLUGIN_DIR . 'includes/class-contractapi.php';
        // require_once API_MANAGER_PLUGIN_DIR . 'includes/class-sap-endpoint.php';
        require_once API_MANAGER_PLUGIN_DIR . 'includes/class-post.php';
        require_once API_MANAGER_PLUGIN_DIR . 'includes/class-invoice-post.php';





        $this->loader = new API_Manager_Loader();
    }

    private function define_admin_hooks() {
        $plugin_admin = new API_Manager_Admin($this->get_plugin_name(), $this->get_version(), $this->db);
        $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles');
        $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts');
        $this->loader->add_action('admin_menu', $plugin_admin, 'add_plugin_admin_menu');
        $this->loader->add_action('wp_ajax_api_manager_save', $plugin_admin, 'save_api_config');
        $this->loader->add_action('wp_ajax_api_manager_delete', $plugin_admin, 'delete_api_config');
        $this->loader->add_action('wp_ajax_api_manager_get_configs', $plugin_admin, 'get_api_configs');
        $this->loader->add_action('wp_ajax_trigger_api_call', $plugin_admin, 'trigger_api_call');
    }

    public function run() {
        $this->loader->run();
    }

    public function get_plugin_name() {
        return $this->plugin_name;
    }

    public function get_version() {
        return $this->version;
    }

   
}


Youez - 2016 - github.com/yon3zu
LinuXploit