From 028ce809cf022d6250f97e88956d0ddacd1b3fae Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 4 Jul 2024 07:09:33 +0200 Subject: [PATCH] we don't need the openssl messages anymore --- application/controllers/Lotw.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index c92aaa466..d43e4e5da 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -44,11 +44,6 @@ class Lotw extends CI_Controller { $this->load->model('user_model'); if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } - // Fire OpenSSL missing error if not found - if (!extension_loaded('openssl')) { - echo "You must install php OpenSSL for LoTW functions to work"; - } - // Load required models for page generation $this->load->model('Lotw_model'); @@ -108,12 +103,7 @@ class Lotw extends CI_Controller { $this->load->model('dxcc'); if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } - // Fire OpenSSL missing error if not found - if (!extension_loaded('openssl')) { - echo "You must install php OpenSSL for LoTW functions to work"; - } - - // create folder to store certs while processing + // create folder to store certs while processing if (!file_exists('./uploads/lotw/certs')) { mkdir('./uploads/lotw/certs', 0755, true); } @@ -190,11 +180,6 @@ class Lotw extends CI_Controller { $this->load->model('user_model'); $this->user_model->authorize(2); - // Fire OpenSSL missing error if not found - if (!extension_loaded('openssl')) { - echo "You must install php OpenSSL for LoTW functions to work"; - } - // set the last run in cron table for the correct cron id $this->load->model('cron_model'); $this->cron_model->set_last_run($this->router->class.'_'.$this->router->method);