common_cadline_libraries (CRM hardlock/db/users classes; upstream cadline_web/cadcommonlib), maintenance/ (ARCHLine.XP license backend; upstream cadline_web/maintenance), maintenance2/. Vetted live files (byte-truth); upstream repos in PROVENANCE.md. NOTE: could be git submodules — kept as live files for byte-fidelity. Signed-off-by: LÁZÁR Imre <imre@illusion.hu> Assisted-by: claude-code@claude-opus-4-8
32 lines
1.1 KiB
PHP
32 lines
1.1 KiB
PHP
<?php
|
|
$viewerUrl = 'https://mobileview.dev.cadline.hu';
|
|
$authorization = 'Authorization: al-jHfdBNh458754bnfgjhsdfj834j54bndFjSFsdb348hN98jngUnjngRTbjngjn4x';
|
|
$fileId = $_GET['id'];
|
|
$build = $_GET['build'];
|
|
$serial = $_GET['serial'];
|
|
$ver = $_GET['ver'];
|
|
|
|
$storeResult = array();
|
|
$storeResult['id'] = $fileId;
|
|
$storeResult['build'] = $build;
|
|
$storeResult['serial'] = $serial;
|
|
$storeResult['ver'] = $ver;
|
|
$storeResult['fileName'] = $fileId . '.crh';
|
|
|
|
$storeJsonContent = json_encode($storeResult);
|
|
|
|
$curl = curl_init($viewerUrl . '/api/crash/store');
|
|
curl_setopt($curl, CURLOPT_HEADER, false);
|
|
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
|
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-type: application/json", $authorization));
|
|
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'PUT');
|
|
curl_setopt($curl, CURLOPT_POSTFIELDS, $storeJsonContent);
|
|
|
|
$json_store_response = curl_exec($curl);
|
|
curl_close($curl);
|
|
if ($json_store_response) {
|
|
$storeResponse = json_decode($json_store_response);
|
|
}
|
|
|
|
echo $json_store_response;
|