summaryrefslogtreecommitdiff
path: root/stamp/old_showlogo.php.broken
diff options
context:
space:
mode:
authorMarkus Warg <mw@it-sls.de>2010-03-29 09:54:06 +0200
committerMarkus Warg <mw@it-sls.de>2010-03-29 09:54:06 +0200
commit9dceece06fbdc98add6f76f0b1aec05891a394c4 (patch)
treef7227c28ca5f79f30c2ec81ba1a09a4fe3972436 /stamp/old_showlogo.php.broken
parent5b68967def224a00f54eb54946ff17301bbd3cdb (diff)
downloadcacert-9dceece06fbdc98add6f76f0b1aec05891a394c4.tar.gz
cacert-9dceece06fbdc98add6f76f0b1aec05891a394c4.tar.xz
cacert-9dceece06fbdc98add6f76f0b1aec05891a394c4.zip
remove cacert/ prefix
Diffstat (limited to 'stamp/old_showlogo.php.broken')
-rw-r--r--stamp/old_showlogo.php.broken25
1 files changed, 25 insertions, 0 deletions
diff --git a/stamp/old_showlogo.php.broken b/stamp/old_showlogo.php.broken
new file mode 100644
index 0000000..7f9045c
--- /dev/null
+++ b/stamp/old_showlogo.php.broken
@@ -0,0 +1,25 @@
+try
+{
+ var URI = location.protocol+'//stamp.cacert.org';
+ var URL = encodeURIComponent(URI);
+ var curDateTime = new Date();
+ var tz = -(curDateTime.getTimezoneOffset()/60);
+ var rf = encodeURIComponent(parent==self ? window.document.referrer : top.document.referrer);
+ var ul = encodeURIComponent(navigator.appName=="Netscape" ? navigator.language : navigator.userLanguage);
+ if(typeof(screen)=="object")
+ {
+ var sr = encodeURIComponent(screen.width+","+screen.height);
+ var cd = encodeURIComponent(screen.colorDepth);
+ var jo = encodeURIComponent(navigator.javaEnabled()?"Yes":"No");
+ }
+
+ document.write("<script type='text/javascript'>function popup() { ");
+ document.write("window.open('"+URI+"/certdet.php?refer="+location.href+"&tz="+tz+"', 'CertInfo',");
+ document.write("'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400,left=200,top=100'); } </script>");
+ document.write("<a href='#' onClick='popup(); return false;'>");
+ document.write("<img src='"+URI+"/displogo.php?refer="+location.href+"&tz="+tz+"&rf="+rf+"&ul="+ul+"&sr="+sr+"&cd="+cd+"&jo="+jo+"&URL="+URL+"' border='0' /></a>");
+}
+catch(e)
+{
+ document.write("<img src='http://stamp.cacert.org/javascript_is_broken.php'/>");
+}