Merge pull request #225 from g0wfv/develop
Fix #213: Eqsl errors in download may not be handled correctly
这个提交包含在:
当前提交
282a099a02
共有 6 个文件被更改,包括 33 次插入 和 13 次删除
|
|
@ -109,6 +109,7 @@ class eqsl extends CI_Controller {
|
|||
$q = $query->row();
|
||||
$data['user_eqsl_name'] = $q->user_eqsl_name;
|
||||
$data['user_eqsl_password'] = $q->user_eqsl_password;
|
||||
$data['user_eqsl_qth_nickname'] = $q->user_eqsl_qth_nickname;
|
||||
|
||||
// Get URL for downloading the eqsl.cc inbox
|
||||
$query = $query = $this->db->query('SELECT eqsl_download_url FROM config');
|
||||
|
|
@ -129,6 +130,11 @@ class eqsl extends CI_Controller {
|
|||
$eqsl_url .= "UserName=" . $data['user_eqsl_name'];
|
||||
$eqsl_url .= "&Password=" . $data['user_eqsl_password'];
|
||||
|
||||
if ($data['user_eqsl_qth_nickname'] != '')
|
||||
{
|
||||
$eqsl_url .= "&QTHNickname=" . $data['user_eqsl_qth_nickname'];
|
||||
}
|
||||
|
||||
$eqsl_url .= "&RcvdSince=" . $eqsl_last_qsl_date;
|
||||
|
||||
// Pull back only confirmations
|
||||
|
|
|
|||
|
|
@ -214,6 +214,12 @@ class User extends CI_Controller {
|
|||
$data['user_eqsl_password'] = $q->user_eqsl_password;
|
||||
}
|
||||
|
||||
if($this->input->post('user_eqsl_qth_nickname')) {
|
||||
$data['user_eqsl_qth_nickname'] = $this->input->post('user_eqsl_qth_nickname');
|
||||
} else {
|
||||
$data['user_eqsl_qth_nickname'] = $q->user_eqsl_qth_nickname;
|
||||
}
|
||||
|
||||
$this->load->view('user/edit', $data);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,7 +124,8 @@ class User_Model extends CI_Model {
|
|||
'user_lastname' => $fields['user_lastname'],
|
||||
'user_timezone' => $fields['user_timezone'],
|
||||
'user_lotw_name' => $fields['user_lotw_name'],
|
||||
'user_eqsl_name' => $fields['user_eqsl_name']
|
||||
'user_eqsl_name' => $fields['user_eqsl_name'],
|
||||
'user_eqsl_qth_nickname' => $fields['user_eqsl_qth_nickname']
|
||||
);
|
||||
|
||||
// Check to see if the user is allowed to change user levels
|
||||
|
|
@ -220,6 +221,7 @@ class User_Model extends CI_Model {
|
|||
'user_locator' => $u->row()->user_locator,
|
||||
'user_lotw_name' => $u->row()->user_lotw_name,
|
||||
'user_eqsl_name' => $u->row()->user_eqsl_name,
|
||||
'user_eqsl_qth_nickname' => $u->row()->user_eqsl_qth_nickname,
|
||||
'user_hash' => $this->_hash($u->row()->user_id."-".$u->row()->user_type)
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<tr>
|
||||
<td><input type="radio" name="eqslimport" id="fetch" value="fetch" /> Pull eQSL data for me</td>
|
||||
<td>
|
||||
<p>Cloudlog will use the eQSL username an password stored in your user profile to download confirmations from eQSL for you. We will only download confirmations received since your last eQSL confirmed QSO.</p>
|
||||
<p>Cloudlog will use the eQSL username and password stored in your user profile to download confirmations from eQSL for you. We will only download confirmations received since your last eQSL confirmed QSO.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<tr>
|
||||
<td><input type="radio" name="lotwimport" id="fetch" value="fetch" /> Pull LoTW data for me</td>
|
||||
<td>
|
||||
<p>Cloudlog will use the LoTW username an password stored in your user profile to download a report from LoTW for you. The report Cloudlog downloads will have all confirmations since your last LoTW confirmation, up until now.</p>
|
||||
<p>Cloudlog will use the LoTW username and password stored in your user profile to download a report from LoTW for you. The report Cloudlog downloads will have all confirmations since your last LoTW confirmation, up until now.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -115,6 +115,12 @@ $this->load->helper('form');
|
|||
<?php } ?>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>eQSL.cc QTH Nickname</td>
|
||||
<td><input type="text" name="user_eqsl_qth_nickname" value="<?php if(isset($user_eqsl_qth_nickname)) { echo $user_eqsl_qth_nickname; } ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" />
|
||||
<div class="actions"><input class="btn primary" type="submit" value="Update profile" /></div>
|
||||
|
|
|
|||
正在加载…
在新工单中引用