X-Git-Url: http://git.i-scream.org/?a=blobdiff_plain;f=cgi-bin%2Flogo.cgi;fp=cgi-bin%2Flogo.cgi;h=de5779528c3e95d43c48afafdc43c2cbbf3efc5b;hb=e665caa273f90b869912f2daf746fa31d91613f7;hp=25ab78dfed206dfd9bea15cde2c18461e295b302;hpb=de8f211afa2c1bcf90410c706fda6558ff713771;p=www.i-scream.org.git diff --git a/cgi-bin/logo.cgi b/cgi-bin/logo.cgi index 25ab78d..de57795 100755 --- a/cgi-bin/logo.cgi +++ b/cgi-bin/logo.cgi @@ -19,6 +19,11 @@ my($imagepath) = `$setbg -r -p \'$pattern\' -b echo -f \' \' $dir`; chomp $imagepath; $imagepath =~ s/$dir/$url/; +# Check for IPv6 +if($ENV{SERVER_ADDR} =~ /:/) { + $imagepath = "http://www.i-scream.org/images/ipv6-logo.gif"; +} + print "Content-type: text/plain\n\n"; print $imagepath;