Browse Source

Add GQ/MQ/2Q calls for Crown Jubilee

master
Fabian Kurz 6 months ago
parent
commit
20ea7e8854
  1. 6
      db/import.pl
  2. 2
      login.php

6
db/import.pl

@ -42,9 +42,13 @@ while (my $line = <>) {
elsif ($callsign =~ /^VY(.*)/) {
$nc = "XK$1";
}
# Gx = GQ
elsif ($callsign =~ /^([2GM])[A-Z]?(.*)/) {
$nc = "$1Q$2";
}
if ($nc and $left eq "20990101") {
print "INSERT into cwops_members (`nr`, `callsign`, `joined`, `left`, `was`) VALUES ('$nr', '$nc', '20220514', '2099-01-01', '$state');\n";
print "INSERT into cwops_members (`nr`, `callsign`, `joined`, `left`, `was`) VALUES ('$nr', '$nc', '20220514', '20990101', '$state');\n";
}

2
login.php

@ -48,6 +48,8 @@ function lostpassword () {
$q = mysqli_query($db, "SELECT * from cwops_users where `callsign`='$call'");
$r = mysqli_fetch_object($q);
$link = "https://cwops.telegraphy.de/recovery/".sha1($r->password)."/".$r->callsign;
error_log($link);
if ($r->email) {
echo "Sending recovery email to the saved email address. If you don't receive it, check your spam folder or get in touch with Fabian, DJ5CW (fabian@fkurz.net) to request a new password.<br>";

Loading…
Cancel
Save