Transfer to git

This commit is contained in:
2026-02-03 19:37:38 -03:00
commit 35d8517e56
137 changed files with 5817 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
if ($_SERVER["REQUEST_METHOD"] == "GET") {
try {
require_once "dbh.inc.php";
require_once "chat_reading_model.inc.php";
require_once "chat_reading_view.inc.php";
require_once "chat_reading_contr.inc.php";
$chat_history = get_chat_history($pdo);
display_history($chat_history);
} catch (PDOException $e) {
echo "An error has ocurred: " . $e->getMessage();
exit();
}
} else {
echo "Wrong request type, please check your request.";
exit();
}