summaryrefslogtreecommitdiff
path: root/stamp/displogo.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/displogo.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/displogo.php')
-rw-r--r--stamp/displogo.php59
1 files changed, 0 insertions, 59 deletions
diff --git a/stamp/displogo.php b/stamp/displogo.php
deleted file mode 100644
index 9c1f534..0000000
--- a/stamp/displogo.php
+++ /dev/null
@@ -1,59 +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
-*/
- $img = "/www/stamp/images/CAverify.png";
- $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($_REQUEST['debug'] != 1)
- header('Content-type: image/png');
- $im = imagecreatefrompng($img);
-
- if($ref == "" || ($ref != $siteref && $siteref != ""))
- {
- $tc = imagecolorallocate ($im, 255, 0, 0);
- imagestring ($im, 2, 1, 30, "INVALID DOMAIN", $tc);
- imagestring ($im, 2, 1, 45, "Click to Report", $tc);
- imagepng($im);
- exit;
- }
-
- list($invalid, $info) = checkhostname($ref);
-
- if($invalid > 0)
- {
- $tc = imagecolorallocate ($im, 255, 0, 0);
- imagestring ($im, 2, 1, 30, "INVALID DOMAIN", $tc);
- imagestring ($im, 2, 1, 45, "Click to Report", $tc);
- imagepng($im);
- exit;
- }
-
- $tz = intval($_REQUEST['tz']);
- $now = date("Y-m-d", gmmktime("U") + ($tz * 3600));
-
- $tc = imagecolorallocate ($im, 0, 0, 0);
- imagestring ($im, 4, 1, 27, "Valid Cert!", $tc);
- imagestring ($im, 1, 7, 42, "Click to Verify", $tc);
- imagestring ($im, 1, 20, 52, $now, $tc);
- imagepng($im);
-?>