<?
	if ($lang_charset) 
		include('tpl/standard/lang/'.$cfg_dedi['backend_lang'].'_'.$lang_charset.'/lang_general.php');
	else
		include('tpl/standard/lang/'.$cfg_dedi['backend_lang'].'_iso-8859-1/lang_general.php');
?>
<html>
<head>
  <title>der-dirigent <?PHP echo $cfg_dedi['version']; ?> :: Login</title>
<link rel="stylesheet" type="text/css" href="tpl/standard/css/styles.css">
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<table width="100%"  border=0 cellspacing="0" cellpadding="0">
  <tr>
    <td width="10" rowspan="4"><img src="<?PHP echo $cfg_dedi['dedi_html_path'].'tpl/'.$cfg_dedi['skin']; ?>/img/space.gif" width="10" height="10"></td>
    <td width="100%"><img src="<?PHP echo $cfg_dedi['dedi_html_path'].'tpl/'.$cfg_dedi['skin']; ?>/img/space.gif" width="10" height="10"></td>
    <td width="10" rowspan="4"><img src="<?PHP echo $cfg_dedi['dedi_html_path'].'tpl/'.$cfg_dedi['skin']; ?>/img/space.gif" width="10" height="10"></td>
  </tr>
  <tr>
    <td><?PHP echo $dedi_lang['login_pleaselogin'] ?><br>
    <form name="login" action="<?php print $this->url() ?>" method="post">
    <table border=0 cellspacing=$cellspacing cellpadding=$cellpadding><script language="javascript" src="<?PHP echo $cfg_dedi['dedi_html_path'].'tpl/'.$cfg_dedi['skin']; ?>/js/sniffer.js"></script>
      <tr valign=top align=left>
        <td width=150><?PHP echo $dedi_lang['login_username'].": "; ?></td>
        <td><input type="text" name="username" value="<?php print (isset($this->auth['uname']) ? $this->auth['uname'] : '') ?>" size=32 maxlength=32></td>
      </tr>
      <tr valign=top align=left>
        <td><?PHP echo $dedi_lang["login_password"].": "; ?></td>
        <td><input type="password" name="password" size=32 maxlength=32></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td align=right><input type="image" src="<?PHP echo $cfg_dedi['dedi_html_path'].'tpl/'.$cfg_dedi['skin']."/img/but_login.gif"; ?>" name="submitbtn" value="Login now" border=0></td>
      </tr>
    </table><?php global $username; if (isset($username)): ?><!-- failed login code --><p>
    <table cellspacing="0" cellpadding="0" border="0">
      <tr>
        <td colspan=2><font color=red><b><?PHP echo $dedi_lang['login_invalidlogin']; ?></b></font></td>
      </tr>
    </table><?php endif ?><?php global $error; if ($error=='noclient'): ?><!-- failed login code --><p>
    <table>
      <tr>
        <td colspan=2><font color=red><b><?PHP echo $dedi_lang['login_noclient']; ?></b></font></td>
      </tr>
    </table><?php endif ?>
    </table>
    <!-- Set up the form with the challenge value and an empty reply value -->
    <input type="hidden" name="challenge" value="<?php print $challenge ?>">
    <input type="hidden" name="response"  value="">
    <input type="hidden" name="area"  value="con">
    </form>
    </td>
  </tr>
</table>
</body>
<script language="JavaScript">
<!--
  // Activate the appropriate input form field.
  if (document.login.username.value == '') {
    document.login.username.focus();
  } else {
    document.login.password.focus();
  }
// -->
</script>
<?PHP echo "\n $mysql_debug"; ?>
</html>