diff --git a/application/controllers/Logbook.php b/application/controllers/Logbook.php
index 80db8bcf..654d92ee 100755
--- a/application/controllers/Logbook.php
+++ b/application/controllers/Logbook.php
@@ -139,7 +139,7 @@ class Logbook extends CI_Controller {
}
- $callbook = $this->logbook_model->loadCallBook($callsign, $this->config->item('personal'));
+ $callbook = $this->logbook_model->loadCallBook($callsign, $this->config->item('use_fullname'));
if (isset($callbook))
@@ -491,8 +491,8 @@ class Logbook extends CI_Controller {
$qrz_session_key = $this->qrz->session($this->config->item('qrz_username'), $this->config->item('qrz_password'));
$this->session->set_userdata('qrz_session_key', $qrz_session_key);
}
- echo("Part 1: ". (int)$this->config->item('personal'));
- $data['callsign'] = $this->qrz->search($id, $this->session->userdata('qrz_session_key'), $this->config->item('personal'));
+
+ $data['callsign'] = $this->qrz->search($id, $this->session->userdata('qrz_session_key'), $this->config->item('use_fullname'));
}
// There's no hamli integration? Disabled for now.
@@ -548,8 +548,8 @@ class Logbook extends CI_Controller {
$qrz_session_key = $this->qrz->session($this->config->item('qrz_username'));
$this->session->set_userdata('qrz_session_key', $qrz_session_key);
}
- echo ("Part 2: ". $this->config->item('personal'). "
");
- $data['callsign'] = $this->qrz->search($id, $this->session->userdata('qrz_session_key'), $this->config->item('qrz_password'), $this->config->item('personal'));
+
+ $data['callsign'] = $this->qrz->search($id, $this->session->userdata('qrz_session_key'), $this->config->item('qrz_password'), $this->config->item('use_fullname'));
} else {
// Lookup using hamli
$this->load->library('hamli');
diff --git a/application/libraries/Qrz.php b/application/libraries/Qrz.php
index afbc3884..0ab43b1c 100755
--- a/application/libraries/Qrz.php
+++ b/application/libraries/Qrz.php
@@ -54,11 +54,8 @@ class Qrz {
}
- public function search($callsign, $key, $private="dog")
+ public function search($callsign, $key, $use_fullname)
{
- echo("Callsign: ".$callsign."
");
- echo("key: ".$key."
");
- echo("FOOOOOO: ". $private."
");
$data = null;
try {
// URL to the XML Source
@@ -79,8 +76,8 @@ class Qrz {
// Return Required Fields
$data['callsign'] = (string)$xml->Callsign->call;
- if ($private === true) {
- $data['name'] = (string)$xml->Callsign->fname . ' AAAA ' . (string)$xml->Callsign->name;
+ if ($use_fullname === true) {
+ $data['name'] = (string)$xml->Callsign->fname . ' ' . (string)$xml->Callsign->name;
} else {
$data['name'] = (string)$xml->Callsign->fname;
}
diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php
index 9cbca2e1..b2c9678e 100755
--- a/application/models/Logbook_model.php
+++ b/application/models/Logbook_model.php
@@ -2168,7 +2168,7 @@ class Logbook_model extends CI_Model {
}
}
- public function loadCallBook($callsign, $personal=false)
+ public function loadCallBook($callsign, $use_fullname=false)
{
$callbook = null;
try {
@@ -2182,10 +2182,8 @@ class Logbook_model extends CI_Model {
}
- $personal = "foo";
- echo ("part 3: ". $personal. "
");
- $callbook = $this->qrz->search($callsign, $this->session->userdata('qrz_session_key'), $this->config->item('qrz_password'), "foobar");
- echo ("part 4: ". $personal. "
");
+
+ $callbook = $this->qrz->search($callsign, $this->session->userdata('qrz_session_key'), $use_fullname);
}
if ($this->config->item('callbook') == "hamqth" && $this->config->item('hamqth_username') != null && $this->config->item('hamqth_password') != null) {
diff --git a/install/config/config.php b/install/config/config.php
index 9be40323..008e9004 100644
--- a/install/config/config.php
+++ b/install/config/config.php
@@ -40,10 +40,21 @@ $config['display_freq'] = false;
|
| 'qrz_username' QRZ.com user login
| 'qrz_password' QRZ.com user password
+| 'use_fullname' Get full names from QRZ, may not be GDPR compliant
*/
$config['qrz_username'] = "";
$config['qrz_password'] = "";
+$config['use_fullname'] = false;
+
+
+/*
+|--------------------------------------------------------------------------
+| Are we running this on a personal server? If we are, GDPR laws
+| prevent us from storing personal information.
+|
+*/
+$config['personal'] = false;
/*
|--------------------------------------------------------------------------