summaryrefslogtreecommitdiff
path: root/stamp/certdet.php
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2015-01-06 22:07:36 +0100
committerBenny Baumann <BenBE@geshi.org>2015-01-06 22:07:36 +0100
commit0757950c296248bc489597bd7cdf3acf8858d433 (patch)
tree85b7c8f0ce9c34abd2ab921089bbf73c5716148b /stamp/certdet.php
parente18bdfeac8e0d6f6082e7fb3d3ef32bf61fd457e (diff)
downloadcacert-devel-0757950c296248bc489597bd7cdf3acf8858d433.tar.gz
cacert-devel-0757950c296248bc489597bd7cdf3acf8858d433.tar.xz
cacert-devel-0757950c296248bc489597bd7cdf3acf8858d433.zip
bug 1043: Remove the stamp 'CAcert certified' code as this branch has been dead for ages already.
Diffstat (limited to 'stamp/certdet.php')
-rw-r--r--stamp/certdet.php86
1 files changed, 0 insertions, 86 deletions
diff --git a/stamp/certdet.php b/stamp/certdet.php
deleted file mode 100644
index a43d2a0..0000000
--- a/stamp/certdet.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<? /*
- LibreSSL - CAcert web application
- Copyright (C) 2004-2008 CAcert Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; version 2 of the License.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-*/
- $org = $invalid = 0;
- $tz = intval($_REQUEST['tz']);
- $now = date("Y-m-d", gmmktime("U") + ($tz * 3600));
-
- $arr = explode("//", mysql_real_escape_string(trim($_REQUEST['refer'])), 2);
- $arr = explode("/", $arr['1'], 2);
- $ref = $arr['0'];
-
- $arr = explode("//", mysql_real_escape_string(trim($_SERVER['HTTP_REFERER'])), 2);
- $arr = explode("/", $arr['1'], 2);
- $siteref = $arr['0'];
-
- if($siteref != "")
- $siterefer = $_SERVER['HTTP_REFERER'];
- else
- $siterefer = $_REQUEST['refer'];
-
- if($ref == "" || ($ref != $siteref && $siteref != ""))
- {
- $invalid = 2;
- } else {
- if($_SESSION['_stamp']['ref'] == "")
- $_SESSION['_stamp']['ref'] = $siterefer;
- list($invalid, $info) = checkhostname($ref);
- }
-?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
-<title>CAcert.org Certificate Details!</title>
-<link rel="stylesheet" href="style.css" type="text/css">
-</head>
-<body>
- <div id="pagecell1">
- <div id="pageName"><br>
- <h2><a href="http<? if($_SERVER['HTTPS']=="on") { echo "s"; } ?>://www.cacert.org">
- <img src="http<? if($_SERVER['HTTPS']=="on") { echo "s"; } ?>://www.cacert.org/images/cacert3.png" border="0" alt="CAcert.org logo"></a></h2>
-<? if($_SERVER['HTTPS']!="on") { ?>
-<div id="googlead"><br><script type="text/javascript"><!--
-google_ad_client = "pub-0959373285729680";
-google_alternate_color = "ffffff";
-google_ad_width = 234;
-google_ad_height = 60;
-google_ad_format = "234x60_as";
-google_ad_type = "text";
-google_ad_channel = "";
-//--></script>
-<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>
-<? } ?>
- </div>
- <div id="content">
- <div class="story">
- <h3>SSL Certificate Details for <?=$ref?></h3>
-<? if($invalid == 0) { ?>
- <p>
- Status: Valid<br />
- Valid From: <?=$info['issued']?> GMT<br />
- Valid To: <?=$info['expire']?> GMT<br />
- Subject: <a href="#" title="<?=$info['subject']?>" onClick="return false;"><?=substr($info['subject'],0,80)?></a><br />
- Organisation: <? if($info['org'] == 0) { ?>N/A<? } else { echo $info['O'].", ".$info['L']." ".$info['ST']." ".$info['C']; } ?><br />
- Verification: <? if($info['points'] >= 50) { echo "Person had been assured at time of issue with at least 50 points."; }
- else if($info['org'] == 1) { ?>This organisation was assured at the time the certificate was issued.<? } ?></p>
-<? } else { ?>
- <p style="color:red">This site has potentially abused CAcert logos and Copyrights, please report it so we may further investigate.</p>
-<? } ?>
- <p><a href="report.php">Problem with this site? Please report it</a></p>
- </div>
- </div>
-</body>
-</html>