diff --git a/application/config/lotw.php b/application/config/lotw.php index 650b53d9..08ddc4ff 100644 --- a/application/config/lotw.php +++ b/application/config/lotw.php @@ -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 diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 33eee1ee..e4a6debb 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -153,23 +153,23 @@ class Lotw extends CI_Controller { } // 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 // 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']); // 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 { - // 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 - $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->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/'); } diff --git a/application/models/LotwCert.php b/application/models/LotwCert.php index 238b3449..185e3fa2 100644 --- a/application/models/LotwCert.php +++ b/application/models/LotwCert.php @@ -52,7 +52,7 @@ class LotwCert extends CI_Model { $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( 'cert_dxcc' => $dxcc, 'date_created' => $date_created, @@ -67,7 +67,7 @@ class LotwCert extends CI_Model { $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('user_id', $user_id); $this->db->delete('lotw_certs');