1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-09-20 01:03:26 +01:00

First proof of concept.

This commit is contained in:
Markus Birth 2017-11-03 23:08:06 +01:00
parent 1bad4bc10d
commit 2786b4ceda
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -1,2 +1,16 @@
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$input_xml = file_get_contents('php://input', false, NULL, -1, 8192); // read max 8 KiB
echo "Input length is " . strlen($input_xml) . " Bytes." . PHP_EOL;
echo $input_xml . PHP_EOL;
// TODO: Check if it's XML
// If so: Store a copy for re-parsing (or to print out and hang up on a wall)
// Then parse XML into database
exit;
}
echo "Here is the normal page.";
// TODO: Show statistics from database