From: Tim Bishop Date: Tue, 14 Feb 2006 22:17:37 +0000 (+0000) Subject: Display a different logo if coming in from IPv6. It's not nice, but I don't X-Git-Url: http://git.i-scream.org/?a=commitdiff_plain;h=e665caa273f90b869912f2daf746fa31d91613f7;p=www.i-scream.org.git Display a different logo if coming in from IPv6. It's not nice, but I don't have a better logo atm :-) Just a bit of fun really... --- 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; diff --git a/www/images/ipv6-logo.gif b/www/images/ipv6-logo.gif new file mode 100644 index 0000000..6069bc7 Binary files /dev/null and b/www/images/ipv6-logo.gif differ