Ejemplo n.º 1
0
if (isset($_POST["dxcc"])) {
    $dxcc = strtoupper(htmlentities($_POST["dxcc"]));
}
if (isset($_POST["band"])) {
    $band = htmlentities($_POST["band"]);
}
if (isset($_POST["mode"])) {
    $mode = $_POST["mode"];
}
if (!isset($mode)) {
    $mode = array();
}
if (isset($_POST["callsign"])) {
    $call = strtoupper(htmlentities($_POST["callsign"]));
    if (!empty($call)) {
        $dxcc = adif_to_dxcc(call_to_dxcc($call)[0]);
        $mode = array("CW", "SSB", "DATA");
    }
}
if (isset($_POST["name"])) {
    $name = htmlentities($_POST["name"]);
}
$paperqsl = false;
$lotwqsl = false;
$eqslqsl = false;
if (isset($_POST["confirmation_paper"])) {
    $paperqsl = true;
}
if (isset($_POST["confirmation_lotw"])) {
    $lotwqsl = true;
}
Ejemplo n.º 2
0
            if (strlen($id_call) < strlen($treffer[2])) {
                $id_call = $treffer[2];
            }
            if (strlen($id_call) < strlen($treffer[3])) {
                $id_call = $treffer[3];
            }
        } else {
            $id_call = $call;
        }
        $fetchqso = call_to_dxcc($call);
        $adif = $fetchqso[0];
        $dxcc_name = $fetchqso[1];
        $itu = $fetchqso[2];
        $waz = $fetchqso[3];
        $manager = get_manager($call);
        $fetchiota = get_iota($call, adif_to_dxcc($adif));
        if (!empty($fetchiota[0])) {
            $iota_nr = $fetchiota[0];
        }
        $iota_name = $fetchiota[1];
    }
}
if (isset($_POST["time_input"])) {
    $time = htmlentities($_POST["time_input"]);
    if (preg_match("/\\b(?<hour>\\d{2})(?P<minute>\\d{2})\\b/", $time, $treffer)) {
        $time = $treffer[1] . ':' . $treffer[2];
    }
}
if (isset($_POST["mode_input"])) {
    $mode = strtoupper(htmlentities($_POST["mode_input"]));
}