X-Git-Url: http://git.i-scream.org/?a=blobdiff_plain;f=cgi-bin%2Flogo.cgi;h=c1916120d278b03d38ffa82807785fa239f03bde;hb=HEAD;hp=25ab78dfed206dfd9bea15cde2c18461e295b302;hpb=a80d0974e08bd71d162daff7947e4dd7580ab886;p=www.i-scream.org.git diff --git a/cgi-bin/logo.cgi b/cgi-bin/logo.cgi index 25ab78d..c191612 100755 --- a/cgi-bin/logo.cgi +++ b/cgi-bin/logo.cgi @@ -9,7 +9,7 @@ my($dir) = "/web/i-scream/htdocs/logos"; my($pattern) = "\\.jpg\$"; # URL to images - must match $dir -my($url) = "http://www.i-scream.org/logos"; +my($url) = "https://www.i-scream.org/logos"; # Where the setbg command is my($setbg) = "/web/i-scream/bin/setbg.pl"; @@ -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 = "https://www.i-scream.org/images/ipv6-logo.gif"; +} + print "Content-type: text/plain\n\n"; print $imagepath;