<?php

$domain=ereg_replace('[^\.]*\.(.*)$','\1',$_SERVER['HTTP_HOST']);
$group_name=ereg_replace('([^\.]*)\..*$','\1',$_SERVER['HTTP_HOST']);

echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en   ">

  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><?php echo $project_name; ?></title>
	<script language="JavaScript" type="text/javascript">
	<!--
	function help_window(helpurl) {
		HelpWin = window.open( helpurl,'HelpWindow','scrollbars=yes,resizable=yes,toolbar=no,height=400,width=400');
	}
	// -->
		</script>

<style type="text/css">
	<!--
	BODY {
		margin-top: 3;
		margin-left: 3;
		margin-right: 3;
		margin-bottom: 3;
		background: white;
	}
	ol,ul,p,body,td,tr,th,form { font-family: verdana,arial,helvetica,sans-serif; font-size:small;
		color: #333333; }

	h1 { font-size: x-large; font-family: verdana,arial,helvetica,sans-serif; }
	h2 { font-size: large; font-family: verdana,arial,helvetica,sans-serif; }
	h3 { font-size: medium; font-family: verdana,arial,helvetica,sans-serif; }
	h4 { font-size: small; font-family: verdana,arial,helvetica,sans-serif; }
	h5 { font-size: x-small; font-family: verdana,arial,helvetica,sans-serif; }
	h6 { font-size: xx-small; font-family: verdana,arial,helvetica,sans-serif; }

	pre,tt { font-family: courier,sans-serif }

	a:link { text-decoration:none }
	a:visited { text-decoration:none }
	a:active { text-decoration:none }
	a:hover { text-decoration:underline; color:red }

	.titlebar { color: black; text-decoration: none; font-weight: bold; }
	a.tablink { color: black; text-decoration: none; font-weight: bold; font-size: x-small; }
	a.tablink:visited { color: black; text-decoration: none; font-weight: bold; font-size: x-small; }
	a.tablink:hover { text-decoration: none; color: black; font-weight: bold; font-size: x-small; }
	a.tabsellink { color: black; text-decoration: none; font-weight: bold; font-size: x-small; }
	a.tabsellink:visited { color: black; text-decoration: none; font-weight: bold; font-size: x-small; }
	a.tabsellink:hover { text-decoration: none; color: black; font-weight: bold; font-size: x-small; }
	-->
</style>

</head>

<body>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

	<tr>
		<td><a href="/"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/logo.png" border="0" alt="" /></a></td>
	</tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

	<tr>
		<td>&nbsp;</td>
		<td colspan="3">



		<!-- start tabs -->

	<tr>
		<td align="left" bgcolor="#dd8a3d" width="9"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/tabs/topleft.png" height="9" width="9" alt="" /></td>
		<td bgcolor="#dd8a3d" width="30"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/clear.png" width="30" height="1" alt="" /></td>
		<td bgcolor="#dd8a3d"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/clear.png" width="1" height="1" alt="" /></td>
		<td bgcolor="#dd8a3d" width="30"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/clear.png" width="30" height="1" alt="" /></td>
		<td align="right" bgcolor="#dd8a3d" width="9"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/tabs/topright.png" height="9" width="9" alt="" /></td>
	</tr>

	<tr>

		<!-- Outer body row -->

		<td bgcolor="#dd8a3d"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/clear.png" width="10" height="1" alt="" /></td>
		<td valign="top" width="99%" bgcolor="#dd8a3d" colspan="3">

			<!-- Inner Tabs / Shell -->

			<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td align="left" bgcolor="#ffffff" width="9"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/tabs/topleft-inner.png" height="9" width="9" alt="" /></td>
				<td bgcolor="#ffffff"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/clear.png" width="1" height="1" alt="" /></td>
				<td align="right" bgcolor="#ffffff" width="9"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/tabs/topright-inner.png" height="9" width="9" alt="" /></td>
			</tr>

			<tr>
				<td bgcolor="#ffffff"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/clear.png" width="10" height="1" alt="" /></td>
				<td valign="top" width="99%" bgcolor="white">

	<!-- whole page table -->
<table width="100%" cellpadding="5" cellspacing="0" border="0">
<tr><td width="65%" valign="top">
<?php if ($handle=fopen('http://'.$domain.'/export/projtitl.php?group_name='.$group_name,'r')){
$contents = '';
while (!feof($handle)) {
	$contents .= fread($handle, 8192);
}
fclose($handle);
echo $contents; } ?>

<br>
<br>
<br>
<br>
<br>

<p>
<em>This project has not yet installed a webpage. See the <a href="http://ourproject.org/moin/Ourproject_FAQ">ourproject FAQ</a>, for more info.</em>
</p>

<br>
<br>
<br>
<br>
<br>

</td>

<td width="35%" valign="top">


<p>&nbsp;</p>
</td></tr></table>
			&nbsp;<p>
			<!-- end main body row -->


				</td>
				<td width="10" bgcolor="#ffffff"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/clear.png" width="2" height="1" alt="" /></td>
			</tr>
			<tr>
				<td align="left" bgcolor="#dd8a3d" width="9"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/tabs/bottomleft-inner.png" height="11" width="11" alt="" /></td>
				<td bgcolor="#ffffff"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/clear.png" width="1" height="1" alt="" /></td>
				<td align="right" bgcolor="#dd8a3d" width="9"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/tabs/bottomright-inner.png" height="11" width="11" alt="" /></td>
			</tr>
			</table>

		<!-- end inner body row -->

		</td>
		<td width="10" bgcolor="#dd8a3d"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/clear.png" width="2" height="1" alt="" /></td>
	</tr>
	<tr>
		<td align="left" bgcolor="#dd8a3d" width="9"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/tabs/bottomleft.png" height="9" width="9" alt="" /></td>
		<td bgcolor="#dd8a3d" colspan="3"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/clear.png" width="1" height="1" alt="" /></td>
		<td align="right" bgcolor="#dd8a3d" width="9"><img src="http://<?php echo $domain; ?>/themes/ourproject-def/images/tabs/bottomright.png" height="9" width="9" alt="" /></td>
	</tr>
</table>
</body>
</html>
