summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-08-06 15:21:03 +0200
committerDaniel Weipert <git@mail.dweipert.de>2025-08-06 15:21:03 +0200
commit929c1b90d6b16706f9c63339f5f2a2b42332f3f3 (patch)
treeb2057dc317f6e4476d828f103046c3ab7e834c45 /index.php
parentd6adc45f0e0380d7f5404549e3774a02b2afaebe (diff)
split into two standalone containers
Diffstat (limited to 'index.php')
-rw-r--r--index.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/index.php b/index.php
deleted file mode 100644
index 79920f7..0000000
--- a/index.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-if (isset($_POST['decklist'])) {
- $_ENV['DECKLIST'] = $_POST['decklist'];
- include __DIR__ . '/mtg-pdf.php';
- exit;
-}
-
-$placeholder = <<<PLCHLDR
-QUANTITY NAME (SET) NUMBER
-3 Nissa, Who Shakes the World (WAR) 169
-PLCHLDR;
-
-?>
-
-<!doctype html>
-<html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style>
- * {
- box-sizing: border-box;
- }
- textarea {
- max-width: 100%;
- }
- </style>
- </head>
- <body>
- <form action="" method="POST">
- <textarea name="decklist" placeholder="<?php echo $placeholder; ?>" rows="10" cols="40" style="max-width: 100%;"></textarea>
- <button>Submit</button>
- </form>
- <hr>
- <a href="https://git.dweipert.de/mtg-pdf">Source</a>
- </body>
-</html>