cacert-webdb/stamp/showlogo.php

14 lines
675 B
PHP
Raw Normal View History

2006-11-27 00:52:11 +00:00
<?
if($_SERVER['HTTPS']=="on")
$URI = "https://";
2006-12-09 00:23:15 +00:00
else
$URI = "http://";
2006-11-27 00:52:11 +00:00
?>
var curDateTime = new Date();
var tz = -(curDateTime.getTimezoneOffset()/60);
document.write("<script type='text/javascript'>function popup() { ");
document.write("window.open('<?=$URI?>stamp.cacert.org/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?>stamp.cacert.org/displogo.php?refer="+location.href+"&tz="+tz+"' border='0' /></a>");