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

include_once("auth.php");
include("../languages/".$shortlang."/scripts.inc.php");

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

$id = db_query("select seriennummer, lizenz, ablauf, hwaddr, ip, version, hinweis from register");
$werte = db_fetch_array($id);
$seriennummer = $werte["seriennummer"];
$lizenz = $werte["lizenz"];
$ablauf = $werte["ablauf"];
$version = $werte["version"];
$hwaddr = $werte["hwaddr"];
$ip = $werte["ip"];
list ($zeit, $status) = explode("::", $werte["hinweis"]);
$status = mlf_text($status)." (".date($lang_format_datetime_long, $zeit).")";

if ((istleer($seriennummer)) && (!istleer($hwaddr)) && (!istleer($ip))) { header("Location: register.php"); exit(); }
?>
<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>
function doChange()
{
document.forms[0].submit();
}
</script>
<table class="tblbgcolor" align="left" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr>
    <TD valign="top"><? echo ltext("reg_index_title"); ?>
<table class="tblbgcolor" align="left" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
        <tr> 
          <td valign="top"><b><? echo ltext("reg_index_version"); ?></b></td>
          <td>
            <pre><? echo $version; ?></pre>
          </td>
        </tr>
        <tr> 
          <td valign="top"><b><? echo ltext("reg_index_valid"); ?></b></td>
          <td>
            <pre><? echo date($lang_format_datetime_long, $ablauf); ?></pre>
          </td>
        </tr>
        <tr> 
          <td valign="top"><b><? echo ltext("reg_index_sn"); ?></b></td>
          <td>
            <pre><? echo $seriennummer; ?></pre>
          </td>
        </tr>
        <tr> 
          <td valign="top"><b><? echo ltext("reg_index_licence"); ?></b></td>
          <td>
            <pre><? echo $lizenz; ?></pre>
          </td>
        </tr>
        <tr> 
          <td valign="top"><b><? echo ltext("reg_index_status"); ?></b></td>
          <td>
            <? echo $status; ?>
          </td>
        </tr>
      </table>
    </TD>
  </TR>
</TABLE>
</BODY>
</HTML>
