<?php

/***************************************************************************

 top.php
 --------
 copyright : (C) 2002-2003 The ezContents Development Team

 ***************************************************************************/

/***************************************************************************
 The ezContents Development Team offers no warranties on this script.
 The owner/licensee of the script is solely responsible for any problems
 caused by installation of the script or use of the script.

 All copyright notices regarding ezContents must remain intact on the
 scripts and in the HTML for the scripts.

 For more info on ezContents,
 visit http://www.ezcontents.org/

/***************************************************************************

/***************************************************************************
 *
 *	This program is free software; you can redistribute it and/or modify
 *	it under the terms of the License which can be found within the
 *	zipped package.
 *
 ***************************************************************************/

include_once ("rootdatapath.php");
require_once ($GLOBALS["rootdp"]."include/config.php");
require_once ($GLOBALS["rootdp"]."include/db.php");
require_once ($GLOBALS["rootdp"]."include/session.php");
include ($GLOBALS["rootdp"]."include/access.php");
include ($GLOBALS["rootdp"]."include/functions.php");
include ("adminfunctions.php");
include ($GLOBALS["rootdp"]."include/settings.php");
includeLanguageFiles('admin');


adminheader();
?>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="topback">
<table border=0 width="100%">
	<tr><td align="<?php echo $GLOBALS["left"]; ?>" valign="top">
			<a href="<?php echo BuildLink('start.php'); ?>" <?php echo BuildLinkMouseOver($GLOBALS["tsTitle"]); ?> target="content">
			<?php
			if ($GLOBALS["gsAdminStyle"] != '') {
				if (file_exists($GLOBALS["rootdp"].$GLOBALS["style_home"].$GLOBALS["gsAdminStyle"].'/images/logo_maint.gif') == true) {
					$homefile = imagehtmltag($GLOBALS["style_home"].$GLOBALS["gsAdminStyle"],'/images/logo_maint.gif','ezContents Maintenance','',0);
				} else {
					$homefile = imagehtmltag($GLOBALS["icon_home"],'logo_maint.gif','ezContents Maintenance','',0);
				}
			} else {
				$homefile = imagehtmltag($GLOBALS["icon_home"],'logo_maint.gif','ezContents Maintenance','',0);
			}
			if ($homefile == '') { echo '<H1>ezContents</H1>'; } else { echo $homefile; }
			?>
			</a>
		</td>
		<td align="<?php echo $GLOBALS["right"]; ?>" valign="top">
			<a class="menulink" href="<?php echo BuildLink($GLOBALS["rootdp"].'about.php'); ?>" <?php echo BuildLinkMouseOver($GLOBALS["tAbout"]); ?> target="content">
			<?php echo $GLOBALS["tAbout"]; ?></a><br />
			<a class="menulink" href="<?php echo BuildLink($GLOBALS["rootdp"].'index.php'); ?>" <?php echo BuildLinkMouseOver($GLOBALS["tViewEzContents"]); ?> target="_blank">
			<?php echo $GLOBALS["tViewEzContents"]; ?></a>
		</td>
	</tr>
</table>
</body>
</html>
