first commit

This commit is contained in:
Hamza-Ayed
2026-06-09 08:40:31 +03:00
commit d8901e1a87
3161 changed files with 536187 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
require_once __DIR__ . '/../connect.php';
$phoneNumber = filterRequest("phone_number");
$sql = "SELECT
d.id, d.name_arabic, d.phone, d.created_at
FROM
`driver` d
WHERE
d.id NOT IN (SELECT driverID FROM CarRegistration)
ORDER BY `d`.`created_at` DESC
";
$stmt = $con->prepare($sql);
$stmt->execute();
if ($stmt->rowCount() > 0) {
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
// فك التشفير للحقول الحساسة
foreach ($rows as &$row) {
$row['phone'] = $encryptionHelper->decryptData($row['phone']);
$row['name_arabic'] = $encryptionHelper->decryptData($row['name_arabic']);
}
jsonSuccess($rows);
} else {
jsonError("No Car verified yet found");
}