Added spotlist with enrichment and filtering

This commit is contained in:
int2001
2023-07-21 06:50:56 +00:00
parent 45161142ef
commit 26fe064a93
2 changed files with 54 additions and 0 deletions

View File

@@ -11,6 +11,16 @@ class Dxcluster extends CI_Controller {
}
function spots($band,$age = 60) {
$calls_found=$this->logbook_model->dxc_spotlist($band, $age);
header('Content-Type: application/json');
if ($calls_found) {
echo json_encode($calls_found, JSON_PRETTY_PRINT);
} else {
echo '{ "error": "not found" }';
}
}
function qrg_lookup($qrg) {
$call_found=$this->logbook_model->dxc_qrg_lookup($this->security->xss_clean($qrg));
header('Content-Type: application/json');