$ret .= "<b>Could not identify $callsign as a CWops member. Starting import from 2010-01-01. If you joined CWops later, please only upload logs after your start date!</b><br>";
}
# detect data format. it may be ADIF or CSV export from CAM
# If it is CSV, convert it to ADIF first and then import it
@ -320,7 +331,7 @@ function import($adif, $callsign, $ign) {
# we have a start date. if the QSO is before this date,
# ignore it.
if ($startdate && $date <= $startdate) {
continue;
}
# Valid QSO. Now find out band and optionally state, wae,
# waz and dxcc.
@ -922,16 +932,17 @@ function validate ($type, $value) {
function score_table() {
global $db;
if (!in_array($_SESSION['id'], array(18, 13, 22, 15))) {
echo "Only for administrators.";
return;
}
# if (!in_array($_SESSION['id'], array(18, 13, 22, 15))) {
# echo "Currently only for administrators.";
# return;
# }
echo "<divclass='container'>";
# aca / cma combined table
$q = mysqli_query($db, "select cwops_users.callsign as callsign, cwops_scores.$i as $i from cwops_users inner join cwops_scores on cwops_users.id = cwops_scores.uid order by $i desc;");
$q = mysqli_query($db, "select cwops_users.callsign as callsign, cwops_scores.aca as aca, cwops_scores.cma as cma from cwops_users inner join cwops_scores on cwops_users.id = cwops_scores.uid order by aca desc;");
$q = mysqli_query($db, "select cwops_users.callsign as callsign, cwops_scores.$i as $i from cwops_users inner join cwops_scores on cwops_users.id = cwops_scores.uid order by $i desc;");