HEX
Server: LiteSpeed
System: Linux cluster02.load-balancer.x2.network 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: kbdhpghp (1098)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/kbdhpghp/public_html/aqualander/wp-content/plugins/hostinger/includes/Activator.php
<?php

namespace Hostinger;

defined( 'ABSPATH' ) || exit;

class Activator {
    public const INSTALLATION_OPTION_NAME = 'hts_new_installation';
    /**
     * @return void
     */
    public static function activate(): void {
        $options = new DefaultOptions();
        $options->add_options();

        self::update_installation_state_on_activation();
    }

    /**
     * Saves installation state.
     *
     * @return void
     */
    public static function update_installation_state_on_activation(): void {
        $installation_state = get_option( self::INSTALLATION_OPTION_NAME, false );

        if ( $installation_state !== 'old' ) {
            add_option( self::INSTALLATION_OPTION_NAME, 'new' );
        }
    }
}