X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fdictionary-update-receiver;h=25cdf0a71d249ce458c976c43aa35250ca704400;hb=da11e3a62afed32df7b62d6cd04400c89ba1a49e;hp=d80ab216b338220049d8ab6387061cf1c0d4386f;hpb=d79262d3c0bc002beb7888568d74d26e27852699;p=ypp-sc-tools.db-live.git diff --git a/pctb/dictionary-update-receiver b/pctb/dictionary-update-receiver index d80ab21..25cdf0a 100755 --- a/pctb/dictionary-update-receiver +++ b/pctb/dictionary-update-receiver @@ -19,7 +19,7 @@ use CGI qw/:standard -private_tempfiles/; use IO::Pipe; use IO::Handle; -my $aadepth=3; +my $aadepth=2; #---------- pixmaps ---------- @@ -161,6 +161,16 @@ sub pipeval ($@) { #---------- determine properties of the submission ---------- +my $version= param('version'); +my $spec_aadepth= param('depth'); +if ($version ne '3' || $spec_aadepth ne $aadepth) { + print header('text/plain', + "403 YPP SC PCTB client is out of date". + " ($version, $spec_aadepth)"); + print "\nYour YPP SC client is out of date.\n"; + exit 0; +} + my $dict= param('dict'); my $entry_in= param('entry'); defined $entry_in or die Dump()." ?";