Merge branch 'bug-1177' into bug-1137
[cacert-devel.git] / www / sealgen.php
1 <? /*
2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; version 2 of the License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 header("Content-type: image/png");
19 $r = 255;
20 $g = 255;
21 $b = 255;
22 $font = 1;
23 $x = 25;
24 $y = 4;
25 $im = imagecreatefrompng($_SESSION['_config']['filepath']."/www/images/secured.png");
26 $tc = imagecolorallocate ($im, $r, $g, $b);
27 imagestring ($im, $font, $x, $y, "CAcert.org", $tc);
28 imagepng($im);
29 ?>