diff --git a/api_notifications.php b/api_notifications.php deleted file mode 100644 index eb6171f..0000000 --- a/api_notifications.php +++ /dev/null @@ -1,74 +0,0 @@ -= :now)) - OR (starttime BETWEEN :now2 AND :future2) - ) - ORDER BY starttime ASC"; - - $stmt = $pdo->prepare($sql); - $stmt->execute([ - ':now' => $now, - ':now2' => $now, - ':future' => $future, - ':future2' => $future - ]); - - $notifications = $stmt->fetchAll(); - - // Categorize notifications - $currentEvents = []; - $upcomingEvents = []; - - foreach ($notifications as $notification) { - $start = strtotime($notification['starttime']); - $end = $notification['endtime'] ? strtotime($notification['endtime']) : null; - $nowTimestamp = time(); - - if ($start <= $nowTimestamp && ($end === null || $end >= $nowTimestamp)) { - $currentEvents[] = $notification; - } else { - $upcomingEvents[] = $notification; - } - } - - // Return JSON response - echo json_encode([ - 'success' => true, - 'timestamp' => date('Y-m-d H:i:s'), - 'current' => $currentEvents, - 'upcoming' => $upcomingEvents - ], JSON_PRETTY_PRINT); - -} catch (PDOException $e) { - http_response_code(500); - echo json_encode([ - 'success' => false, - 'error' => 'Database error: ' . $e->getMessage() - ]); -} catch (Exception $e) { - http_response_code(500); - echo json_encode([ - 'success' => false, - 'error' => 'Server error: ' . $e->getMessage() - ]); -} -?> diff --git a/db_config.php b/db_config.php deleted file mode 100644 index 9d0511f..0000000 --- a/db_config.php +++ /dev/null @@ -1,33 +0,0 @@ - PDO::ERRMODE_EXCEPTION, - PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, - PDO::ATTR_EMULATE_PREPARES => false, - ]; - - $pdo = new PDO($dsn, DB_USER, DB_PASS, $options); - return $pdo; - } catch (PDOException $e) { - die("Database Connection Failed: " . htmlspecialchars($e->getMessage())); - } -} -?> diff --git a/ge-aerospace-logo.svg b/ge-aerospace-logo.svg deleted file mode 100644 index 47d2953..0000000 --- a/ge-aerospace-logo.svg +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/index.php b/index.php deleted file mode 100644 index e354fa2..0000000 --- a/index.php +++ /dev/null @@ -1,469 +0,0 @@ - - -
- - -