From beb6196dadc3e50c6d5eb487e99e05a086a4c4dd Mon Sep 17 00:00:00 2001 From: Thomas de Roo <2+thomas@noreply.localhost> Date: Mon, 15 Jun 2026 12:21:36 +0200 Subject: [PATCH] Update learn.php --- learn.php | 85 ++++++++++++++++--------------------------------------- 1 file changed, 24 insertions(+), 61 deletions(-) diff --git a/learn.php b/learn.php index 0ae7b43..15352e0 100644 --- a/learn.php +++ b/learn.php @@ -2,33 +2,19 @@ require_once 'includes/config.php'; require_once 'includes/auth.php'; -require_once 'includes/functions.php'; -require_once 'includes/jsondb.php'; requireLogin(); -$user = $_SESSION['user']; - -$lang = $_GET['lang']; -$list = $_GET['list']; - -$file = listPath($user, $lang, $list); - -$data = JsonDB::read($file); - -if (!$data) { - die('Geen lijst'); -} - -// kies woord +$lang = $_GET['lang'] ?? ''; +$list = $_GET['list'] ?? ''; ?>
-Vertaal: - +...
- + @@ -55,44 +41,6 @@ Vertaal: - + \ No newline at end of file