HEX
Server: LiteSpeed
System: Linux lt-bnk-web1368.main-hosting.eu 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
User: u362014288 (362014288)
PHP: 8.2.30
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/hostinger-easy-onboarding/includes/Config.php
<?php

namespace Hostinger\EasyOnboarding;

defined( 'ABSPATH' ) || exit;

class Config {
    private array $config      = array();
    public const TOKEN_HEADER  = 'X-Hpanel-Order-Token';
    public const DOMAIN_HEADER = 'X-Hpanel-Domain';
    public function __construct() {
        $this->decode_config( HOSTINGER_EASY_ONBOARDING_WP_CONFIG_PATH );
    }

    private function decode_config( string $path ): void {
        if ( file_exists( $path ) ) {
            $config_content = file_get_contents( $path );
            $this->config   = json_decode( $config_content, true );
        }
    }

    public function get_config_value( string $key, $default_value ): string {
        if ( $this->config && isset( $this->config[ $key ] ) && ! empty( $this->config[ $key ] ) ) {
            return $this->config[ $key ];
        }

        return $default_value;
    }
}