return;
}
- $watchlist = explode(',', $this->config->get('system', 'db_log_index_watch'));
- $blacklist = explode(',', $this->config->get('system', 'db_log_index_blacklist'));
+ $watchlist = explode(',', $this->configCache->get('system', 'db_log_index_watch'));
+ $blacklist = explode(',', $this->configCache->get('system', 'db_log_index_blacklist'));
while ($row = $this->fetch($r)) {
if ((intval($this->config->get('system', 'db_loglimit_index')) > 0)) {
$duration = round($duration, 3);
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
+<<<<<<< HEAD
@file_put_contents(
$this->config->get('system', 'db_log'),
DateTimeFormat::utcNow() . "\t" . $duration . "\t" .
substr($this->replaceParameters($sql, $args), 0, 4000) . "\n",
FILE_APPEND
);
+=======
+ @file_put_contents($this->configCache->get('system', 'db_log'), DateTimeFormat::utcNow() . "\t" . $duration . "\t" .
+ basename($backtrace[1]['file']) . "\t" .
+ $backtrace[1]['line'] . "\t" . $backtrace[2]['function'] . "\t" .
+ substr($this->replaceParameters($sql, $args), 0, 4000) . "\n", FILE_APPEND);
+>>>>>>> 82391ca61 (Changes:)
}
}
return $retval;
$serverdata = self::fetchWeeklyUsage($url, $serverdata);
}
+ $serverdata['next_contact'] = self::getNextUpdateDate(true, '', '', in_array($serverdata['network'], [Protocol::PHANTOM, Protocol::FEED]));
+ $serverdata['last_contact'] = DateTimeFormat::utcNow();
+ $serverdata['failed'] = false;
$serverdata['registered-users'] = $serverdata['registered-users'] ?? 0;
$serverdata['next_contact'] = self::getNextUpdateDate(true, '', '', in_array($serverdata['network'], [Protocol::PHANTOM, Protocol::FEED]));
$serverdata['last_contact'] = DateTimeFormat::utcNow();