mirror of
https://github.com/mbirth/tcl_update_db.git
synced 2024-12-27 04:54:08 +00:00
Small CSS changes. Enable live upload.
This commit is contained in:
parent
30b5d08e34
commit
d0b3b544bf
@ -18,3 +18,7 @@ td.ref {
|
|||||||
td.empty {
|
td.empty {
|
||||||
color: silver;
|
color: silver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user