Initial commit

This commit is contained in:
2026-05-17 05:22:06 +03:00
commit ca4d00c895
155 changed files with 45216 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
header('Content-Type: application/json; charset=utf-8');
require_once __DIR__ . '/../inc/auth.php';
$session = auth_require('owner', 'engineer');
$pdo = getDB();
$stmt = $pdo->query("SELECT * FROM shs_records ORDER BY id DESC LIMIT 1");
$shs = $stmt->fetch();
echo json_encode($shs ?: ['error' => 'Нет данных']);