From d0b3b544bf64c41ec08ccc8c065ffe334a911e4c Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Sat, 16 Dec 2017 23:06:19 +0100 Subject: [PATCH] Small CSS changes. Enable live upload. --- assets/style.css | 4 ++++ index.php | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/assets/style.css b/assets/style.css index 433c469..1d98c7c 100755 --- a/assets/style.css +++ b/assets/style.css @@ -18,3 +18,7 @@ td.ref { td.empty { color: silver; } + +tr:hover { + background-color: #ddd; +} diff --git a/index.php b/index.php index f577796..99e5a4b 100644 --- a/index.php +++ b/index.php @@ -35,7 +35,12 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { $bkup_filename = $bkup_dir . sprintf('%f-%04x.xml', microtime(true), rand(0, 65535)); file_put_contents($bkup_filename, $input_xml); - // TODO: Parse XML into database + // Parse XML into database + $g = GotuObject::fromXmlParser($xp); + if ($g->tv) { + $result = $sqlw->addGotu($g, $file_date); + // I don't care if we can use the data or not. Maybe we can use it later (backup copy). + } exit; }