mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-31 07:12:23 -07:00
@@ -28,13 +28,13 @@ function initOnlineHistoryGraph() {
|
||||
|
||||
res.data.forEach(function(entry) {
|
||||
|
||||
var formattedTime = localizeTimestamp(entry.Scan_Date).slice(11, 17);
|
||||
var formattedTime = localizeTimestamp(entry.scanDate).slice(11, 17);
|
||||
|
||||
timeStamps.push(formattedTime);
|
||||
onlineCounts.push(entry.Online_Devices);
|
||||
downCounts.push(entry.Down_Devices);
|
||||
offlineCounts.push(entry.Offline_Devices);
|
||||
archivedCounts.push(entry.Archived_Devices);
|
||||
onlineCounts.push(entry.onlineDevices);
|
||||
downCounts.push(entry.downDevices);
|
||||
offlineCounts.push(entry.offlineDevices);
|
||||
archivedCounts.push(entry.archivedDevices);
|
||||
});
|
||||
|
||||
// Call your presenceOverTime function after data is ready
|
||||
|
||||
@@ -24,7 +24,7 @@ $pia_lang_selected = isset($_langMatch[1]) ? strtolower($_langMatch[1]) : $defau
|
||||
$result = $db->query("SELECT * FROM Plugins_Language_Strings");
|
||||
$strings = array();
|
||||
while ($row = $result->fetchArray(SQLITE3_ASSOC)) {
|
||||
$strings[$row['String_Key']] = $row['String_Value'];
|
||||
$strings[$row['stringKey']] = $row['stringValue'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user