summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php
new file mode 100644
index 0000000..57a5d91
--- /dev/null
+++ b/public/index.php
@@ -0,0 +1,28 @@
+<?php
+
+require_once dirname(__DIR__) . '/vendor/autoload.php';
+
+\Elements\Template::init();
+\Elements\DB::init();
+new \Elements\Router();
+
+$fields = [
+ 'name' => 'meta[name]',
+ 'converted mana cost' => 'meta[cmc]',
+ 'is uno reverse' => 'meta[is_uno_reverse]',
+];
+?>
+
+<form action="<?= '/card/add' ?>" method="post" enctype="multipart/form-data">
+ <?php foreach ($fields as $key => $field): ?>
+ <label>
+ <?= $key ?> <input type="text" name="<?= $field ?>">
+ </label>
+ <?php endforeach; ?>
+ <input type="submit" value="Hinzufügen">
+</form>
+
+<?php
+
+
+