feat: backup and restore (#288)

This commit is contained in:
Miguel Ribeiro
2024-04-26 17:41:19 +02:00
committed by GitHub
parent 65cc376dff
commit 7b509d2b3d
31 changed files with 717 additions and 95 deletions
+6
View File
@@ -8,6 +8,12 @@
$stmt->bindValue(':username', $username, SQLITE3_TEXT);
$result = $stmt->execute();
$userData = $result->fetchArray(SQLITE3_ASSOC);
if ($userData === false) {
header('Location: logout.php');
exit();
}
if ($userData['avatar'] == "") {
$userData['avatar'] = "0";
}