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
23 lines
835 B
PHP
23 lines
835 B
PHP
<?php
|
|
$viewerUrl = 'https://mobileview.dev.cadline.hu';
|
|
$authorization = 'Authorization: al-jHfdBNh458754bnfgjhsdfj834j54bndFjSFsdb348hN98jngUnjngRTbjngjn4x';
|
|
$fileId = $_GET['id'];
|
|
|
|
$storeResult = array();
|
|
$storeResult['fileName'] = $fileId . '.stx';
|
|
|
|
$storeJsonContent = json_encode($storeResult);
|
|
|
|
$curl = curl_init($viewerUrl . '/api/statistic/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);
|
|
}
|