From e665caa273f90b869912f2daf746fa31d91613f7 Mon Sep 17 00:00:00 2001 From: Tim Bishop Date: Tue, 14 Feb 2006 22:17:37 +0000 Subject: [PATCH] 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... --- cgi-bin/logo.cgi | 5 +++++ www/images/ipv6-logo.gif | Bin 0 -> 1898 bytes 2 files changed, 5 insertions(+) create mode 100644 www/images/ipv6-logo.gif 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 0000000000000000000000000000000000000000..6069bc70fd35dd6d384018d18c21b283bdd6acfe GIT binary patch literal 1898 zcmV-w2bK6oNk%v~VU_@R0Hr_xC?|51l)1aR(*6DZH#K})S(Dz~>Gk#a%gWtLNs00C z_8b~&jEl3Rqr=$P=0ie+#l_jOvd!t~@nmC}`}_UY)#T&j?a|TUe0!<)_xh}>$#iq1 zYH6M241ejE#^Xz`?*Q7$yNH5C;?k19!|6(9vN8 zKGoLO*w_t2+1=GE;42H*1T#7g8O?JP1{x+T92_hk7YYRIH+%+7qJTp-6>L!8 zAn8H^lAhL9fLPfDf(mRUpbU_qb%_L~*S4amQJ|U(t4J!~^??DZmkSTD6^LS@u95*U zvM~T`CIeazHI{_P=p%*UE(QiKm=T46VPffNTMBk8v>dh7$z{cwG1lnzuFIz&Qsbo@7Th50uADs0Kg-o!z}jLkVte zcoPROu))Y&#@Yi~bI@N;kzF`8B60KmY&%B+){rpgxd5rb48U5eYI0k--i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