Implement check if LotW cert itself is valid to
use for signing. If not skip.
这个提交包含在:
父节点
a0d551d3c3
当前提交
1e32fbed3f
共有 1 个文件被更改,包括 12 次插入 和 0 次删除
|
|
@ -229,6 +229,18 @@ class Lotw extends CI_Controller {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if LotW certificate itself is valid
|
||||||
|
// Validty of QSO dates will be checked later
|
||||||
|
$current_date = date('Y-m-d H:i:s');
|
||||||
|
if ($current_date <= $data['lotw_cert_info']->date_created) {
|
||||||
|
echo $data['lotw_cert_info']->callsign.": LotW certificate not valid yet!";
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if ($current_date >= $data['lotw_cert_info']->date_expires) {
|
||||||
|
echo $data['lotw_cert_info']->callsign.": LotW certificate expired!";
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$this->load->model('Dxcc');
|
$this->load->model('Dxcc');
|
||||||
$data['station_profile_dxcc'] = $this->Dxcc->lookup_country($data['lotw_cert_info']->cert_dxcc);
|
$data['station_profile_dxcc'] = $this->Dxcc->lookup_country($data['lotw_cert_info']->cert_dxcc);
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用