HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/sparkle/wp-content/plugins/lumise/lumise.php
<?php

/**
 * Plugin Name: Lumise - Product Designer Tool
 * Plugin URI: https://www.lumise.com/
 * Description: The professional solution for designing & printing online
 * Version: 2.0.3
 * Author: King-Theme
 * Author URI: https://www.lumise.com/
 * Text Domain: lumise
 * Domain Path: /languages/
 */


defined( 'ABSPATH' ) || exit;
if ( ! defined( 'DS' ) ) {
	if ( DIRECTORY_SEPARATOR == '\\' ) {
		// window type.
		define( 'DS', '/' );
	} else {
		// linux type.
		define( 'DS', DIRECTORY_SEPARATOR );
	}
}

if ( ! defined( 'LUMISE_FILE' ) ) {
	define( 'LUMISE_FILE', __FILE__ );
}
if ( ! defined( 'LUMISE_PLUGIN_BASENAME' ) ) {
	define( 'LUMISE_PLUGIN_BASENAME', plugin_basename( LUMISE_FILE ) );
}

// Include the main LumiseWoo class.
if ( ! class_exists( 'LumiseWoo', false ) ) {
	include_once dirname( __FILE__ ) . '/includes/class-lumise.php';
}

/**
 * Returns the main instance of LumiseWoo.
 */
function LW() {
	return LumiseWoo::instance();
}

// Global for backwards compatibility.
$GLOBALS['lumise_woo'] = LW();

if ( class_exists( 'WOOCS' ) ) {
	global $WOOCS;
	if ( $WOOCS->is_multiple_allowed ) {
		$currrent = $WOOCS->current_currency;
		if ( $currrent != $WOOCS->default_currency ) {
			$currencies = $WOOCS->get_currencies();
			$rate       = $currencies[ $currrent ]['rate'];
			$price      = $price / $rate;
		}
	}
}