Compare commits

...

3 Commits

Author SHA1 Message Date
6ed41e2662 changed to ini 2024-02-14 02:34:36 +01:00
64e4d68d5a ini loader 2024-02-14 02:34:26 +01:00
412c516a58 changed template 2024-02-14 02:34:14 +01:00
5 changed files with 25 additions and 21 deletions

11
iniget.inc.php Normal file
View File

@ -0,0 +1,11 @@
<?php
if ( file_exists("local.ini") ) {
$ini=parse_ini_file("local.ini",TRUE);
}
if ( strlen($ini["qrzcq"]["mycall"]) >= 3 && strlen($ini["qrzcq"]["apikey"]) == 16 ) {
$mycall=$ini["qrzcq"]["mycall"];
$apikey=$ini["qrzcq"]["apikey"];
}
$rmodel=$ini["local"]["rmodel"];
$device=$ini["local"]["device"];
$dspeed=$ini["local"]["dspeed"];

View File

@ -1,3 +1,8 @@
[qrzcq]
mycall = XXXXXX
apikey = XXXXXXXXXXXXXXXX
[local]
device = /dev/ttyUSB0
dspeed = 19200
rmodel = 129

View File

@ -1,11 +1,7 @@
<?
$mycall='XXXXXX'; # my call sign
$apikey='XXXXXXXXXXXXXXXX'; # my qrzcq api key
$rigctl='/usr/bin/rigctl'; # where rigctl lives
$rmodel='363'; # rig model for hamlib
$device='/dev/ttyUSB0'; # serial device connected to rig
$dspeed='19200'; # serial speed set in rig
$ssb_wid='3000';
require_once("iniget.inc.php");
$rigctl='/usr/bin/rigctl';
$ssb_wid='2400';
$cw_wid='500';
###############################################################
print "==> RIG CONNECT... ";

View File

@ -1,11 +1,7 @@
<?php
$mycall='XXXXXX'; # my call sign
$apikey='XXXXXXXXXXXXXXXX'; # my qrzcq api key
$rigctl='/usr/bin/rigctl'; # where rigctl lives
$rmodel='363'; # rig model for hamlib
$device='/dev/ttyUSB0'; # serial device connected to rig
$dspeed='19200'; # serial speed set in rig
$ssb_wid='2400'; # Icom IC-7600 -> Fil-2
require_once("iniget.inc.php");
$rigctl='/usr/bin/rigctl';
$ssb_wid='2400';
$cw_wid='500';
###############################################################
print "==> RIG CONNECT... ";

View File

@ -1,11 +1,7 @@
<?php
$mycall='XXXXXX'; # my call sign
$apikey='XXXXXXXXXXXXXXXX'; # my qrzcq api key
$rigctl='/usr/bin/rigctl'; # where rigctl lives
$rmodel='363'; # rig model for hamlib
$device='/dev/ttyUSB1'; # serial device connected to rig
$dspeed='19200'; # serial speed set in rig
$ssb_wid='2400'; # Icom IC-7600 -> Fil-2
require_once("iniget.inc.php");
$rigctl='/usr/bin/rigctl';
$ssb_wid='2400';
$cw_wid='500';
###############################################################
print "==> RIG CONNECT... ";