`Script Error: \$@`
\n"; } exit; ############################################################################### # TOP ############################################################################### sub top { \$| = 1; # flush output \$allow_free_access = 1; # Really inportant to include in imageThumb.cgi ! \$imageThumb_cgi = 1; if (\$FORM{'direct'}) { \$FORM{'cat'} = \$FORM{'direct'}; if (!-d "\$image_directory/\$FORM{'direct'}") { &Error("The category \"\$FORM{'direct'}\" is not valid!"); } } if (\$FORM{'thumbnail'}) { if (!\$FORM{'direct'}) { &Error("You need to specify the category of the thumbnail \"\$FORM{'thumbnail'}\""); } elsif (\$FORM{'thumbnail'} != /\$mypattern/) { &Error("\"\$FORM{'thumbnail'}\" is not a thumbnail!"); } elsif (!-e "\$image_directory/\$FORM{'direct'}/\$FORM{'thumbnail'}") { &Error("The thumbnail \"\$FORM{'thumbnail'}\" in category \"\$FORM{'direct'}\" could not be found!"); } else { \$name = "\$FORM{'thumbnail'}"; \$path = "\$FORM{'direct'}"; } } else { if (\$FORM{'search'} eq "NEW") { \$sortfiles = 1; \$cache_sort = 1; } elsif (\$FORM{'search'} eq "HITS") { \$sortfiles = 1; \$cache_sort = 3; } elsif (\$FORM{'search'} eq "RATES") { \$sortfiles = 1; \$cache_sort = 4; } elsif (\$FORM{'search'} eq "RANDOM") { \$sortfiles = 5; \$cache_sort = 5; } elsif (\$FORM{'sort'} =~ /\d/) { \$sortfiles = \$FORM{'sort'}; \$cache_sort = \$FORM{'sort'}; } else { \$sortfiles = 5; \$cache_sort = 5; if (!\$FORM{'search'}) { \$FORM{'search'} = "RANDOM"; } } if (\$FORM{'show_tn'} =~ /\d/) { \$show_tn = \$FORM{'show_tn'}; } else { \$show_tn = 1; } \$cachefilename = "thumb~\$FORM{'search'}~sort\$cache_sort~show_tn\$show_tn"; \$cachefilename .= "~\$FORM{'direct'}" if \$FORM{'direct'}; \$cachefilename =~ s/[^0-9a-zA-Z\_]/~/g; \$cacheloc = "\$cache_directory/searches/\$cachefilename"; if (-e "\$cacheloc") { if (-M "\$cacheloc" <= \$cache_date) { &open_cache; } else { &new_thumb_search; } } else { &new_thumb_search; } } push(@names, \$name); \$thumb_search = \$FORM{'search'}; \$FORM{'search'} = (); \$FORM{'direct'} = (); &build_thumbnail_table; if (\$FORM{'bgcolor'}) { \$iframe_bg = qq| bgcolor="#\$FORM{'bgcolor'}"|; } if (\$FORM{'title'}) { \$iframe_title = qq|<\$font>\$FORM{'title'}|; } if (\$found) { \$imagethumb = qq| \$if_javascript
\$iframe_title
\$imagethumb
|; } elsif (\$FORM{'forum'} && (\$thumb_search =~ /^USER~/)) { \$imagethumb = qq|
\$iframe_title
{"ft_lang_label":"__label__en","ft_lang_prob":0.5254402,"math_prob":0.9244208,"size":7838,"snap":"2021-43-2021-49","text_gpt3_token_len":2040,"char_repetition_ratio":0.21215215,"word_repetition_ratio":0.031037828,"special_character_ratio":0.41400868,"punctuation_ratio":0.19554031,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98327553,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-05T13:35:44Z\",\"WARC-Record-ID\":\"<urn:uuid:4bf27d2e-3f98-472b-9f2c-9d0979b9bfd9>\",\"Content-Length\":\"12002\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a8ab0539-7614-49b8-86af-f690b95bf2bf>\",\"WARC-Concurrent-To\":\"<urn:uuid:6695232a-68d0-4cc2-a5f9-55280801001b>\",\"WARC-IP-Address\":\"34.66.9.117\",\"WARC-Target-URI\":\"https://www.sfmission.com/cgi-bin/gallery/imageThumb.cgi?direct=Guyana%2FLethem&search=RANDOM&title=Lethem&bgcolor=CCCCFF\",\"WARC-Payload-Digest\":\"sha1:PURNNLSNR2TJNEVFGRRBOEOC74FTPRUX\",\"WARC-Block-Digest\":\"sha1:UR4AO2YO4NBXEFNPEI4VQSOGD7QEWPID\",\"WARC-Identified-Payload-Type\":\"text/x-perl\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964363189.92_warc_CC-MAIN-20211205130619-20211205160619-00190.warc.gz\"}"}