From a940ab5b4bcba6c7cb2752d54fa1f8a72b3e1a4f Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Thu, 11 Feb 2016 00:01:53 +0000 Subject: [PATCH] removed test code --- application/controllers/adif.php | 38 -------------------------------- 1 file changed, 38 deletions(-) diff --git a/application/controllers/adif.php b/application/controllers/adif.php index 960a0102b..f41a7c430 100644 --- a/application/controllers/adif.php +++ b/application/controllers/adif.php @@ -106,13 +106,8 @@ class adif extends CI_Controller { break; }; - //echo date('Y-m-d', strtotime($record['qso_date']))."
"; - //echo date('H:m', strtotime($record['time_on']))."
"; - $this->logbook_model->import($record); - //echo $record["call"]."
"; - //print_r($record); }; unlink('./uploads/'.$data['upload_data']['file_name']); @@ -124,39 +119,6 @@ class adif extends CI_Controller { } } - - - function test() { - // Set memory limit to unlimited to allow heavy usage - ini_set('memory_limit', '-1'); - set_time_limit(0); - - $this->load->model('logbook_model'); - - $this->load->library('adif_parser'); - - $this->adif_parser->load_from_file('./uploads/2e0sql.ADI'); - - $this->adif_parser->initialize(); - - while($record = $this->adif_parser->get_record()) - { - if(count($record) == 0) - { - break; - }; - - //echo date('Y-m-d', strtotime($record['qso_date']))."
"; - //echo date('H:m', strtotime($record['time_on']))."
"; - - $this->logbook_model->import($record); - - //echo $record["call"]."
"; - //print_r($record); - }; - - } - } /* End of file adif.php */