]> i-scream Git - www.i-scream.org.git/commitdiff
Display a different logo if coming in from IPv6. It's not nice, but I don't
authorTim Bishop <tim@bishnet.net>
Tue, 14 Feb 2006 22:17:37 +0000 (22:17 +0000)
committerTim Bishop <tim@bishnet.net>
Tue, 14 Feb 2006 22:17:37 +0000 (22:17 +0000)
have a better logo atm :-) Just a bit of fun really...

cgi-bin/logo.cgi
www/images/ipv6-logo.gif [new file with mode: 0644]

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;
 
diff --git a/www/images/ipv6-logo.gif b/www/images/ipv6-logo.gif
new file mode 100644 (file)
index 0000000..6069bc7
Binary files /dev/null and b/www/images/ipv6-logo.gif differ