Browse Source

Add TagX!

main
Adrian Heine 2 years ago
parent
commit
e0d069a6ad
  1. 2
      index.php

2
index.php

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

Loading…
Cancel
Save