Folder reorganize 1

This commit is contained in:
Rucus
2026-02-17 12:44:37 -06:00
parent ec99d85bc2
commit f0ae0ab905
17427 changed files with 2071 additions and 1059030 deletions

17
includes/legacy/items.php Normal file
View File

@@ -0,0 +1,17 @@
<?php // phpcs:ignoreFile
$con = mysqli_connect('192.168.0.10', 'corey', '41945549', 'controls');
$query = "SELECT ID, Name, ROUND(Value, 0) AS Value, ROUND(Value, 1) AS RoundedValue1, ROUND(Value, 2) AS RoundedValue, Timestamp FROM items ORDER BY ID ASC";
$result = mysqli_query($con, $query);
mysqli_close($con);
while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
$value[$row['Name']] = $row['Value'];
$rounded[$row['Name']] = $row['RoundedValue'];
$time[$row['Name']] = $row['Timestamp'];
$ID[$row['ID']] = $row['Value'];
$roundedid[$row['ID']] = $row['RoundedValue'];
$rounded1[$row['ID']] = $row['RoundedValue1'];
$rounded1[$row['Name']] = $row['RoundedValue1'];
}