From 56c689af6abc2c7b94bd472dc57f654af44cf8a7 Mon Sep 17 00:00:00 2001 From: Tristan Schneider Date: Sat, 9 Jan 2021 23:53:23 +0100 Subject: [PATCH] archive creation assistant --- admin.php | 107 +++++++++++++++++++++++++++++++++++++++++++- archive_creator.php | 21 +++++++++ 2 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 archive_creator.php diff --git a/admin.php b/admin.php index 48461f9..adb0538 100644 --- a/admin.php +++ b/admin.php @@ -13,6 +13,16 @@ $config_data = json_decode($raw_json_config, false); + style)) { + print(""); + } + ?> +

headline ?? "One Word Each"); ?> - Administration

+

Startseite

+ - Du bist angemeldet. +

Archiv erstellen

+ + Bisherige Archive: + + + Neues Archiv:
+
+
+ Vorschau
+ Dateiname:
+ Linktext:
+ Inhalt:
+ @@ -70,5 +96,84 @@ $config_data = json_decode($raw_json_config, false); endif; ?>

+ + + diff --git a/archive_creator.php b/archive_creator.php new file mode 100644 index 0000000..d519a93 --- /dev/null +++ b/archive_creator.php @@ -0,0 +1,21 @@ +\n".$linktext.""; + file_put_contents("data/archive-links.txt", $html_link, FILE_APPEND); + http_response_code(200); + print("Neues Archiv erstellt."); +} + +?>