Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sunil committed Oct 9, 2024
1 parent 5a91cab commit e06d7f1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions php/rest/solmosaic.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

/**************************************************************************
Copyright (C) Chicken Katsu 2013 -2024
This code is protected by copyright under the terms of the
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License
http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode
For licenses that allow for commercial use please contact [email protected]
// USE AT YOUR OWN RISK - NO GUARANTEES OR ANY FORM ARE EITHER EXPRESSED OR IMPLIED
**************************************************************************/

$home = "../..";
require_once "$home/php/fragments/app-common.php";
require_once cAppGlobals::$spaceInc . "/misc/pichighlight.php";
require_once cAppGlobals::$spaceInc . "/misc/indexes.php";
require_once cAppGlobals::$ckPhpInc . "/common.php";

cDebug::check_GET_or_POST();


$sUser = cAuth::must_get_user();
$sSol = cHeader::get(cSpaceUrlParams::SOL, true, true);
$sMission = cHeader::get(cSpaceUrlParams::MISSION, true);
$oResult = cSpaceImageMosaic::get_sol_high_mosaic($sSol);


//############################### response ####################
include cAppGlobals::$appPhpFragments . "/rest_header.php";
$aOut = []; {
$aOut[cSpaceUrlParams::SOL] = $sSol;
$aOut[cSpaceUrlParams::MISSION] = $sMission;
$aOut[cAppUrlParams::MOSAIC_PARAM] = $oResult->key;
}
cCommon::write_json((object)$aOut);

0 comments on commit e06d7f1

Please sign in to comment.