<?
########## Confixx(R) 3.0 Professional ############
####### Copyright SWsoft, Inc. 2004-2005 ##########
#### http://www.sw-soft.com - info@sw-soft.com ####

include("settings.inc.php");
include("functions.inc.php");
include('sessions.inc.php');

$miscf = $default_language."/misc.inc.php";
include(dirname(__FILE__) . "/languages/$miscf");

$strSkinName = '/skins/skin_1';
//include("../languages/$langf");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<title>Confixx Professional</title>
<META content="text/html; charset=<?=$lang_html_charset?>" http-equiv=Content-Type>
<LINK href="<?=$strSkinName?>/style.css" rel=stylesheet type=text/css>
</HEAD>

<BODY bgColor=#ffffff bottomMargin=0 leftMargin=0 topMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0" onload="document.loginform.username.focus()">
<form name="topredirect" action="index.php" target="_top" method="GET"></form>
<script>
if(window != parent)
{
	document.topredirect.submit();
}
</script>
<br>
<TABLE border=0 cellPadding=0 cellSpacing=0 align="center" width="400">
<TR> 
	<TD valign="top" align="center"><img src="/loginscreen.gif" width="396" height="85"></TD>
</TR>
<? if($_SESSION['_error']): ?>
<TR>
	<TD align="center"><br><p><?=$_SESSION['_error']?></p></TD>
</TR>
<? $_SESSION['_error'] = false; endif; ?>
<TR><TD><fieldset><legend><?=ltext('form_please_login')?></legend>
<TABLE border=0 cellPadding=2 cellSpacing=2 align="center" width="100%">
<FORM name="loginform" action="/login.php" method="POST" target="_top">
<? if($_cat): ?>
<INPUT type="hidden" name="_cat" value="<?=$_cat?>">
<? endif; ?>
<TR>
<TD colspan="2"><?=ltext('form_logintext')?></TD>
</TR>
<TR>
	<TD width="20%" align="right"><?=ltext('form_username')?></TD>
	<TD width="80%"><INPUT type="text" name="username" style="width: 50%"></TD>
</TR>
<TR>
	<TD width="20%" align="right"><?=ltext('form_password')?></TD>
	<TD width="80%"><INPUT type="password" name="password" style="width: 50%" maxlength="<?= MaxPwdLength ?>"></TD>
</TR>
<TR>
	<TD colspan="2" align="right"><?=std_button(ltext('form_login'), 'javascript:document.forms[\'loginform\'].submit()')?></TD>
</TR>
</FORM>
</TABLE></fieldset>
</TD></TR>
<TR>
	<TD><fieldset><LEGEND><?=ltext('lost_pwd_forgot')?></LEGEND><TABLE border=0 cellPadding=2 cellSpacing=2 align="center" width="100%">
	<tr>
	<td><?=ltext('lost_pwd_forgot_text')?></td>
	</tr>
	<tr>
	<td align="right"><?=std_button(ltext('form_get_password'), 'javascript:location.href=\'/lostpwd.php\'')?></td>
	</tr>
	</TABLE></fieldset></TD>
</TR>
<TR>
</TR>
</TABLE>
</BODY>
</HTML>
