bug 1288: Accept STARTTLS as last option
[cacert-devel.git] / includes / tverify_stuff.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
19 if(!function_exists("showheader"))
20 {
21 function showheader($title = "CAcert.org", $title2 = "")
22 {
23
24 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
25 <html>
26 <head>
27 <title><?=$title?></title>
28 <? if($_SESSION['_config']['header'] != "") { ?><?=$_SESSION['_config']['header']?><? } ?>
29 <link rel="stylesheet" href="/styles/default.css" type="text/css">
30 <link href="http://my.rsscache.com/www.cacert.org/rss.php" rel="alternate" type="application/rss+xml" title="rss">
31 </head>
32 <body>
33 <div id="pagecell1">
34 <div id="pageName"><br>
35 <h2><a href="http://<?=$_SESSION['_config']['normalhostname']?>"><img src="https://www.CAcert.org/images/cacert4.png" border="0" alt="CAcert.org logo"></a></h2>
36 <div id="googlead"><h2><?=_("Free digital certificates!")?></h2></div>
37 </div>
38 <div id="pageNav">
39 <div class="relatedLinks">
40 <h3><?=_("Join CAcert.org")?></h3>
41 <a href="http://<?=$_SESSION['_config']['normalhostname']?>/"><?=_("Main Website")?></a>
42 <a href="https://<?=$_SESSION['_config']['normalhostname']?>/index.php?id=1"><?=_("Join")?></a>
43 </div>
44 <div class="relatedLinks">
45 <h3><?=_("My Account")?></h3>
46 <a href="https://<?=$_SESSION['_config']['normalhostname']?>/index.php?id=4"><?=_("Normal Login")?></a>
47 <a href="https://<?=$_SESSION['_config']['securehostname']?>/index.php?id=4"><?=_("Cert Login")?></a>
48 <a href="https://<?=$_SESSION['_config']['normalhostname']?>/index.php?id=5"><?=_("Lost Password")?></a>
49 </div>
50 </div>
51 <div id="content">
52 <div class="story">
53 <h3><?=$title2?></h3>
54 <? if($_SESSION['_config']['errmsg'] != "") { ?>
55 <p><font color="#ff0000" size="+2"><? echo $_SESSION['_config']['errmsg']; $_SESSION['_config']['errmsg'] = ""; ?> </font></p>
56 <? } ?>
57 <?
58 }
59 }
60
61 if(!function_exists("showfooter"))
62 {
63 function showfooter()
64 {
65 ?>
66 </div>
67 </div>
68 <div id="siteInfo">
69 <a href="//wiki.cacert.org/FAQ/AboutUs"><?=_("About Us")?></a> | <a href="/index.php?id=13"><?=_("Donations")?></a> | <a href="http://wiki.cacert.org/wiki/CAcertIncorporated"><?=_("Association Membership")?></a> |
70 <a href="/index.php?id=10"><?=_("Privacy Policy")?></a> |
71 <a href="/index.php?id=51"><?=_("Mission Statement")?></a> | <a href="/index.php?id=11"><?=_("Contact Us")?></a> |
72 <a href="/index.php?id=19"><?=_("Further Information")?></a> | &copy;2002-<?=date("Y")?> <?=_("by CAcert")?></div>
73 </div>
74 </body>
75 </html><?
76 }
77 }
78 ?>