1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-11-14 00:46:45 +00:00

Small CSS changes. Enable live upload.

This commit is contained in:
Markus Birth 2017-12-16 23:06:19 +01:00
parent 30b5d08e34
commit d0b3b544bf
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 10 additions and 1 deletions

View File

@ -18,3 +18,7 @@ td.ref {
td.empty { td.empty {
color: silver; color: silver;
} }
tr:hover {
background-color: #ddd;
}

View File

@ -35,7 +35,12 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$bkup_filename = $bkup_dir . sprintf('%f-%04x.xml', microtime(true), rand(0, 65535)); $bkup_filename = $bkup_dir . sprintf('%f-%04x.xml', microtime(true), rand(0, 65535));
file_put_contents($bkup_filename, $input_xml); 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; exit;
} }