| Server IP : 170.10.161.225 / Your IP : 216.73.217.54 Web Server : Apache System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : calvet ( 273824) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /home/www/calvetrealty.com/wp-content/plugins/divi-pixel/includes/utils/ |
Upload File : |
<?php
if (!function_exists('dipi_log')) {
function dipi_log(...$args)
{
if (!defined('DIPI_DEBUG_LOG') || constant('DIPI_DEBUG_LOG') !== true || empty($args)) {
return;
}
dipi_log_internal('Log', ...$args);
}
}
if (!function_exists('dipi_info')) {
function dipi_info(...$args)
{
if (!defined('DIPI_DEBUG_LOG') || constant('DIPI_DEBUG_LOG') !== true || empty($args)) {
return;
}
dipi_log_internal('Info', ...$args);
}
}
if (!function_exists('dipi_err')) {
function dipi_err(...$args)
{
if (!defined('DIPI_DEBUG_LOG') || constant('DIPI_DEBUG_LOG') !== true || empty($args)) {
return;
}
dipi_log_internal('Error', ...$args);
}
}
if (!function_exists('dipi_log_internal')) {
function dipi_log_internal(...$args)
{
if (!defined('DIPI_DEBUG_LOG') || constant('DIPI_DEBUG_LOG') !== true || empty($args)) {
return;
}
$prefix = $args[0];
foreach (array_slice($args, 1) as $arg) {
if (is_array($arg) || is_object($arg)) {
error_log("Divi Pixel $prefix: " . print_r($arg, true));
} else {
error_log("Divi Pixel $prefix: " . $arg);
}
}
}
}