HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/globfdxw/diasporameetsafrica.com/wp-content/plugins/widget-logic/widget_cfg.php
<?php
if (!defined('ABSPATH')) exit; // Exit if accessed directly

// a helper function to lookup "env_FILE", "env", then fallback, standard WP function, needed for compatibility with WP 3
if (!function_exists('getenv_docker')) {
	function getenv_docker($env, $default)
	{
		if ($fileEnv = getenv($env . '_FILE')) {
			return rtrim(file_get_contents($fileEnv), "\r\n"); // @codingStandardsIgnoreLine
		} elseif (($val = getenv($env)) !== false) {
			return $val;
		} else {
			return $default;
		}
	}
}
// a helper function for development plugin
if (!function_exists('widget_logic_getServiceVersion')) {
	function widget_logic_getServiceVersion()
	{
		$ver = getenv_docker('WORDPRESS_SERVICE_WGL_VER', 'v2');
		return $ver ? "/{$ver}" : $ver;
	}
}


return array(
	'ver' => widget_logic_getServiceVersion(),
	'base' => getenv_docker('WORDPRESS_PLUGIN_WGL_BASE_URL', 'https://widgetlogic.org')
);