[LoTW] Fixed typos
这个提交包含在:
父节点
f13657aaa9
当前提交
1c4c1694cc
共有 3 个文件被更改,包括 11 次插入 和 11 次删除
|
|
@ -9,7 +9,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Folder location for storing P12 certficiate files on the system
|
| Folder location for storing P12 certicate files on the system
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This folder must be outside of your www root for security reasons
|
| This folder must be outside of your www root for security reasons
|
||||||
|
|
|
||||||
|
|
@ -153,23 +153,23 @@ class Lotw extends CI_Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check to see if certificate is already in the system
|
// Check to see if certificate is already in the system
|
||||||
$new_certficiate = $this->LotwCert->find_cert($info['issued_callsign'], $dxcc, $this->session->userdata('user_id'));
|
$new_certificate = $this->LotwCert->find_cert($info['issued_callsign'], $dxcc, $this->session->userdata('user_id'));
|
||||||
|
|
||||||
if($new_certficiate == 0) {
|
if($new_certificate == 0) {
|
||||||
// New Certificate Store in Database
|
// New Certificate Store in Database
|
||||||
|
|
||||||
// Store Certificate Data into MySQL
|
// Store Certificate Data into MySQL
|
||||||
$this->LotwCert->store_certificate($this->session->userdata('user_id'), $info['issued_callsign'], $dxcc, $info['validFrom'], $info['validTo_Date'], $info['qso-first-date'], $info['qso-end-date'], $info['pem_key'], $info['general_cert']);
|
$this->LotwCert->store_certificate($this->session->userdata('user_id'), $info['issued_callsign'], $dxcc, $info['validFrom'], $info['validTo_Date'], $info['qso-first-date'], $info['qso-end-date'], $info['pem_key'], $info['general_cert']);
|
||||||
|
|
||||||
// Cert success flash message
|
// Cert success flash message
|
||||||
$this->session->set_flashdata('Success', $info['issued_callsign'].' Certficiate Imported.');
|
$this->session->set_flashdata('Success', $info['issued_callsign'].' Certificate Imported.');
|
||||||
} else {
|
} else {
|
||||||
// Certficiate is in the system time to update
|
// Certificate is in the system time to update
|
||||||
|
|
||||||
$this->LotwCert->update_certficiate($this->session->userdata('user_id'), $info['issued_callsign'], $dxcc, $info['validFrom'], $info['validTo_Date'], $info['pem_key'], $info['general_cert']);
|
$this->LotwCert->update_certificate($this->session->userdata('user_id'), $info['issued_callsign'], $dxcc, $info['validFrom'], $info['validTo_Date'], $info['pem_key'], $info['general_cert']);
|
||||||
|
|
||||||
// Cert success flash message
|
// Cert success flash message
|
||||||
$this->session->set_flashdata('Success', $info['issued_callsign'].' Certficiate Updated.');
|
$this->session->set_flashdata('Success', $info['issued_callsign'].' Certificate Updated.');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -378,9 +378,9 @@ class Lotw extends CI_Controller {
|
||||||
|
|
||||||
$this->load->model('LotwCert');
|
$this->load->model('LotwCert');
|
||||||
|
|
||||||
$this->LotwCert->delete_certficiate($this->session->userdata('user_id'), $cert_id);
|
$this->LotwCert->delete_certificate($this->session->userdata('user_id'), $cert_id);
|
||||||
|
|
||||||
$this->session->set_flashdata('Success', 'Certficiate Deleted.');
|
$this->session->set_flashdata('Success', 'Certificate Deleted.');
|
||||||
|
|
||||||
redirect('/lotw/');
|
redirect('/lotw/');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ class LotwCert extends CI_Model {
|
||||||
$this->db->insert('lotw_certs', $data);
|
$this->db->insert('lotw_certs', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_certficiate($user_id, $callsign, $dxcc, $date_created, $date_expires, $cert_key, $general_cert) {
|
function update_certificate($user_id, $callsign, $dxcc, $date_created, $date_expires, $cert_key, $general_cert) {
|
||||||
$data = array(
|
$data = array(
|
||||||
'cert_dxcc' => $dxcc,
|
'cert_dxcc' => $dxcc,
|
||||||
'date_created' => $date_created,
|
'date_created' => $date_created,
|
||||||
|
|
@ -67,7 +67,7 @@ class LotwCert extends CI_Model {
|
||||||
$this->db->update('lotw_certs', $data);
|
$this->db->update('lotw_certs', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
function delete_certficiate($user_id, $lotw_cert_id) {
|
function delete_certificate($user_id, $lotw_cert_id) {
|
||||||
$this->db->where('lotw_cert_id', $lotw_cert_id);
|
$this->db->where('lotw_cert_id', $lotw_cert_id);
|
||||||
$this->db->where('user_id', $user_id);
|
$this->db->where('user_id', $user_id);
|
||||||
$this->db->delete('lotw_certs');
|
$this->db->delete('lotw_certs');
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用