SILENT KILLERPanel

Current Path: > home > transcarter > public_html > wp-content > plugins > LayerSlider > assets > > classes


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/transcarter/public_html/wp-content/plugins/LayerSlider/assets//classes

NameTypeSizeLast ModifiedActions
class.km.autoupdate.plugins.v3.php File 1726 bytes March 10 2023 20:45:24.
class.km.autoupdate.v3.php File 16249 bytes March 10 2023 20:45:24.
class.ls.config.php File 2480 bytes March 10 2023 20:45:24.
class.ls.dom.php File 4008 bytes March 10 2023 20:45:24.
class.ls.elementor.php File 2533 bytes March 10 2023 20:45:24.
class.ls.elementor.widget.php File 4505 bytes March 10 2023 20:45:24.
class.ls.exportutil.php File 6149 bytes March 10 2023 20:45:24.
class.ls.filesystem.php File 1953 bytes March 10 2023 20:45:24.
class.ls.importutil.php File 9880 bytes March 10 2023 20:45:24.
class.ls.modulemanager.php File 4185 bytes March 10 2023 20:45:24.
class.ls.modules.php File 3000 bytes March 10 2023 20:45:24.
class.ls.notifications.php File 13031 bytes March 10 2023 20:45:24.
class.ls.popups.php File 4787 bytes March 10 2023 20:45:24.
class.ls.posts.php File 10320 bytes March 10 2023 20:45:24.
class.ls.remotedata.php File 2462 bytes March 10 2023 20:45:24.
class.ls.revisions.php File 6622 bytes March 10 2023 20:45:24.
class.ls.sliders.php File 21612 bytes March 10 2023 20:45:24.
class.ls.sources.php File 7556 bytes March 10 2023 20:45:24.
class.ls.templateutils.php File 6958 bytes March 10 2023 20:45:24.
class.ls.transitionpresets.php File 785 bytes March 10 2023 20:45:24.
class.ls.uninstaller.php File 4185 bytes March 10 2023 20:45:24.
index.php File 27 bytes March 10 2023 20:45:24.

Reading File: /home/transcarter/public_html/wp-content/plugins/LayerSlider/assets//classes/class.ls.config.php

<?php

// Prevent direct file access
defined( 'LS_ROOT_FILE' ) || exit;

class LS_Config {

	public static $config 	= [];
	public static $forced 	= [];
	public static $forcedBy = [];

	private function __construct() {}


	public static function init() {

		self::$config = [
			'theme_bundle' => false,
			'autoupdate' => true,
			'notices' => true,
			'promotions' => true,
			'purchase_url' => get_option('ls-p-url', 'https://kreaturamedia.com/cart/ls-wp/')
		];
	}


	public static function has( $feature ) {
		return isset( self::$config[ $feature ] );
	}


	public static function get( $feature ) {

		if( isset( self::$config[ $feature ] ) ) {
			return self::$config[ $feature ];
		}

		return null;
	}


	public static function set( $keys, $value = null ) {

		if( is_string( $keys ) ) {
			$keys = [ "$keys" => $value ];
		}

		if( is_array( $keys ) ) {
			foreach( $keys as $key => $val ) {
				self::$config[ $key ] = $val;
			}
		}
	}


	public static function setAsTheme() {

		self::set( [
			'theme_bundle' 	=> true,
			'autoupdate' 	=> false,
			'notices' 		=> false
		] );
	}


	public static function checkCompatibility() {

		if( isset( $GLOBALS['lsAutoUpdateBox'] ) && $GLOBALS['lsAutoUpdateBox'] === false ) {
			self::set('autoupdate', false);
		}
	}


	public static function forceSettings( $name = 'Unknown', $keys = null, $value = null ) {

		if( is_string( $keys ) ) {
			$keys = [ "$keys" => $value ];
		}

		if( is_array( $keys) ) {
			foreach( $keys as $key => $val ) {

				if( get_option( 'ls_'.$key ) != $val ) {
					update_option( 'ls_'.$key, $val );
				}

				self::$forced[ $key ] = $val;
				self::$forcedBy[ $key ] = $name;
			}
		}
	}


	public static function isActivatedSite() {

		$activated 	= get_option( 'layerslider-authorized-site', false );
		$code 		= self::getLicenseKey();


		if( empty( $code ) || ! $activated ) {
			return false;
		}

		if( get_option( 'layerslider-activated_by_the7', false ) ) {
			delete_option( 'layerslider-authorized-site' );
			delete_option( 'layerslider-purchase-code' );
			delete_option( 'layerslider-activated_by_the7' );
			return false;
		}


		// Test for code length
		if( strlen( $code ) < 36 ) {
			return false;
		}


		// Test for pattern
		preg_match( '/\w{8}-\w{4}-\w{4}-\w{4}-\w{12}/', $code, $matches );
		if( empty( $matches ) ) {
			return false;
		}


		return true;
	}

	public static function getLicenseKey() {
		return trim( get_option( 'layerslider-purchase-code', '' ) );
	}
}

SILENT KILLER Tool