From 14048c9517eda25c3b2eb53c48ccc5a44115737b Mon Sep 17 00:00:00 2001 From: int2001 Date: Sat, 4 Jan 2025 11:18:14 +0000 Subject: [PATCH] Found an old leftover which was never used --- application/controllers/Statistics.php | 44 ------- application/models/Logbook_model.php | 6 - application/views/statistics/custom.php | 89 -------------- .../views/statistics/custom_result.php | 115 ------------------ 4 files changed, 254 deletions(-) delete mode 100644 application/views/statistics/custom.php delete mode 100644 application/views/statistics/custom_result.php diff --git a/application/controllers/Statistics.php b/application/controllers/Statistics.php index cbe4400f8..facb023c5 100644 --- a/application/controllers/Statistics.php +++ b/application/controllers/Statistics.php @@ -33,50 +33,6 @@ class Statistics extends CI_Controller { $this->load->view('interface_assets/footer'); } - function custom() { - - $this->load->model('user_model'); - if(!$this->user_model->authorize($this->config->item('auth_mode'))) { - if($this->user_model->validate_session()) { - $this->user_model->clear_session(); - show_error('Access denied

Click here to log in as another user', 403); - } else { - redirect('user/login'); - } - } - - $this->load->model('logbook_model'); - - $data['page_title'] = __("Custom Statistics"); - $data['modes'] = $this->logbook_model->get_modes(); - - $this->load->helper(array('form', 'url')); - - $this->load->library('form_validation'); - - $this->form_validation->set_rules('start_date', 'Start Date', 'required'); - $this->form_validation->set_rules('end_date', 'End Date', 'required'); - - if ($this->form_validation->run() == FALSE) - { - $this->load->view('interface_assets/header', $data); - $this->load->view('statistics/custom', $data); - $this->load->view('interface_assets/footer'); - } - else - { - - $this->load->model('stats'); - - $data['result'] = $this->stats->result(); - - $this->load->view('interface_assets/header', $data); - $this->load->view('statistics/custom_result'); - $this->load->view('interface_assets/footer'); - } - - } - function get_years() { $this->load->model('logbook_model'); $totals_year = $this->logbook_model->totals_year(); diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 5b34e11c1..00e486ca1 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3122,12 +3122,6 @@ class Logbook_model extends CI_Model { } } - /* Return the list of modes in the logbook */ - function get_modes() { - $query = $this->db->query('select distinct(COL_MODE) from ' . $this->config->item('table_name') . ' order by COL_MODE'); - return $query; - } - /* Return total number of QSOs per band */ function total_bands($yr = 'All') { $this->load->model('logbooks_model'); diff --git a/application/views/statistics/custom.php b/application/views/statistics/custom.php deleted file mode 100644 index 0c12fa035..000000000 --- a/application/views/statistics/custom.php +++ /dev/null @@ -1,89 +0,0 @@ - - -

- -

- - -

- - - -

- -
- -

- - - - - -
-

- - - - - - - - - - -
-
- -
-

- 6m - 2m - 70cm - 23cm - 3cm - -

- SSB - CW - Data - FM - AM - result() as $row){ - printf('%s', $row->COL_MODE, $row->COL_MODE, $row->COL_MODE); - } - ?> -
- -
-

- -
- -
- - - -
- - -
-

-
- -
diff --git a/application/views/statistics/custom_result.php b/application/views/statistics/custom_result.php deleted file mode 100644 index 2c3878b10..000000000 --- a/application/views/statistics/custom_result.php +++ /dev/null @@ -1,115 +0,0 @@ - - -
- -

- - -

- - - - - -

- -
- -

- - - - - -
-

- - - - - - - - - - -
-
- -
-

- 6m - 2m - 70cm - 23cm - 3cm - -

- SSB - CW - Data - FM - AM -
- -
-

- -
- -
- - - -
- - -
- - - - - - - - - - - - - result() as $row) { ?> - '; ?> - - - - - - - COL_SAT_NAME != null) { ?> - - - - - - - - -
COL_TIME_ON); echo date('d/m/y', $timestamp); ?>COL_TIME_ON); echo date('H:i', $timestamp); ?>COL_PRIMARY_KEY; ?>">COL_CALL); ?>COL_MODE; ?>COL_RST_SENT; ?>COL_RST_RCVD; ?>COL_SAT_NAME; ?>COL_BAND; ?>COL_COUNTRY; ?>
-
- -