]> i-scream Git - www.i-scream.org.git/blobdiff - cgi-bin/logo.cgi
Display a different logo if coming in from IPv6. It's not nice, but I don't
[www.i-scream.org.git] / cgi-bin / logo.cgi
index 25ab78dfed206dfd9bea15cde2c18461e295b302..de5779528c3e95d43c48afafdc43c2cbbf3efc5b 100755 (executable)
@@ -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;