query('CREATE TABLE IF NOT EXISTS Data (Id integer PRIMARY KEY AUTOINCREMENT, JsonData TEXT, Timestamp DATETIME DEFAULT CURRENT_TIMESTAMP )'); $query = $db->query("INSERT INTO Data (JsonData) VALUES ('$JsonData')"); break; case "PushData": $db=new SQLite3("Log.sqlite"); $LogData = base64_encode(file_get_contents('php://input')); $db->query('CREATE TABLE IF NOT EXISTS Log(Id integer PRIMARY KEY AUTOINCREMENT, LogData TEXT, Compress TEXT, Timestamp DATETIME DEFAULT CURRENT_TIMESTAMP )'); $query = $db->query("INSERT INTO Log (JsonData, Compress) VALUES ('$LogData', '".@$_REQUEST["Action"]."')"); break; default: ?>

Illegal Action!