Added a few options on ADIF import. Added mode to duplicate check when importing.

This commit is contained in:
AndreasK79
2020-04-05 14:23:43 +02:00
parent 4b5e41fc24
commit 7c032d380c
4 changed files with 91 additions and 39 deletions

View File

@@ -26,22 +26,14 @@ class ADIF_Parser
public function initialize() //this function locates the <EOH>
{
$eoh_upper = stripos($this->data, "<EOH>");
if($eoh_upper == true) {
$pos = stripos($this->data, "<EOH>");;
} else {
$pos = stripos($this->data, "<eoh>");
}
$pos = stripos(strtoupper($this->data), "<EOH>");;
if($pos == false) //did we find the end of headers?
{
echo "Error: Adif_Parser Already Initialized or No <EOH> in ADIF File";
return 0;
};
//get headers
$this->i = 0;