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'] ?? ''; ?> -Oefenen - + Oefenen + @@ -40,10 +26,10 @@ if (!$data) {

Vertaal: - +...

- + @@ -55,44 +41,6 @@ Vertaal: - + \ No newline at end of file