First commit of tag changes. bug-1444
[cacert-devel.git] / includes / tverify_stuff.php
1 <?php /*
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><?php echo $title?></title>
28 <?php if($_SESSION['_config']['header'] != "") { ?><?php echo $_SESSION['_config']['header']?><?php } ?>
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://<?php echo $_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><?php echo _("Free digital certificates!")?></h2></div>
37 </div>
38 <div id="pageNav">
39 <div class="relatedLinks">
40 <h3><?php echo _("Join CAcert.org")?></h3>
41 <a href="http://<?php echo $_SESSION['_config']['normalhostname']?>/"><?php echo _("Main Website")?></a>
42 <a href="https://<?php echo $_SESSION['_config']['normalhostname']?>/index.php?id=1"><?php echo _("Join")?></a>
43 </div>
44 <div class="relatedLinks">
45 <h3><?php echo _("My Account")?></h3>
46 <a href="https://<?php echo $_SESSION['_config']['normalhostname']?>/index.php?id=4"><?php echo _("Normal Login")?></a>
47 <a href="https://<?php echo $_SESSION['_config']['securehostname']?>/index.php?id=4"><?php echo _("Cert Login")?></a>
48 <a href="https://<?php echo $_SESSION['_config']['normalhostname']?>/index.php?id=5"><?php echo _("Lost Password")?></a>
49 </div>
50 </div>
51 <div id="content">
52 <div class="story">
53 <h3><?php echo $title2?></h3>
54 <?php if($_SESSION['_config']['errmsg'] != "") { ?>
55 <p><font color="#ff0000" size="+2"><?php echo $_SESSION['_config']['errmsg']; $_SESSION['_config']['errmsg'] = ""; ?> </font></p>
56 <?php } ?>
57 <?php }
58 }
59
60 if(!function_exists("showfooter"))
61 {
62 function showfooter()
63 {
64 ?>
65 </div>
66 </div>
67 <div id="siteInfo">
68 <a href="//wiki.cacert.org/FAQ/AboutUs"><?php echo _("About Us")?></a> | <a href="/index.php?id=13"><?php echo _("Donations")?></a> | <a href="http://wiki.cacert.org/wiki/CAcertIncorporated"><?php echo _("Association Membership")?></a> |
69 <a href="/index.php?id=10"><?php echo _("Privacy Policy")?></a> |
70 <a href="/index.php?id=51"><?php echo _("Mission Statement")?></a> | <a href="/index.php?id=11"><?php echo _("Contact Us")?></a> |
71 <a href="/index.php?id=19"><?php echo _("Further Information")?></a> | &copy;2002-<?php echo date("Y")?> <?php echo _("by CAcert")?></div>
72 </div>
73 </body>
74 </html><?php }
75 }
76 ?>