<?php

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

 loginreq.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.
 *
 ***************************************************************************/

$GLOBALS["rootdp"] = './';
require_once ($GLOBALS["rootdp"]."include/config.php");
require_once ($GLOBALS["rootdp"]."include/db.php");
require_once ($GLOBALS["rootdp"]."include/session.php");
include_once ($GLOBALS["rootdp"]."include/functions.php");
// This global is empty when framed.
if (($GLOBALS["gsUseFrames"] == 'Y') && ($EZ_SESSION_VARS["noframesbrowser"] != True)) {
	includeLanguageFiles('admin');
}

?>
<table border="1" cellpadding="1" cellspacing="0" align="center" valign="top" width="98%" class="headercontent">
	<tr><td class="tablecontent">
			&nbsp;<br />
			<?php
			if ($EZ_SESSION_VARS["LoginCookie"] != '') { echo $GLOBALS["tMustLogin"].' '; }
			else { echo $GLOBALS["tMustRegister"].' '; }
			?><span style="cursor:hand"><a onClick="javascript:window.open('<?php echo BuildLink('login.php'); ?>&topgroupname=<?php echo $HTTP_GET_VARS["topgroupname"]; ?>&groupname=<?php echo $HTTP_GET_VARS["groupname"]; ?>&subgroupname=<?php echo $HTTP_GET_VARS["subgroupname"]; ?>', 'Login', 'width=340,height=180,status=no,resizable=yes,scrollbars=no'); return(false);" <?php echo BuildLinkMouseOver($GLOBALS["tmLogin"]); ?> target="popup"><?php
			echo $GLOBALS["tLogin"]; ?></a></span> <?php echo $GLOBALS["tToAccessPrivate"]; ?>.<br />&nbsp;
		</td>
	</tr>
</table>
