2004-10-16 00:28:17 +00:00
|
|
|
<? /*
|
2006-08-14 14:47:04 +00:00
|
|
|
Copyright (C) 2004-2006 by Duane Groth <duane_at_CAcert_dot_org>
|
2004-10-16 00:28:17 +00:00
|
|
|
|
|
|
|
This file is part of CAcert.
|
|
|
|
|
|
|
|
CAcert has been released under a CAcert Source license
|
|
|
|
which can be found included with these source files or can
|
|
|
|
be downloaded from the internet from the following address:
|
|
|
|
http://www.cacert.org/src-lic.php
|
|
|
|
|
|
|
|
CAcert is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
|
|
PARTICULAR PURPOSE. See the License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
if(!function_exists("showheader"))
|
|
|
|
{
|
|
|
|
function showheader($title = "CAcert.org", $title2 = "")
|
|
|
|
{
|
2004-12-07 13:21:06 +00:00
|
|
|
global $id;
|
2004-10-16 00:28:17 +00:00
|
|
|
|
|
|
|
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title><?=$title?></title>
|
2004-12-06 14:02:02 +00:00
|
|
|
<? if($_SESSION['_config']['header'] != "") { ?><?=$_SESSION['_config']['header']?><? } ?>
|
2005-03-12 19:40:24 +00:00
|
|
|
<link rel="stylesheet" href="/styles/default.css" type="text/css">
|
2007-03-12 14:30:35 +00:00
|
|
|
<link href="http://blog.CAcert.org/feed/" rel="alternate" type="application/rss+xml" title="rss">
|
2005-12-04 21:04:05 +00:00
|
|
|
<script language="JavaScript" type="text/javascript">
|
|
|
|
function explode(e) {
|
|
|
|
if (document.getElementById(e).style.display == 'none') {
|
|
|
|
document.getElementById(e).style.display = 'block';
|
|
|
|
} else {
|
|
|
|
document.getElementById(e).style.display = 'none';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function hideall() {
|
|
|
|
var Nodes = document.getElementsByTagName('ul')
|
|
|
|
var max = Nodes.length
|
|
|
|
for(var i = 0;i < max;i++) {
|
|
|
|
var nodeObj = Nodes.item(i)
|
2006-12-09 00:23:15 +00:00
|
|
|
if (nodeObj.className == "menu" && nodeObj.id != "recom") {
|
2005-12-04 21:04:05 +00:00
|
|
|
nodeObj.style.display = 'none';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2004-10-16 00:28:17 +00:00
|
|
|
</head>
|
2005-12-04 21:04:05 +00:00
|
|
|
<body onload="hideall();">
|
2004-10-16 00:28:17 +00:00
|
|
|
<div id="pagecell1">
|
|
|
|
<div id="pageName"><br>
|
2005-07-01 13:12:14 +00:00
|
|
|
<h2><a href="http://<?=$_SESSION['_config']['normalhostname']?>"><img src="/images/cacert3.png" border="0" alt="CAcert.org logo"></a></h2>
|
2004-10-16 00:28:17 +00:00
|
|
|
<div id="googlead"><? if($_SERVER['HTTPS'] != "on") { ?><script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
google_ad_client = "pub-0959373285729680";
|
|
|
|
google_alternate_ad_url = "http://text.happysnapper.net/?userid=06f45be90b9c7456f98f304d0cae3405&border=FFFFFF&bg=FFFFFF&nourl=www.cacert.org";
|
2007-11-06 14:45:34 +00:00
|
|
|
google_ad_width = 468;
|
|
|
|
google_ad_height = 60;
|
|
|
|
google_ad_format = "468x60_as";
|
2004-10-16 00:28:17 +00:00
|
|
|
google_color_link = "000000";
|
|
|
|
google_color_url = "000000";
|
|
|
|
google_color_text = "000000";
|
|
|
|
google_color_border = "FFFFFF";
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><? } else {
|
2005-06-09 15:21:55 +00:00
|
|
|
?><h2><?=_("Free digital certificates!")?></h2><? } ?></div>
|
2004-10-16 00:28:17 +00:00
|
|
|
</div>
|
|
|
|
<div id="pageNav">
|
|
|
|
<div class="relatedLinks">
|
|
|
|
<h3><?=_("Join CAcert.org")?></h3>
|
2006-04-30 08:30:54 +00:00
|
|
|
<a href="https://<?=$_SESSION['_config']['normalhostname']?>/index.php?id=1"><?=_("Join")?></a>
|
|
|
|
<a href="index.php?id=3"><?=_("Root Certificate")?></a>
|
2004-10-16 00:28:17 +00:00
|
|
|
</div>
|
|
|
|
<div class="relatedLinks">
|
|
|
|
<h3><?=_("My Account")?></h3>
|
2006-08-16 09:27:39 +00:00
|
|
|
<a href="https://<?=$_SESSION['_config']['normalhostname']?>/index.php?id=4"><?=_("Password Login")?></a>
|
2004-12-06 21:53:35 +00:00
|
|
|
<a href="https://<?=$_SESSION['_config']['normalhostname']?>/index.php?id=5"><?=_("Lost Password")?></a>
|
2006-11-27 02:30:25 +00:00
|
|
|
<a href="https://<?=$_SESSION['_config']['normalhostname']?>/index.php?id=4&noauto=1"><?=_("Net Cafe Login")?></a>
|
2007-01-28 18:55:35 +00:00
|
|
|
<a href="https://<?=$_SESSION['_config']['securehostname']?>/index.php?id=4"><?=_("Certificate Login")?></a>
|
2004-10-16 00:28:17 +00:00
|
|
|
</div>
|
|
|
|
<div class="relatedLinks">
|
2005-12-04 21:04:05 +00:00
|
|
|
<h3 onclick="explode('misc')"><?=_("Miscellaneous")?></h3>
|
2007-07-13 16:55:21 +00:00
|
|
|
<ul class="menu" id="misc"><li><a href="http://blog.cacert.org/"><?=_("CAcert News")?></a></li><li><a href="help.php"><?=_("Howto Information")?></a></li><li><a href="http://wiki.CAcert.org"><?=_("Wiki Documentation")?></a></li><li><a href="index.php?id=19"><?=_("Point System")?></a></li><li><a href="http://bugs.CAcert.org"><?=_("Bug Database")?></a></li><li><a href="logos.php"><?=_("CAcert Logos")?></a></li><li><a href="stats.php"><?=_("CAcert Statistics")?></a></li><li><a href="http://blog.CAcert.org/feed/"><?=_("RSS News Feed")?></a></li><li><? if($_SESSION['profile']['admin'] == 1) { ?><a href="index.php?id=5"><?=_("OCSP Details")?></a><? } ?></li><li><a href="index.php?id=7"><?=_("Credits")?></a></li><li><a href="index.php?id=8"><?=_("CAcert Board")?></a></li><li><a href="https://lists.cacert.org/cgi-bin/mailman/listinfo"><?=_("Mailing Lists")?></a></li></ul>
|
2004-10-16 00:28:17 +00:00
|
|
|
</div>
|
|
|
|
<div class="relatedLinks">
|
2005-12-04 21:04:05 +00:00
|
|
|
<h3 onclick="explode('trans')"><?=_("Translations")?></h3>
|
2006-08-03 13:20:55 +00:00
|
|
|
<ul class="menu" id="trans"><? foreach($_SESSION['_config']['translations'] as $key => $val) { ?><li><a href="<?=$_SERVER['SCRIPT_NAME']?>?id=<?=$id?>&lang=<?=$key?>"><?=$val?></a></li><? } ?></ul>
|
2004-10-16 00:28:17 +00:00
|
|
|
</div>
|
2006-12-09 00:23:15 +00:00
|
|
|
<div class="relatedLinks">
|
2007-01-10 04:01:15 +00:00
|
|
|
<h3 onclick="explode('recom')"><?=_("Advertising")?></h3>
|
2006-12-09 00:23:15 +00:00
|
|
|
<ul class="menu" id="recom"><?
|
2006-12-09 14:26:30 +00:00
|
|
|
$query = "select * from `advertising` where `expires`>NOW() and `active`=1";
|
|
|
|
$res = mysql_query($query);
|
|
|
|
while($row = mysql_fetch_assoc($res))
|
|
|
|
echo "<li><a href='$row[link]' target='_new'>$row[title]</a></li>";
|
2006-12-09 00:23:15 +00:00
|
|
|
?></ul>
|
|
|
|
</div>
|
2004-10-16 00:28:17 +00:00
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
<div class="story">
|
|
|
|
<h3><?=$title2?></h3>
|
|
|
|
<? if($_SESSION['_config']['errmsg'] != "") { ?>
|
|
|
|
<p><? echo $_SESSION['_config']['errmsg']; $_SESSION['_config']['errmsg'] = ""; ?> </p>
|
|
|
|
<? } ?>
|
|
|
|
<?
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!function_exists("showfooter"))
|
|
|
|
{
|
|
|
|
function showfooter()
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="siteInfo">
|
|
|
|
<? if(!$_SERVER["HTTPS"]) { ?><!--ONESTAT SCRIPTCODE START-->
|
|
|
|
<script type="text/javascript" src="onestat.js"></script>
|
|
|
|
<noscript>
|
|
|
|
<a href="http://www.onestat.com/asp/login.asp?sid=164863">
|
|
|
|
<img src="http://stat.onestat.com/asp/stat.asp?tagver=1&sid=164863&js=no&" alt="this site tracked by onestat.com" />
|
|
|
|
</a>
|
|
|
|
</noscript>
|
|
|
|
<!--ONESTAT SCRIPTCODE END--><? } ?>
|
2007-04-04 12:31:33 +00:00
|
|
|
<a href="index.php?id=12"><?=_("About Us")?></a> | <a href="index.php?id=13"><?=_("Donations")?></a> | <a href="http://wiki.cacert.org/wiki/CAcertIncorporated"><?=_("Association Membership")?></a> |
|
2005-01-03 01:03:03 +00:00
|
|
|
<a href="index.php?id=10"><?=_("Privacy Policy")?></a> |
|
2005-02-16 18:11:53 +00:00
|
|
|
<a href="index.php?id=51"><?=_("Mission Statement")?></a> | <a href="index.php?id=11"><?=_("Contact Us")?></a> |
|
2006-08-14 14:47:04 +00:00
|
|
|
©2002-2006 by CAcert</div>
|
2004-10-16 00:28:17 +00:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html><?
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|