PHP 8.0.30
Preview: Activator.php Size: 734 B
/home/certprox/template.certproxywizard.com/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' );
        }
    }
}

Directory Contents

Dirs: 6 × Files: 13

Name Size Perms Modified Actions
Admin DIR
- drwxr-xr-x 2026-06-14 00:11:50
Edit Download
Cli DIR
- drwxr-xr-x 2026-06-14 00:11:49
Edit Download
- drwxr-xr-x 2026-06-14 00:11:49
Edit Download
Mcp DIR
- drwxr-xr-x 2026-06-14 00:11:49
Edit Download
Rest DIR
- drwxr-xr-x 2026-06-14 00:11:49
Edit Download
Views DIR
- drwxr-xr-x 2026-06-14 00:11:49
Edit Download
734 B lrw-r--r-- 2026-06-10 16:30:25
Edit Download
2.62 KB lrw-r--r-- 2026-06-10 16:30:25
Edit Download
814 B lrw-r--r-- 2026-06-10 16:30:25
Edit Download
2.65 KB lrw-r--r-- 2026-06-10 16:30:25
Edit Download
136 B lrw-r--r-- 2026-06-10 16:30:25
Edit Download
1.68 KB lrw-r--r-- 2026-06-10 16:30:25
Edit Download
1.29 KB lrw-r--r-- 2026-06-10 16:30:25
Edit Download
5.15 KB lrw-r--r-- 2026-06-10 16:30:25
Edit Download
5.13 KB lrw-r--r-- 2026-06-10 16:30:25
Edit Download
1.13 KB lrw-r--r-- 2026-06-10 16:30:25
Edit Download
389 B lrw-r--r-- 2026-06-10 16:30:25
Edit Download
2.37 KB lrw-r--r-- 2026-06-10 16:30:25
Edit Download
2.61 KB lrw-r--r-- 2026-06-10 16:30:25
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).