HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux sa-dev.otherchirps.net 5.15.0-139-generic #149-Ubuntu SMP Fri Apr 11 22:06:13 UTC 2025 x86_64
User: www-data (33)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wp-content/plugins/prdctfltr/includes/svx-settings/svx-get.php
<?php

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

if ( isset( $GLOBALS['svx'] ) && version_compare( $GLOBALS['svx'], '1.6.1' ) == 0 ) :

if ( !class_exists( 'SevenVXGet' ) ) {

	class SevenVXGet {

		public static $version = '1.6.1';

		protected static $_instance = null;

		public static $settings = array();

		public static function instance() {
			if ( is_null( self::$_instance ) ) {
				self::$_instance = new self();
			}
			return self::$_instance;
		}

		function __construct() {

		}

		public function get_option_autoload( $option, $default = '' ) {
			if ( isset( self::$settings['autoload'] ) ) {
				if ( isset( self::$settings['autoload'][$option] ) ) {
					return self::$settings['autoload'][$option];
				}
				
				if ( $default ) {
					return $default;
				}

				return false;
			}

			$options = get_option( 'svx_autoload', false );

			if ( $options !== false ) {
				self::$settings['autoload'] = $options;

				if ( isset( $options[$option] ) ) {
					return $options[$option];					
				}
			}

			if ( $default ) {
				return $default;
			}

			return false;
		}

		public function get_option( $option, $plugin, $default = '' ) {
			if ( isset( self::$settings[$plugin] ) ) {
				if ( isset( self::$settings[$plugin][$option] ) ) {
					return self::$settings[$plugin][$option];
				}
				
				if ( $default ) {
					return $default;
				}

				return false;
			}
			
			$options = get_option( 'svx_settings_' . $plugin, false );

			if ( $options !== false ) {
				self::$settings[$plugin] = $options;

				if ( isset( $options[$option] ) ) {
					return $options[$option];					
				}
			}

			if ( $default ) {
				return $default;
			}

			return false;
		}


	}

	function SevenVXGet() {
		return SevenVXGet::instance();
	}

	SevenVXGet::instance();

}

endif;