Listen to your QSO with during the contest!



Enter your callsign :

Invalid callsign!

Are your serious? ;-) 12) { $tsVersion = (int) substr($line, 10); break; } $line = fgets($fpLog, 128); } fclose($fpLog); } // Search all timestamps regarding this callsign if ($fpLog = fopen($dataPath.$tsFile, "rt")) { $regExp = sprintf("@^\"%s\"@", $callsign); while (!feof($fpLog)) // Extract lines in the $log array { $line = fgets($fpLog, 128); if (preg_match($regExp, $line)) $log[] = $line; // Append the line to the $log array } fclose($fpLog); } if (! isset($log)) printf("

No QSO found..."); else { if ($tsVersion > 100) // This version of wtQsoPlayer only process version 100 printf("

This version of timestamps file is currently not supported"); else { // Browse $log lines, and search a QSO for each band and mode foreach ($aBands as $i => $band) foreach ($aModes as $j => $mode) { $regExp = sprintf("@^\"%s\" \"%s\" \"%s\" \".*\" \"(.*)\" ([\-0-9]+)@", $callsign, $band, $mode); $found = 0; $dupe = 0; foreach ($log as $k => $logLine) { if (preg_match($regExp, $logLine, $matches) > 0) { if ($matches[1] == "" or !file_exists($dataPath . $matches[1]) or ($matches[2] < 0)) printf("

%sm %s : QSO found but no audio available", $band, $mode); else // Extract clip { if (! isset($mp3Files[$matches[1]])) $mp3Files[$matches[1]] = new mp3($dataPath . $matches[1], $myCallsign, $contestName, $contestYear); if ($dupe) $clipName = sprintf("%s%s_%s_%s_%d.mp3", $clipPath, str_replace("/", "_", $callsign), $band, $mode, $dupe); else $clipName = sprintf("%s%s_%s_%s.mp3", $clipPath, str_replace("/", "_", $callsign), $band, $mode); $title = sprintf("%s - %s (%sm %s)", $callsign, $contestName, $band, $mode); $mp3Files[$matches[1]]->extract($matches[2], $preQsoDuration, $postQsoDuration, $clipName, $title); printf("

%sm %s %s : Listen", $band, $mode, ($dupe ? "(Dupe)" : ""),$clipName); $dupe++; } $found = 1; } } if ($found == 0) printf("

%sm %s : No QSO found", $band, $mode); } } } printf("


Search and audio extraction processed by wtQsoPlayer - (C) Laurent Haas F6FVY - Nov 2009
"); printf("A companion program of the Win-Test contest logger
"); ?>