Merge pull request #1558 from AndreasK79/clublog_gui

Clublog gui
This commit is contained in:
Andreas Kristiansen
2025-01-31 09:30:09 +01:00
committed by GitHub
7 changed files with 378 additions and 113 deletions

View File

@@ -1,38 +0,0 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Clublog {
/*
Communicates with the Clublog.org API functions
Send()
TODO: Finish ADIF output
TODO: Curl Function
TODO: Batch importing
TODO: Delete
*/
/* Send QSO in real time */
public function send($qso) {
// Load Librarys
$CI =& get_instance();
$CI->load->library('curl');
// API Key
$key = "608df94896cb9c5421ae748235492b43815610c9";
$username = "";
$password = "";
$adif = "<qso_date:".strlen($qso_date).">".$qso_date."<time_on:".strlen($time_on).">".$time_on."<call:".strlen($qso['call']).">".$qso['call']."<band:".strlen($qso['band']).">".$qso['band']."<mode:".strlen($qso['mode']).">".$qso['mode']."<freq:".strlen($qso['freq']).">".$qso['freq'];
echo $CI->curl->simple_post('curl_test/message', array('message'=>'Sup buddy'));
}
public function check(){}
}
/* End of file Clublog.php */