HEX
Server: LiteSpeed
System: Linux sinope.sitehostingserver.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
User: aprilnet (1155)
PHP: 8.2.32
Disabled: popen,imap_mail,exec,passthru,system,shell_exec,proc_open,pcntl_exec,eval,allow_url_fopen,allow_url_include,mail,proc_get_status,get_cfg_var,disk_free_space,disk_total_space,diskfreespace,getmygid,getmyinode,getmypid,geymyuid,proc_nice,proc_terminate,proc_close,apache_child_terminate,chown,lchgrp,lchown,link,readlink,highlight_file,show_source,php_strip_whitespace,get_meta_tags,dl,leak,pfsockopen,event_new,pcntl_signal,pcntl_alarm,register_tick_function,apache_setenv,define_syslog_variables,escapeshellarg,escapeshellcmd,ini_alter,ini_restore,inject_code,openlog,syslog,xmlrpc_entity_decode,phpAds_remoteInfo,phpAds_XmlRpc,phpAds_xmlrpcDecode,phpAds_xmlrpcEncode,chgrp,php_eval,safe_dir,root,ftok,egy_perl,symlink,wscript
Upload Files
File: /home/aprilnet/public_html/sciohost.org/wp-content/plugins/meta-box/inc/loader.php
<?php
/**
 * Load plugin's files with check for installing it as a standalone plugin or
 * a module of a theme / plugin. If standalone plugin is already installed, it
 * will take higher priority.
 */
class RWMB_Loader {
	protected function constants() {
		// Script version, used to add version for scripts and styles.
		define( 'RWMB_VER', '5.10.19' );

		list( $path, $url ) = self::get_path( dirname( __DIR__ ) );

		// Plugin URLs, for fast enqueuing scripts and styles.
		define( 'RWMB_URL', $url );
		define( 'RWMB_JS_URL', trailingslashit( RWMB_URL . 'js' ) );
		define( 'RWMB_CSS_URL', trailingslashit( RWMB_URL . 'css' ) );

		// Plugin paths, for including files.
		define( 'RWMB_DIR', $path );
		define( 'RWMB_INC_DIR', trailingslashit( RWMB_DIR . 'inc' ) );
		define( 'RWMB_CSS_DIR', trailingslashit( RWMB_DIR . 'css' ) );
	}

	/**
	 * Get plugin base path and URL.
	 * The method is static and can be used in extensions.
	 *
	 * @link https://deluxeblogtips.com/get-url-of-php-file-in-wordpress/
	 * @param string $path Base folder path.
	 * @return array Path and URL.
	 */
	public static function get_path( string $path = '' ): array {
		// Plugin base path.
		$path       = wp_normalize_path( untrailingslashit( $path ) );
		$themes_dir = wp_normalize_path( untrailingslashit( dirname( get_stylesheet_directory() ) ) );

		// Default URL.
		$url = plugins_url( '', $path . '/' . basename( $path ) . '.php' );

		// Included into themes.
		if (
			! str_starts_with( $path, wp_normalize_path( WP_PLUGIN_DIR ) )
			&& ! str_starts_with( $path, wp_normalize_path( WPMU_PLUGIN_DIR ) )
			&& str_starts_with( $path, $themes_dir )
		) {
			$themes_url = untrailingslashit( dirname( get_stylesheet_directory_uri() ) );
			$url        = str_replace( $themes_dir, $themes_url, $path );
		}

		$path = trailingslashit( $path );
		$url  = trailingslashit( $url );

		return [ $path, $url ];
	}

	/**
	 * Bootstrap the plugin.
	 */
	public function init() {
		$this->constants();

		// PSR-4 autoload.
		$psr4_autoload = dirname( __DIR__ ) . '/vendor/autoload.php';
		if ( file_exists( $psr4_autoload ) ) {
			require $psr4_autoload;
		}

		// Register autoload for classes.
		require_once RWMB_INC_DIR . 'autoloader.php';
		$autoloader = new RWMB_Autoloader();
		$autoloader->add( RWMB_INC_DIR, 'RW_' );
		$autoloader->add( RWMB_INC_DIR, 'RWMB_' );
		$autoloader->add( RWMB_INC_DIR . 'about', 'RWMB_' );
		$autoloader->add( RWMB_INC_DIR . 'fields', 'RWMB_', '_Field' );
		$autoloader->add( RWMB_INC_DIR . 'walkers', 'RWMB_Walker_' );
		$autoloader->add( RWMB_INC_DIR . 'interfaces', 'RWMB_', '_Interface' );
		$autoloader->add( RWMB_INC_DIR . 'storages', 'RWMB_', '_Storage' );
		$autoloader->add( RWMB_INC_DIR . 'helpers', 'RWMB_Helpers_' );
		$autoloader->add( RWMB_INC_DIR . 'update', 'RWMB_Update_' );
		$autoloader->register();

		// Plugin core.
		$core = new RWMB_Core();
		$core->init();

		$shortcode = new RWMB_Shortcode();
		$shortcode->init();

		// Validation module.
		new RWMB_Validation();

		$sanitizer = new RWMB_Sanitizer();
		$sanitizer->init();

		$media_modal = new RWMB_Media_Modal();
		$media_modal->init();

		// Update.
		$update_option  = null;
		$update_checker = null;
		if ( class_exists( '\MetaBox\Updater\Option' ) ) {
			$update_option  = new \MetaBox\Updater\Option();
			$update_checker = new \MetaBox\Updater\Checker( $update_option );
			$update_checker->init();
			$update_settings = new \MetaBox\Updater\Settings( $update_checker, $update_option );
			$update_settings->init();
			$update_notification = new \MetaBox\Updater\Notification( $update_checker, $update_option );
			$update_notification->init();
		}

		// WPML Compatibility.
		new \MetaBox\Integrations\WPML();

		// Register categories for page builders.
		new \MetaBox\Integrations\Block();
		new \MetaBox\Integrations\Bricks();
		new \MetaBox\Integrations\Elementor();
		new \MetaBox\Integrations\Oxygen();

		if ( is_admin() ) {
			new \MetaBox\Dashboard\Dashboard( $update_checker, $update_option );
			new \MetaBox\FeaturedPlugins();
		}

		// Public functions.
		require_once RWMB_INC_DIR . 'functions.php';
	}
}