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.modules.php

<?php

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

class LS_Modules {

	protected $moduleList;

	public $uploadsDir;
	public $uploadsBaseDir;
	public $uploadsBaseURL;
	public $modulesDir;
	public $modulesURL;


	public function __construct() {

		$this->uploadsDir 		= wp_get_upload_dir();
		$this->uploadsBaseDir 	= $this->uploadsDir['basedir'];
		$this->uploadsBaseURL 	= $this->uploadsDir['baseurl'];
		$this->modulesDir 		= $this->uploadsBaseDir.'/layerslider/modules';
		$this->modulesURL 		= $this->uploadsBaseURL.'/layerslider/modules';

		$this->moduleList = [

			'pixie' => [
				'name' 		=> __('Image Editor', 'LayerSlider'),
				'handle' 	=> 'pixie-2.0.8',
				'files' 	=> [
					'css' 	=> 'styles.min.css',
					'js' 	=> 'scripts.min.js'
				]
			],

			'font-awesome-5' 	=> [
				'name' 		=> 'Font Awesome 5',
				'icon' 		=> 'font-awesome',
				'handle' 	=> 'font-awesome-5.15.3',
				'file' 		=> 'icons.js'
			],

			'font-awesome-6' 	=> [
				'name' 		=> 'Font Awesome 6',
				'icon' 		=> 'font-awesome-6',
				'handle' 	=> 'font-awesome-6.0.0',
				'file' 		=> 'icons.js'
			],

			'ionicons' 	=> [
				'name' 		=> 'Ionicons',
				'icon' 		=> 'ionicons',
				'handle' 	=> 'ionicons-5.5.1',
				'file' 		=> 'icons.js'
			],

			'line-awesome' 	=> [
				'name' 		=> 'Line Awesome',
				'icon' 		=> 'icons8',
				'handle' 	=> 'lineawesome-1.3.0',
				'file' 		=> 'icons.js'
			],

			'material-filled' 	=> [
				'name' 		=> 'Material Filled',
				'icon' 		=> 'material-icons',
				'handle' 	=> 'material-filled-4.0.0',
				'file' 		=> 'icons.js'
			],

			'material-outlined' 	=> [
				'name' 		=> 'Material Outlined',
				'icon' 		=> 'material-icons',
				'handle' 	=> 'material-outlined-4.0.0',
				'file' 		=> 'icons.js'
			],

			'material-rounded' 	=> [
				'name' 		=> 'Material Rounded',
				'icon' 		=> 'material-icons',
				'handle' 	=> 'material-rounded-4.0.0',
				'file' 		=> 'icons.js'
			],

			'material-sharp' 	=> [
				'name' 		=> 'Material Sharp',
				'icon' 		=> 'material-icons',
				'handle' 	=> 'material-sharp-4.0.0',
				'file' 		=> 'icons.js'
			],

			'material-twotone' 	=> [
				'name' 		=> 'Material Two Tone',
				'icon' 		=> 'material-icons',
				'handle' 	=> 'material-twotone-4.0.0',
				'file' 		=> 'icons.js'
			],
		];

	}


	public function getModuleData( $handle ) {

		if( empty( $this->moduleList[ $handle ] ) ) {
			return false;
		}

		$moduleData = $this->moduleList[ $handle ];
		$moduleDir 	= $this->modulesDir.'/'.$moduleData['handle'];
		$needsDL 	= ! file_exists( $moduleDir ) || count( glob( "$moduleDir/*" ) ) === 0;

		$moduleData['baseURL'] 		= $this->modulesURL.'/'.$moduleData['handle'];
		$moduleData['installed'] 	= ! $needsDL;
		$moduleData['needsDL'] 		= $needsDL;

		return $moduleData;
	}


	public function getAllModuleData() {

		$modules = [];

		foreach( $this->moduleList as $moduleKey => $moduleData ) {
			$modules[ $moduleKey ] = $this->getModuleData( $moduleKey );
		}

		return $modules;
	}

}

SILENT KILLER Tool