mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added a few options on ADIF import. Added mode to duplicate check when importing.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user