HEX
Server: Apache
System: Linux clpupre 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64
User: undanet (1000)
PHP: 7.4.3
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: //home/undanet/www/wp-content/plugins/popup-maker/includes/importer/easy-modal-v2/functions.php
<?php

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! function_exists( 'get_all_modals' ) ) {
	function enqueue_modal( $id ) {
		if ( ! is_array( $id ) ) {
			EModal_Modals::enqueue_modal( $id );
		} else {
			foreach ( $id as $i ) {
				EModal_Modals::enqueue_modal( $i );
			}
		}
	}
}

if ( ! function_exists( 'emodal_get_option' ) ) {
	function emodal_get_option( $key ) {
		global $blog_id;
		if ( function_exists( 'is_multisite' ) && is_multisite() && $blog_id ) {
			return get_blog_option( $blog_id, $key );
		} else {
			return get_site_option( $key );
		}
	}
}


if ( ! function_exists( 'emodal_update_option' ) ) {
	function emodal_update_option( $key, $value ) {
		global $blog_id;
		if ( function_exists( 'is_multisite' ) && is_multisite() && $blog_id ) {
			return update_blog_option( $blog_id, $key, $value );
		} else {
			return update_site_option( $key, $value );
		}
	}
}

if ( ! function_exists( 'emodal_delete_option' ) ) {
	function emodal_delete_option( $key ) {
		global $blog_id;
		if ( function_exists( 'is_multisite' ) && is_multisite() && $blog_id ) {
			return delete_blog_option( $blog_id, $key );
		} else {
			return delete_site_option( $key );
		}
	}
}

if ( ! function_exists( 'emodal_get_license' ) ) {
	function emodal_get_license( $key = null ) {
		$license = emodal_get_option( EMCORE_SLUG . '-license' );
		if ( ! $license ) {
			$license = [
				'valid'  => false,
				'key'    => '',
				'status' => [
					'code'    => null,
					'message' => null,
					'expires' => null,
					'domains' => null,
				],
			];
			emodal_update_option( EMCORE_SLUG . '-license', $license );
		}

		return $license && $key ? emresolve( $license, $key ) : $license;
	}
}


if ( ! function_exists( 'emresolve' ) ) {
	function emresolve( array $a, $path, $default = null ) {
		$current = $a;
		$p       = strtok( $path, '.' );
		while ( $p !== false ) {
			if ( ! isset( $current[ $p ] ) ) {
				return $default;
			}
			$current = $current[ $p ];
			$p       = strtok( '.' );
		}

		return $current;
	}
}