mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
set last run
This commit is contained in:
@@ -25,6 +25,9 @@ class Clublog extends CI_Controller {
|
||||
public function upload() {
|
||||
$this->load->model('clublog_model');
|
||||
|
||||
$this->load->model('cron_model');
|
||||
$this->cron_model->set_last_run('upload_clublog');
|
||||
|
||||
$users = $this->clublog_model->get_clublog_users();
|
||||
|
||||
foreach ($users as $user) {
|
||||
|
||||
@@ -212,6 +212,8 @@ class Qrz extends CI_Controller {
|
||||
$this->load->model('user_model');
|
||||
$this->load->model('logbook_model');
|
||||
|
||||
$this->load->model('cron_model');
|
||||
$this->cron_model->set_last_run('download_qrz');
|
||||
|
||||
$api_keys = $this->logbook_model->get_qrz_apikeys();
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@ class Update extends CI_Controller {
|
||||
|
||||
public function index()
|
||||
{
|
||||
$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'); }
|
||||
|
||||
$data['page_title'] = "Updates";
|
||||
$this->load->view('interface_assets/header', $data);
|
||||
$this->load->view('update/index');
|
||||
@@ -352,6 +355,10 @@ class Update extends CI_Controller {
|
||||
}
|
||||
|
||||
public function lotw_users() {
|
||||
|
||||
$this->load->model('cron_model');
|
||||
$this->cron_model->set_last_run('lotw_activity');
|
||||
|
||||
$mtime = microtime();
|
||||
$mtime = explode(" ",$mtime);
|
||||
$mtime = $mtime[1] + $mtime[0];
|
||||
@@ -412,6 +419,10 @@ class Update extends CI_Controller {
|
||||
* Used for autoupdating the DOK file which is used in the QSO entry dialog for autocompletion.
|
||||
*/
|
||||
public function update_dok() {
|
||||
|
||||
$this->load->model('cron_model');
|
||||
$this->cron_model->set_last_run('update_dok');
|
||||
|
||||
$contents = file_get_contents('https://www.df2et.de/cqrlog/dok_and_sdok.txt', true);
|
||||
|
||||
if($contents === FALSE) {
|
||||
@@ -440,6 +451,10 @@ class Update extends CI_Controller {
|
||||
* Used for autoupdating the SOTA file which is used in the QSO entry dialog for autocompletion.
|
||||
*/
|
||||
public function update_sota() {
|
||||
|
||||
$this->load->model('cron_model');
|
||||
$this->cron_model->set_last_run('update_sota');
|
||||
|
||||
$csvfile = 'https://www.sotadata.org.uk/summitslist.csv';
|
||||
|
||||
$sotafile = './assets/json/sota.txt';
|
||||
@@ -486,6 +501,10 @@ class Update extends CI_Controller {
|
||||
* Pulls the WWFF directory for autocompletion in QSO dialogs
|
||||
*/
|
||||
public function update_wwff() {
|
||||
|
||||
$this->load->model('cron_model');
|
||||
$this->cron_model->set_last_run('update_wwff');
|
||||
|
||||
$csvfile = 'https://wwff.co/wwff-data/wwff_directory.csv';
|
||||
|
||||
$wwfffile = './assets/json/wwff.txt';
|
||||
@@ -533,6 +552,10 @@ class Update extends CI_Controller {
|
||||
}
|
||||
|
||||
public function update_pota() {
|
||||
|
||||
$this->load->model('cron_model');
|
||||
$this->cron_model->set_last_run('update_pota');
|
||||
|
||||
$csvfile = 'https://pota.app/all_parks.csv';
|
||||
|
||||
$potafile = './assets/json/pota.txt';
|
||||
|
||||
Reference in New Issue
Block a user