This commit is contained in:
2026-08-28 12:33:02 +03:00
parent e504de8705
commit cc89c4a10c
11 changed files with 16 additions and 63 deletions
+3 -1
View File
@@ -1,2 +1,4 @@
api.lock
_api.lock
_api.lock
data.db
+1 -2
View File
@@ -3,7 +3,6 @@ include 'k-api.php';
const ADMIN_PASS = "superdengipassword4";
const SECRET_KEY = "dengisecretkey_monay_ivan_pletnev";
const API_PATH = "./";
function db()
@@ -28,7 +27,7 @@ function relativePathToUrl($rel)
function FastDBReq(PDO $db, string $sql, array $params = []): array
{
{
try {
$stmt = $db->prepare($sql);
$stmt->execute($params);
+1 -1
View File
@@ -8,7 +8,7 @@ function db()
return $pdo;
};
function findClosestDateSort($array, $targetDate)
function findClosestDateSort(array $array, string $targetDate)
{
if (empty($array) || !preg_match('/^\d{1,2}-\d{1,2}-\d{2}$/', $targetDate)) {
return null;
-2
View File
@@ -1,2 +0,0 @@
<?php
echo 'test';