PHP 8.0.30
Preview: Redirects.php Size: 770 B
/home/certprox/template.certproxywizard.com/wp-content/plugins/hostinger-reach/src/Admin/Redirects.php

<?php

namespace Hostinger\Reach\Admin;

if ( ! defined( 'ABSPATH' ) ) {
    die;
}

class Redirects {
    private string $platform;

    public function init(): void {
        if ( ! isset( $_GET['platform'] ) ) {
            return;
        }

        $this->platform = sanitize_text_field( $_GET['platform'] );
        $this->login_redirect();
    }

    public function login_redirect(): void {
        if ( $this->platform === HOSTINGER_REACH_PLUGIN_SLUG ) {
            add_action(
                'init',
                static function (): void {
                    $redirect_url = admin_url( 'admin.php?page=hostinger-reach' );
                    wp_safe_redirect( $redirect_url );
                    exit;
                }
            );
        }
    }
}

Directory Contents

Dirs: 3 × Files: 2

Name Size Perms Modified Actions
Database DIR
- drwxr-xr-x 2026-06-14 00:14:19
Edit Download
Notices DIR
- drwxr-xr-x 2026-06-14 00:14:19
Edit Download
Surveys DIR
- drwxr-xr-x 2026-06-14 00:14:19
Edit Download
3.36 KB lrw-r--r-- 2026-06-10 16:30:29
Edit Download
770 B lrw-r--r-- 2026-06-10 16:30:29
Edit Download

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