mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[ADIF Backup] Added so that ADIF can be backed up with cron and api key
This commit is contained in:
@@ -20,14 +20,14 @@ class Backup extends CI_Controller {
|
||||
}
|
||||
|
||||
/* Gets all QSOs and Dumps them to logbook.adi */
|
||||
public function adif(){
|
||||
public function adif($key){
|
||||
$this->load->helper('file');
|
||||
// Set memory limit to unlimited to allow heavy usage
|
||||
ini_set('memory_limit', '-1');
|
||||
|
||||
$this->load->model('adif_data');
|
||||
|
||||
$data['qsos'] = $this->adif_data->export_all();
|
||||
$data['qsos'] = $this->adif_data->export_all($key);
|
||||
|
||||
if ( ! write_file('backup/logbook.adi', $this->load->view('backup/exportall', $data, true)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user