Updated SQL File to remove dummy data.

This commit is contained in:
Garcia-Gomez
2026-01-26 13:02:02 -08:00
commit 40aa44fd7a
21 changed files with 1977 additions and 0 deletions

13
update_settings.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
require 'db.php';
$data = json_decode(file_get_contents('php://input'), true);
$title = $data['title'] ?? 'tinyTask';
$icon = $data['icon_class'] ?? 'kanban';
$color = $data['icon_color'] ?? '#ff0000';
$stmt = $pdo->prepare("UPDATE settings SET title = ?, icon_class = ?, icon_color = ? WHERE id = 1");
$stmt->execute([$title, $icon, $color]);
echo json_encode(['success' => true]);
?>