403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/Appearance.php
<?php

namespace IAWP;

/** @internal */
class Appearance
{
    public static function is_light()
    {
        return self::get_appearance() === 'light';
    }
    public static function is_dark()
    {
        return self::get_appearance() === 'dark';
    }
    public static function is_system()
    {
        return self::get_appearance() === 'system';
    }
    public static function get_appearance() : string
    {
        // Since iawp_appearance is a setting, the register_setting default will apply
        $current_value = \get_option('iawp_appearance');
        if (\array_key_exists($current_value, self::options())) {
            return $current_value;
        } else {
            return self::get_default_appearance();
        }
    }
    public static function options() : array
    {
        return ['light' => \__('Light', 'independent-analytics'), 'dark' => \__('Dark', 'independent-analytics'), 'system' => \__('System', 'independent-analytics')];
    }
    public static function get_default_appearance() : string
    {
        // Did the prefer dark mode in the past
        if (\get_option('iawp_dark_mode', '0') === '1') {
            return 'dark';
        }
        return 'light';
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit