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

include_once( "../include/class.SQLInteger.php" );
include_once( "../include/class.SQLString.php" );
include_once("auth.php");

## mysql verbindung aufbauen
db_connect($db_host, $db_user, $db_pass);
## /mysql verbindung aufbauen

$id = safe_query( "select maxftp, webmail, webftp, pwschutz, fehlerseiten, perl from kunden where kunde = ? ", TRUE, new SQLString( $PHP_AUTH_USER ) );
$werte = db_fetch_array($id);
$maxftp = $werte["maxftp"];
$skwebmail = $werte["webmail"];
$skwebftp = $werte["webftp"];
$skfehlerseiten = $werte["fehlerseiten"];
$skpwschutz = $werte["pwschutz"];
$skperl = $werte["perl"];
$id = safe_query( "select * from users where ident = ?  and kunde = ? ", TRUE, new SQLInteger( $ident ), new SQLString( $PHP_AUTH_USER ) );
$werte = db_fetch_array($id);
$login = $werte["login"];

$id = safe_query( "select * from pwschutz where ident = ?  and kunde = ? ", TRUE, new SQLInteger( $parent ), new SQLString( $PHP_AUTH_USER ) );
$werte = db_fetch_array($id);
$pfad = $werte["pfad"];
?>
<HTML>
<HEAD>
<META content="text/html; charset=<? echo $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">
<br><? include("../fehler.inc.php"); ?>
<script>
<?
echo js_f_call_help('', 'topwpw_subtitle');
?>
function doChange()
{
document.forms[0].submit();
}
</script>
      <form action="tools_pwschutz_pwaendern2.php" method="post">
<table class="tblbgcolor" align="left" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
          <tr > 
            <td class="titel-3" >
              <? echo ltext("topwpw_cell_user"); ?>
              </td>
            <td class="titel-3" >
              <? echo $login; ?>
              <input type="hidden" name="ident" value="<? echo $ident; ?>">
              <input type="hidden" name="parent" value="<? echo $parent; ?>">
              <input type="hidden" name="pfad" value="<? echo $pfad; ?>">
              </td>
          </tr>
          <tr > 
            <td >
              <? echo ltext("topwpw_cell_pw1"); ?>
              </td>
            <td > 
              <input type="password" name="pass1" maxlength=<?= MaxPwdLength ?>>
            </td>
          </tr>
          <tr > 
            <td>
              <? echo ltext("topwpw_cell_pw2"); ?>
              </td>
            <td > 
              <input type="password" name="pass2" maxlength=<?= MaxPwdLength ?>>
            </td>
          </tr>
          <tr > 
            <td >&nbsp;</td>
            <td><? echo std_button(ltext('topwpw_btn_change'), 'javascript:doChange()') ?></td>
          </tr>
        </table>
      </form>
</BODY>
</HTML>

<?
db_close();
?>
