mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
fixed callbytxt errors when getting qso info
This commit is contained in:
@@ -16,7 +16,7 @@ $config['app_name'] = "Cloudlog";
|
||||
$config['app_version'] = "0.1";
|
||||
$config['directory'] = "logbook";
|
||||
|
||||
$config['callbook'] = "qrz"; // Options are qrz or callbytxt
|
||||
$config['callbook'] = "callbytxt"; // Options are qrz or callbytxt
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@@ -152,7 +152,7 @@ class Logbook extends CI_Controller {
|
||||
// Lookup using Callbytxt
|
||||
$this->load->library('callbytxt');
|
||||
|
||||
$callbook = $this->callbytxt->callsign($qra);
|
||||
$callbook = $this->callbytxt->callsign($callsign);
|
||||
|
||||
echo $callbook['city'];
|
||||
}
|
||||
@@ -200,7 +200,7 @@ class Logbook extends CI_Controller {
|
||||
// Lookup using Callbytxt
|
||||
$this->load->library('callbytxt');
|
||||
|
||||
$callbook = $this->callbytxt->callsign($qra);
|
||||
$callbook = $this->callbytxt->callsign($callsign);
|
||||
|
||||
echo $callbook['name'];
|
||||
}
|
||||
|
||||
@@ -5,13 +5,11 @@ class Welcome extends CI_Controller {
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->load->library('qrz');
|
||||
|
||||
$qrz_session_key = $this->qrz->set_session($this->config->item('qrz_username'), $this->config->item('qrz_password'));
|
||||
$this->load->library('callbytxt');
|
||||
|
||||
echo $this->session->userdata('qrz_session_key');
|
||||
|
||||
$data['callsign'] = $this->qrz->search("m3php", $this->session->userdata('qrz_session_key'));
|
||||
$callbook = $this->callbytxt->callsign('m3php');
|
||||
|
||||
print_r($callbook);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,6 @@ class Qrz {
|
||||
$data['long'] = (string) $xml->Callsign->lon;
|
||||
$data['iota'] = (string) $xml->Callsign->iota;
|
||||
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user