Moved Clublog lookup function to Clublog controller

这个提交包含在:
Peter Goodhall 2019-08-16 12:11:46 +01:00
父节点 02c10858c0
当前提交 06297e76e5
共有 2 个文件被更改,包括 14 次插入0 次删除

查看文件

@ -111,6 +111,18 @@ class Clublog extends CI_Controller {
$this->load->model('clublog_model');
$this->clublog_model->mark_all_qsos_notsent();
}
// Find DXCC
function find_dxcc($callsign) {
// Live lookup against Clublogs API
$url = "https://secure.clublog.org/dxcc?call=".$callsign."&api=a11c3235cd74b88212ce726857056939d52372bd&full=1";
$json = file_get_contents($url);
$data = json_decode($json, TRUE);
// echo ucfirst(strtolower($data['Name']));
return $data;
}
}

查看文件

@ -165,6 +165,8 @@ class Logbook extends CI_Controller {
* Function: jsonlookupgrid
*
* Usage: Used to look up gridsquares when creating a QSO to check whether its needed or not
* the $type variable is only used for satellites, set this to SAT.
*
*/
function jsonlookupgrid($gridsquare, $type, $band, $mode) {
$return = [