| Server IP : 186.64.123.29 / Your IP : 216.73.217.94 Web Server : LiteSpeed System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : tuemp9827 ( 1016) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/tuempresavirtual.cl/public_html/wp-content/plugins/tidio-live-chat/src/ |
Upload File : |
<?php
namespace TidioLiveChat;
if (!defined('WPINC')) {
die('File loaded directly. Exiting.');
}
final class Config
{
/**
* @var array|null
*/
private static $config = null;
/**
* @return string
*/
public static function getApiUrl()
{
return self::getConfig()['tidio_api_url'];
}
/**
* @return string
*/
public static function getPanelUrl()
{
return self::getConfig()['tidio_panel_url'];
}
/**
* @return string
*/
public static function getWidgetUrl()
{
return self::getConfig()['tidio_widget_url'];
}
/**
* @return string
*/
public static function getDebugLogPath()
{
return self::getConfig()['debug_log_path'];
}
/**
* @return array<string, string>
*/
private static function getConfig()
{
if (self::$config === null) {
self::$config = require __DIR__ . '/../config.php';
}
return self::$config;
}
}