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

include_once("auth.php");

include_once("../include/cron_functions.php");

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

$id = db_query ( "SELECT * FROM admin" );
$admin = db_fetch_array($id);

$id = db_query("select anbieter from kunden where kunde='$kunde'");
$werte = db_fetch_array($id);
$anbieter = $werte["anbieter"];

## kundendaten holen
$id = db_query("select * from kunden where kunde='$kunde'");
$werte = db_fetch_array($id);
$anmeldedatum = $werte["anmeldedatum"];
$anmeldedatum = date($lang_format_date, $anmeldedatum);
$name = $werte["name"];
$firma = $werte["firma"];
$anschrift = $werte["anschrift"];
$plzort = $werte["plzort"];
$telefon = $werte["telefon"];
$fax = $werte["fax"];
$emailadresse = $werte["emailadresse"];
$kundennummer = $werte["kundennummer"];
$freifeldname1 = $werte["freifeldname1"];
$freifeldname2 = $werte["freifeldname2"];
$freifeldname3 = $werte["freifeldname3"];
$freifeldwert1 = $werte["freifeldwert1"];
$freifeldwert2 = $werte["freifeldwert2"];
$freifeldwert3 = $werte["freifeldwert3"];
$maxpop = $werte["maxpop"];
$maxkb = $werte["maxkb"];
$maxmysql = $werte["maxmysql"];
$maxcronjobs = $werte["maxcronjobs"];
$maxemail = $werte["maxemail"];
$maxautoresponder = $werte["maxautoresponder"];
$maxftp = $werte["maxftp"];
$maxtransfer = $werte["maxtransfer"];
$maxsubdomains = $werte["maxsubdomains"];
$ftp = $werte["ftp"];
$php = $werte["php"];
$wildcard = $werte["wildcard"];
$perl = $werte["perl"];
$ssi = $werte["ssi"];
$shell = $werte["shell"];
$scponly = $werte["scponly"];
$statistik = $werte["statistik"];
$pwschutz = $werte["pwschutz"];
$fehlerseiten = $werte["fehlerseiten"];
$webftp = $werte["webftp"];
$webmail = $werte["webmail"];
$coldfusion = $werte["coldfusion"];
$gesperrt = $werte["gesperrt"];
$spamfilter = $werte["spamfilter"];
$maillist = $werte['maxmaillist'];
$maxatdomains = $werte['maxatdomains'];
## /kundendaten holen

# Anbieterreche auslesen
$id = db_query("select * from anbieter where anbieter='$anbieter'");
$serverkann = db_fetch_array($id);
$skpop = $serverkann["pop"];
$skemail = $serverkann["email"];
$skautoresponder = $serverkann["autoresponder"];
$skftp = $serverkann["ftp"];
$sksubdomains = $serverkann["subdomains"];
$skmysql = $serverkann["mysql"];
$skphp = $serverkann["php"];
$skperl = $serverkann["perl"];
$skssi = $serverkann["ssi"];
$skshell = $serverkann["shell"];
$skscponly = $serverkann["scponly"];
$skstatistik = $serverkann["statistik"];
$skpwschutz = $serverkann["pwschutz"];
$skfehlerseiten = $serverkann["fehlerseiten"];
$skwebftp = $serverkann["webftp"];
$skwebmail = $serverkann["webmail"];
$skcoldfusion = $serverkann["coldfusion"];
$skspamfilter = $serverkann["spamfilter"];
$skmaillist = $serverkann['maxmaillist'];
$skatdomains = $serverkan['maxatdomains'];
# /Anbieterrechte auslesen

# speicher berechnen
$id = db_query("select sum(kbhomedir) as kbhomedir, sum(kbdb) as kbdb from kunden where kunde='$kunde'");
$kbhomedir = $werte["kbhomedir"];
$kbdb = $werte["kbdb"];
$kbgesamt = $kbdb + $kbhomedir;
# /speicher berechnen

## transfer berechnen
$monat = date("n");
$jahr = date("Y");
$tag = date("j");

$jahrstr = $jahr;
if 	($monat == 1) { $monatstr = "Januar"; }
elseif 	($monat == 2) { $monatstr = "Februar"; }
elseif 	($monat == 3) { $monatstr = "M&auml;rz"; }
elseif 	($monat == 4) { $monatstr = "April"; }
elseif 	($monat == 5) { $monatstr = "Mai"; }
elseif 	($monat == 6) { $monatstr = "Juni"; }
elseif 	($monat == 7) { $monatstr = "Juli"; }
elseif 	($monat == 8) { $monatstr = "August"; }
elseif 	($monat == 9) { $monatstr = "September"; }
elseif 	($monat == 10) { $monatstr = "Oktober"; }
elseif 	($monat == 11) { $monatstr = "November"; }
elseif 	($monat == 12) { $monatstr = "Dezember"; }

$id = db_query("select sum(web) as transferweb, sum(ftp) as transferftp, sum(email) as transferemail from transfer where kunde='$kunde' and jahr='$jahr' and monat='$monat' and geloescht = 0");
$werte = db_fetch_array($id);
$transferweb = $werte["transferweb"];
$transferftp = $werte["transferftp"];
$transferemail = $werte["transferemail"];
$transfergesamt = $transferftp + $transferweb + $transferemail;
## /transfer berechnen

$id = db_query("select domain from domains where kunde='$kunde' and richtigedomain='1' order by domain");
while ($werte = db_fetch_array($id)) {

if (strlen($domains) > 0) { $domains .= "<br>" . $werte["domain"]; }
 else { $domains = $werte["domain"]; }
}

## anzahl kunden, domains, pop3, email, subdomains, dbs, ipadressen
$id = db_query("select count(kunde) as anzahlkunden from kunden where kunde='$kunde'");
$werte = db_fetch_array($id);
$anzahlkunden = $werte["anzahlkunden"];

$id = db_query("select count(domain) as anzahldomains from domains where kunde='$kunde' and richtigedomain=1");
$werte = db_fetch_array($id);
$anzahldomains = $werte["anzahldomains"];

$id = db_query("select count(domain) as anzahlsubdomains from domains where kunde='$kunde' and richtigedomain=0");
$werte = db_fetch_array($id);
$anzahlsubdomains = $werte["anzahlsubdomains"];

$id = db_query("SELECT count(*) as atcount FROM atdomains a, domains d ".
							 "WHERE d.kunde='$kunde' AND d.id=a.id_from");
$werte = db_fetch_array($id);
$anzahlatdomains = $werte["atcount"];
							 

$id = db_query("select count(account) as anzahlpop from pop3 where kunde='$kunde'");
$werte = db_fetch_array($id);
$anzahlpop = $werte["anzahlpop"];

$id = db_query("select count(account) as anzahlftp from ftp where kunde='$kunde'");
$werte = db_fetch_array($id);
$anzahlftp = $werte["anzahlftp"];

$id = db_query("select count(ident) as anzahlemail from email where kunde='$kunde'");
$werte = db_fetch_array($id);
$anzahlemail = $werte["anzahlemail"];

$id = db_query("select count(ident) as anzahlautoresponder from autoresponder where kunde='$kunde'");
$werte = db_fetch_array($id);
$anzahlautoresponder = $werte["anzahlautoresponder"];

$id = db_query("select ip from ipadressen where kunde='$kunde'");
$werte = db_fetch_array($id);
$kundenipstr = $werte["ip"];
if (istleer($kundenipstr)) { $kundenipstr = ltext("stku2_st_ip_addr"); }


##anzahl mysqldbs
$id = db_query("select count(datenbank) as mysql from mysql_datenbanken where kunde = '$kunde'");
$werte = db_fetch_array($id);
$anzahlmysql = $werte["mysql"];
##anzahl mysqldbs

##
$cronjobs = count_cron_jobs_user($kunde);
##

## maillist
if($skmaillist)
{
	$id = db_query('SELECT COUNT(*) AS cnt FROM maillist INNER JOIN domains ON (domains.id = maillist.domain_id) WHERE domains.kunde=\''.$kunde.'\'');
	$werte = db_fetch_array($id);
	$maillist_count = $werte['cnt'];
}
## //maillist

## idn
if($skidn)
{
	$id = db_query('SELECT COUNT(*) AS cnt FROM idn_aliases INNER JOIN domains ON (domains.id = idn_aliases.domain_id) WHERE domains.kunde=\''.$kunde.'\'');
	$werte = db_fetch_array($id);
	$idn_count = $werte['cnt'];
}
## //idn

## /anzahl kunden, domains, pop3, email, subdomains, dbs,  ipadressen


?>
<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 align="left" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
  <TR> 
    <TD> 
      <P><b><? echo ltext("stku2_title1",array($kunde,$anbieter)); ?></b></P>
<? if ($gesperrt > 0) { ?>
	  <P><font size="-1" color="#CC0000"><? echo ltext("stku2_descr1"); ?></font></P>
<? } ?>
<table class="tblbgcolor" align="left" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr><td colspan=2 class="titel-3" ><? echo ltext("stku2_title2"); ?>
</td></tr>
        <tr>
          <td align="right"><? echo ltext("stku2_cell_date"); ?></td>
          <td><? echo $anmeldedatum; ?></td>
        </tr>

<? if ($name <> "") { ?>

        <tr> 
          <td> 
            <div align=right> 
              <? echo ltext("stku2_cell_firm"); ?>
              </div>
          </td>
          <td><? echo $name; ?></td>
        </tr>

<? } ?>
<? if ($firma <> "") { ?>

        <tr> 
          <td  align="right"> 
            <? echo ltext("stku2_cell_firm"); ?>
            </td>
          <td  ><? echo $firma; ?></td>
        </tr>
<? } ?>
<? if ($anschrift <> "") { ?>

        <tr> 
          <td> 
            <div align=right>
              <? echo ltext("stku2_cell_address"); ?>
              </div>
          </td>
          <td><? echo $anschrift; ?></td>
        </tr>

<? } ?>
<? if ($plzort <> "") { ?>

        <tr> 
          <td> 
            <div align="right">
              <? echo ltext("stku2_cell_city"); ?>
              </div>
          </td>
          <td><? echo $plzort; ?></td>
        </tr>

<? } ?>
<? if ($telefon <> "") { ?>

        <tr> 
          <td> 
            <div align="right">
              <? echo ltext("stku2_cell_tel"); ?>
              </div>
          </td>
          <td><? echo $telefon; ?></td>
        </tr>

<? } ?>
<? if ($fax <> "") { ?>

        <tr> 
          <td> 
            <div align=right>
              <? echo ltext("stku2_cell_fax"); ?>
              </div>
          </td>
          <td><? echo $fax; ?></td>
        </tr>

<? } ?>

<? if ($emailadresse <> "") { ?>

        <tr> 
          <td> 
            <div align=right>
              <? echo ltext("stku2_cell_email"); ?>
              </div>
          </td>
          <td><? echo $emailadresse; ?></td>
        </tr>

<? } ?>

<? if ($kundennummer <> "") { ?>

        <tr> 
          <td> 
            <div align="right">
              <? echo ltext("stku2_cell_cid"); ?>
              </div>
          </td>
          <td> <? echo $kundennummer; ?></td>
        </tr>

<? } ?>

<? if ($freifeldwert1 <> "") { ?>

        <tr> 
          <td  width=194> 
            <div align="right"><? echo $freifeldname1; ?></div>
          </td>
          <td  width=185> <? echo $freifeldwert1; ?></td>
        </tr>

<? } ?>

<? if ($freifeldwert2 <> "") { ?>

        <tr> 
          <td  width=194> 
            <div align="right"><? echo $freifeldname2; ?></div>
          </td>
          <td  width=185> <? echo $freifeldwert2; ?></td>
        </tr>
<? } ?>

<? if ($freifeldwert3 <> "") { ?>

        <tr> 
          <td  width=194> 
            <div align="right"><? echo $freifeldname3; ?></div>
          </td>
          <td  width=185> <? echo $freifeldwert3; ?></td>
        </tr>

<? } ?>

      <br>
      <tr><td colspan=2 class="titel-3" ><? echo ltext("stku2_title3"); ?></td></tr>
      <tr>
          <td  width=194 align="right"> 
            <? echo ltext("stku2_cell_domains"); ?></td>
          <td  width=185><? echo $domains; ?></td>
        </tr>
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stku2_cell_pop3"); ?>
              </div>
          </td>
          <td <? if (($anzahlpop > $maxpop) && ($maxpop <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($anzahlpop,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maxpop,ltext("g_nolimit")); ?>)</td>
        </tr>
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stku2_cell_email"); ?>
              </div>
          </td>
          <td <? if (($anzahlemail > $maxemail) && ($maxemail <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($anzahlemail,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maxemail,ltext("g_nolimit")); ?>)</td>
        </tr>
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stku2_cell_autoresponder"); ?>
              </div>
          </td>
          <td <? if (($anzahlautoresponder > $maxautoresponder) && ($maxautoresponder <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($anzahlautoresponder,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maxautoresponder,ltext("g_nolimit")); ?>)</td>
        </tr>
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stku2_cell_subdomains"); ?>
              </div>
          </td>
          <td <? if (($anzahlsubdomains > $maxsubdomains) && ($maxsubdomains <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($anzahlsubdomains,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maxsubdomains,ltext("g_nolimit")); ?>)</td>
        </tr>
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stku2_cell_mysql"); ?>
              </div>
          </td>
          <td <? if (($anzahlmysql > $maxmysql) && ($maxmysql <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($anzahlmysql, ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maxmysql, ltext("g_nolimit")); ?>)</td>
        </tr>

				<tr>		
          <td  width=194> 
            <div align="right">
              <? echo ltext("stde_cell_atdomains"); ?>
              </div>
          </td>
          <td <? if (($anzahlatdomains > $maxatdomains) && ($maxatdomains <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($anzahlatdomains,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maxatdomains,ltext("g_nolimit")); ?>)</td>
        </tr>
<?
if ( $admin["cronjobs"] ){
?>
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stku2_cell_cron"); ?>
              </div>
          </td>
          <td <? if (($cronjobs > $maxcronjobs) && ($maxcronjobs <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($cronjobs,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maxcronjobs,ltext("g_nolimit")); ?>)</td>
        </tr>
<?
}
?>
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stku2_cell_ftpusers"); ?>
              </div>
          </td>
          <td <? if (($anzahlftp > $maxftp) && ($maxftp <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($anzahlftp,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maxftp,ltext("g_nolimit")); ?>)</td>
        </tr>
<? if( $admin["majordomo"]){ ?>
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stku2_cell_maillist"); ?>
              </div>
          </td>
          <td <? if (($maillist_count > $maillist) && ($maillist <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($maillist_count,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maillist,ltext("g_nolimit")); ?>)</td>
        </tr>
<? } 
if ( 0 ) {
?>
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stku2_cell_idn"); ?>
              </div>
          </td>
          <td <? if (($idn_count > $idn) && ($idn <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($idn_count,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($idn,ltext("g_nolimit")); ?>)</td>
        </tr>
<?
							}
?>
      <tr><td colspan=2 class="titel-3" ><? echo ltext("stku2_title4"); ?></td></tr>
        <tr> 
          <td  width=194>
            <div align=right>
              <? echo ltext("stku2_cell_maxspace"); ?>
              </div>
          </td>
          <td  width=185><? echo sinnv_kbwert($maxkb,ltext("g_nolimit")); ?></td>
        </tr>
        <tr>
          <td  width=194>
            <div align=right>
              <? echo ltext("stku2_cell_vusedspace"); ?>
              </div>
          </td>
          <td <? if (($kbgesamt > $maxkb) && ($maxkb <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185>
            <? echo sinnv_kbwert($kbgesamt,ltext("g_nolimit")); ?></td>
        </tr>
        <tr>
          <td  width=194>
            <div align=right>
              <? echo ltext("stku2_cell_dufiles"); ?>
              </div>
          </td>
          <td  width=185>
            <? echo sinnv_kbwert($kbhomedir,ltext("g_nolimit")); ?></td>
        </tr>
        <tr>
          <td  width=194>
            <div align=right>
              <? echo ltext("stku2_cell_dudb"); ?>
              </div>
          </td>
          <td  width=185>
            <? echo sinnv_kbwert($kbdb,ltext("g_nolimit")); ?></td>
        </tr>
            <tr><td colspan=2 class="titel-3" ><? echo ltext("stku2_title5"); ?> <? echo "$monatstr $jahrstr"; ?></td></tr>
        <tr>
          <td  width=194>
            <div align=right>
              <? echo ltext("stku2_cell_maxtraffic"); ?>
              </div>
          </td>
          <td  width=185>
            <? echo sinnv_kbwert($maxtransfer,ltext("g_nolimit")); ?></td>
        </tr>
        <tr>
          <td  width=194>
            <div align=right>
              <? echo ltext("stku2_cell_usedtraffic"); ?>
              </div>
          </td>
          <td <? if (($transfergesamt > $maxtransfer) && ($maxtransfer <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185>
            <? echo sinnv_kbwert($transfergesamt,ltext("g_nolimit")); ?></td>
        </tr>
        <tr>
          <td  width=194> 
            <div align=right>
              <? echo ltext("stku2_cell_traffichttpd"); ?>
              </div>
          </td>
          <td  width=185>
            <? echo sinnv_kbwert($transferweb,ltext("g_nolimit")); ?></td>
        </tr>
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stku2_cell_trafficftp"); ?>
              </div>
          </td>
          <td  width=185> <? echo sinnv_kbwert($transferftp,ltext("g_nolimit")); ?></td>
        </tr>
<? if ($show_emailtransfer == 1) { ?>
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stku2_cell_trafficemail"); ?>
              </div>
          </td>
          <td  width=185> <? echo sinnv_kbwert($transferemail,ltext("g_nolimit")); ?></td>
        </tr>
<? } ?>	
	<tr> 
          <td  colspan="2" height="15"> 
            <div align="center"><b><a class=data href="statistik_kunde3.php?kunde=<? echo $kunde; ?>"><? echo ltext("stku2_cell_trafficlink"); ?> </a></b><a href="statistiken_details_transfer.php?kunde=<? echo $kunde; ?>"></a></div>
          </td>
        </tr>
<tr><td colspan=2 class="titel-3" ><? echo ltext("stku2_title6"); ?>
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stku2_cell_ip"); ?>
              </div>
          </td>
          <td  width=185> <? echo $kundenipstr; ?></td>
        </tr>
      <tr><td colspan=2 class="titel-3" ><? echo ltext("stku2_title7"); ?>
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stku2_cell_wildcard"); ?>
              </div>
          </td>
          <td  width=185>
            <? if ($wildcard == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
         <? if ($admin["ftp"] == 1) { ?> 
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stku2_cell_ftp"); ?>
              </div>
          </td>
          <td  width=185>
            <? if ($ftp == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> 
		
        <? if ($admin["php"] == 1) { ?> 
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stku2_cell_php"); ?>
              </div>
          </td>
          <td  width=185>
            <? if ($php == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> 

		<? if ($admin["perl"] == 1) { ?> 
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stku2_cell_perl"); ?>
              </div>
          </td>
          <td  width=185>
            <? if ($perl > 0) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($admin["ssi"] == 1) { ?> 
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stku2_cell_ssi"); ?>
              </div>
          </td>
          <td  width=185> <? if ($ssi == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> 
<? 
if ($admin["shell"] == 1) { 
?> 
  <tr> 
    <td  width=194 align="right">
      <? echo ltext("stku2_cell_shell"); ?>
    </td>
    <td  width=185><? 
  if ($shell == 1) { 
    echo ltext("stde_activated"); 
  } else { 
    echo ltext("stde_deactivated"); 
  } ?></td>
   </tr>
<? 
}
if ($admin["scponly"] == 1) { 
?> 
  <tr> 
    <td  width=194 align="right">
      <? echo ltext("stku2_cell_scponly"); ?>
    </td>
    <td  width=185><? 
  if ($scponly == 1) { 
    echo ltext("stde_activated"); 
  } else { 
    echo ltext("stde_deactivated"); 
  } ?></td>
   </tr>
<? 
} 
if ($admin["statistik"] == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stku2_cell_webalizer"); ?>
            </td>
          <td  width=185><? if ($statistik == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($admin["pwschutz"] == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stku2_cell_pwdir"); ?>
            </td>
          <td  width=185><? if ($pwschutz == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($admin["fehlerseiten"] == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stku2_cell_errorfiles"); ?>
            </td>
          <td  width=185><? if ($fehlerseiten == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($admin["webftp"] == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stku2_cell_webftp"); ?>
            </td>
          <td  width=185><? if ($webftp == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($admin["webmail"] == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stku2_cell_webmail"); ?>
            </td>
          <td  width=185><? if ($webmail == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?>
        <? if($admin["coldfusion"] == 1): ?>
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stku2_cell_coldfusion"); ?>
            </td>
          <td  width=185><? if ($coldfusion == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? endif; ?>
        <? if($admin["spamfilter"] == 1): ?>
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stku2_cell_spamfilter"); ?>
            </td>
          <td  width=185><? if ($spamfilter == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? endif; ?>

        </table>
    </TD>
  </TR>
   
</TABLE>
</BODY>
</HTML>

<?
db_close();
?>
