$plugin = <<403WebShell
403Webshell
Server IP : 193.224.177.188  /  Your IP : 216.73.216.209
Web Server : Apache
System : Linux cpanel.krtk.mta.hu 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64
User : krtkhu ( 1061)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/krtkhu/public_html/wp-content/plugins/wp-statistics/src/Utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/wp-statistics/src/Utils/Env.php
<?php

namespace WP_Statistics\Utils;

use WP_Statistics\Utils\Url;

class Env
{
    /**
     * Check if the current environment is local development
     *
     * @return bool True if running locally, false otherwise
     */
    public static function isLocal()
    {
        // Check common local development domains
        $localDomains = array(
            'localhost',
            '127.0.0.1',
            '::1',
            'local.dev',
            'local.wp',
            '*.loc',
            '*.test',
            '*.local',
        );

        // Get current site URL and parse the host
        $siteUrl = Url::getDomain(home_url());

        // Check against local domains
        foreach ($localDomains as $domain) {
            // Handle wildcard domains
            if (strpos($domain, '*') !== false) {
                $pattern = '/^' . str_replace('\*', '.*', preg_quote($domain, '/')) . '$/';
                if (preg_match($pattern, $siteUrl)) {
                    return true;
                }
            } // Exact match
            elseif (strtolower($siteUrl) === strtolower($domain)) {
                return true;
            }
        }

        // Additional checks for common local environment indicators
        if (defined('WP_ENVIRONMENT_TYPE') && WP_ENVIRONMENT_TYPE === 'local') {
            return true;
        }

        if (isset($_SERVER['REMOTE_ADDR']) && in_array($_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
            return true;
        }

        // Check for common local server software
        if (isset($_SERVER['SERVER_SOFTWARE']) && stripos($_SERVER['SERVER_SOFTWARE'], 'localhost') !== false) {
            return true;
        }

        return false;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit