Add create_list.php
This commit is contained in:
@@ -0,0 +1,63 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
require_once 'includes/config.php';
|
||||||
|
require_once 'includes/auth.php';
|
||||||
|
require_once 'includes/functions.php';
|
||||||
|
|
||||||
|
requireLogin();
|
||||||
|
|
||||||
|
$lang =
|
||||||
|
$_GET['lang'] ?? '';
|
||||||
|
|
||||||
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
|
|
||||||
|
$title =
|
||||||
|
sanitize(
|
||||||
|
$_POST['title']
|
||||||
|
);
|
||||||
|
|
||||||
|
header(
|
||||||
|
'Location: import_csv.php?lang=' .
|
||||||
|
urlencode($lang) .
|
||||||
|
'&list=' .
|
||||||
|
urlencode($title)
|
||||||
|
);
|
||||||
|
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Nieuwe lijst</title>
|
||||||
|
<link rel="stylesheet"
|
||||||
|
href="assets/css/style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
|
<div class="card">
|
||||||
|
|
||||||
|
<h1>Nieuwe woordenlijst</h1>
|
||||||
|
|
||||||
|
<form method="post">
|
||||||
|
|
||||||
|
<input
|
||||||
|
name="title"
|
||||||
|
placeholder="Titel"
|
||||||
|
required>
|
||||||
|
|
||||||
|
<button>
|
||||||
|
Verder
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user