cleanup
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
api.lock
|
||||
_api.lock
|
||||
_api.lock
|
||||
|
||||
data.db
|
||||
@@ -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
@@ -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;
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
<?php
|
||||
echo 'test';
|
||||
Reference in New Issue
Block a user