Add TagX!

This commit is contained in:
Adrian Heine 2022-11-23 17:19:39 +01:00
parent ec1672e395
commit e0d069a6ad

View file

@ -20,6 +20,8 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$data[$key] = $v;
} else if (preg_match('/^date_(\d\d\d\d-\d\d-\d\d)$/', $key, $matches) && $v == "on") {
$data['dates'][] = $matches[1];
} else if ($key == "tagx" && $v == "on") {
$data['dates'][] = $key;
} else {
echo "Invalid value " . htmlspecialchars($v) . " for key " . htmlspecialchars($key);
exit;