<?
########## 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");
include_once("../include/module.Database.php");

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

## anbieterdaten holen
$id = db_query("select * from anbieter where anbieter='$anbieter'");
$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"];
$maxkunden = $werte["maxkunden"];
$maxpop = $werte["maxpop"];
$maxkb = $werte["maxkb"];
$maxmysql = $werte["maxmysql"];
$maxcronjobs = $werte["maxcronjobs"];
$maxemail = $werte["maxemail"];
$maxautoresponder = $werte["maxautoresponder"];
$maxftp = $werte["maxftp"];
$maxatdomains = $werte["maxatdomains"];
$maxtransfer = $werte["maxtransfer"];
$maxdomains = $werte["maxdomains"];
$maxsubdomains = $werte["maxsubdomains"];
$maxwildcards = $werte["maxwildcards"];
$php = $werte["php"];
$ftp = $werte["ftp"];
$perl = $werte["perl"];
$modpython = $werte["modpython"];
$ssi = $werte["ssi"];
$ssl = $werte["cssl"];
$shell = $werte["shell"];
$scponly = $werte["scponly"];
if ($scponly ==2) $scponly =1;
$statistik = $werte["statistik"];
$pwschutz = $werte["pwschutz"];
$fehlerseiten = $werte["fehlerseiten"];
$webftp = $werte["webftp"];
$webmail = $werte["webmail"];
$stdcgi = $werte["stdcgi"];
$frontpage = $werte["frontpage"];
$dbext = $werte["dbext"];
$phpupload = $werte["phpupload"];
$wap = $werte["wap"];
$coldfusion = $werte["coldfusion"];
$dirlist = $werte["dirlist"];
$spamfilter = $werte["spamfilter"];
$maxmaillist = $werte['maxmaillist'];
$gesperrt = $werte["gesperrt"];
## /anbieterdaten holen

# Serverfähigkeiten auslesen
$id = db_query("select * from admin");
$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"];
$skmodpython = $serverkann["modpython"];
$skssi = $serverkann["ssi"];
$skssl = $serverkann["cssl"];
$skfrontpage = $serverkann["frontpage"];
$skshell = $serverkann["shell"];
$skscponly = $serverkann["scponly"];
$skstatistik = $serverkann["statistik"];
$skpwschutz = $serverkann["pwschutz"];
$skfehlerseiten = $serverkann["fehlerseiten"];
$skwebftp = $serverkann["webftp"];
$skwebmail = $serverkann["webmail"];
$skstdcgi = $serverkann["stdcgi"];
$skphpupload = $serverkann["phpupload"];
$skwap = $serverkann["wap"];
$skcoldfusion = $serverkann["coldfusion"];
$skdirlist = $serverkann["dirlist"];
$skspamfilter = $serverkann["spamfilter"];
$skidn = $serverkann['idn'];
$skcronjobs = $serverkann['cronjobs'];
$skmaillist = $serverkann['majordomo'];
# /Serverfähigkeiten auslesen

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

$id = db_query("select kunde from kunden where maxkb='-1' and anbieter='$anbieter'");
$unbegrenzt = db_num_rows($id);
if ($unbegrenzt > 0) { $kbvergeben = -1; } else
 {
  $id = db_query("select sum(maxkb) as kbvergeben from kunden where anbieter='$anbieter'");
  $werte = db_fetch_array($id);
  $kbvergeben = $werte["kbvergeben"];
 }

# /speicher berechnen


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

$jahrstr = $jahr;
$monatstr = $lang_months[$monat];

$id = db_query("select sum(web) as transferweb, sum(ftp) as transferftp, sum(email) as transferemail from transfer where anbieter='$anbieter' and jahr='$jahr' and monat='$monat'");
$werte = db_fetch_array($id);
$transferweb = $werte["transferweb"];
$transferftp = $werte["transferftp"];
$transferemail = $werte["transferemail"];

$transfergesamt = $transferftp + $transferweb + $transferemail;
$transferftp = $transferftp;
$transferweb = $transferweb;
## /transfer berechnen

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

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

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

$id = db_query("SELECT COUNT(*) AS anzahlatdomains FROM domains d, atdomains a ".
							 " WHERE d.anbieter='$anbieter' and d.id = a.id_from");
$werte = db_fetch_array($id);
$anzahlatdomains = $werte["anzahlatdomains"];


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

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

$id = db_query ( "SELECT COUNT(*) AS atd FROM atdomains, domains, kunden WHERE atdomains.id_from=domains.id AND
	domains.kunde=kunden.kunde AND kunden.anbieter=" . db_full_quote($anbieter) );
$werte = db_fetch_array($id);
$atdomains = $werte["atd"];

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

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

$id = db_query("select count(ip) as anzahlips from ipadressen where anbieter='$anbieter'");
$werte = db_fetch_array($id);
$anzahlips = $werte["anzahlips"];

$id = db_query("select count(ip) as anzahlusedips from ipadressen where anbieter='$anbieter' and kunde <> ''");
$werte = db_fetch_array($id);
$anzahlusedips = $werte["anzahlusedips"];
## /anzahl kunden, domains, pop3, email, subdomains, dbs, ipadressen

## anzahl mysql-datenbanken ermitteln
$id = db_query("select count(datenbank) as anzahlmysql from mysql_datenbanken where anbieter = '$anbieter'");
$werte = db_fetch_array($id);
$anzahlmysql = $werte["anzahlmysql"];
## //anzahl mysql-datenbanken ermitteln

## cron
$cronjobs = count_cron_jobs_reseller($anbieter);
## //cron

## anzahl wildcards
$id = db_query("select count(domain) as anzahlwildcards from domains where richtigedomain = 0 and anbieter = '$anbieter' and domain like '*.%'");
$werte = db_fetch_array($id);
$anzahlwildcards = $werte["anzahlwildcards"];
##// anzahl wildcards

## 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.anbieter=\''.$anbieter.'\'');
	$werte = db_fetch_array($id);
	$idn_count = $werte['cnt'];
}
## //idn

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

db_close();
?>
<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> 
      <b><? echo ltext("stde_title1"); ?> <? echo $anbieter; ?></b>
<? if ($gesperrt > 0) { ?>
    <P><font size="-1" color="#CC0000"><? echo ltext("stde_locked"); ?></font></P>
<? } ?>      
<table border=1 bordercolordark=#ffffff bordercolorlight=<? echo $color_dark_grey; ?> 
      cellpadding=3 cellspacing=0 width=397>
        <tr> 
          <td colspan=2 class="titel-3" ><? echo ltext("stde_title2"); ?></td>
        </tr>
        <tr> 
          <td width=194 align="right"><? echo ltext("stde_cell_date"); ?></td>
          <td width=185><? echo $anmeldedatum; ?></td>
        </tr>
        <tbody> 

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

        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_cell_firm"); ?>
              </div>
          </td>
          <td width=185><? echo $firma; ?></td>
        </tr>

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

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

        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_cell_address"); ?>
              </div>
          </td>
          <td  width=185> <? echo $anschrift; ?></td>
        </tr>

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

        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stde_cell_city"); ?>
              </div>
          </td>
          <td  width=185><? echo $plzort; ?></td>
        </tr>

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

        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stde_cell_tel"); ?>
              </div>
          </td>
          <td  width=185><? echo $telefon; ?></td>
        </tr>

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

        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_cell_fax"); ?>
              </div>
          </td>
          <td  width=185><? echo $fax; ?></td>
        </tr>

<? } ?>

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

        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_cell_email"); ?>
              </div>
          </td>
          <td  width=185><? echo $emailadresse; ?></td>
        </tr>

<? } ?>

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

        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stde_cell_cid"); ?>
              </div>
          </td>
          <td  width=185> <? 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>

<? } ?>

        </tbody> 
      </table>
      <br>
      <table border=1 bordercolordark=#ffffff bordercolorlight=<? echo $color_dark_grey; ?> 
      cellpadding=3 cellspacing=0 width=397>
        <tbody> 
	<tr><td colspan=2 class="titel-3" >
	<? echo ltext("stde_title3"); ?>
	</td></tr>
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_cell_users"); ?>
              </div>
          </td>
          <td <? if (($anzahlkunden > $maxkunden) && ($maxkunden <> -1)){ echo "bgcolor=$fehlerfarbe"; } ?> width=185>
            <? echo sinnv_intwert($anzahlkunden,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maxkunden,ltext("g_nolimit")); ?>)</td>
        </tr>
        <tr>
          <td  width=194 align="right">
            <? echo ltext("stde_cell_domains"); ?>
            </td>
          <td <? if (($anzahldomains > $maxdomains) && ($maxdomains <> -1)){ echo "bgcolor=$fehlerfarbe"; } ?> width=185>
	  
	  <? echo sinnv_intwert($anzahldomains,ltext("g_nolimit")); ?> (<? echo sinnv_intwert($maxdomains,ltext("g_nolimit")); ?>)</td>
        </tr>
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_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("stde_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("stde_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("stde_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("stde_cell_wildcard"); ?>
              </div>
          </td>
          <td <? if (($anzahlwildcards > $maxwildcards) && ($maxwildcards <> -1)){ echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($anzahlwildcards,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maxwildcards,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>

        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stde_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>
<?
if ( $skcronjobs ){
?>
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stde_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>
<?
}
?>

<?
if ( $skmaillist ){
?>
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stde_cell_maillist"); ?>
              </div>
          </td>
          <td <? if (($maillist_count > $maxmaillist) && ($maxmaillist <> -1)){ echo "bgcolor=$fehlerfarbe"; } ?> width=185> 
            <? echo sinnv_intwert($maillist_count,ltext("g_nolimit")); ?> 
            (<? echo sinnv_intwert($maxmaillist,ltext("g_nolimit")); ?>)</td>
        </tr>
<?
}
?>
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stde_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>
        </tbody> 
      </table>
      <br>
      <table border=1 bordercolordark=#ffffff bordercolorlight=<? echo $color_dark_grey; ?> 
      cellpadding=3 cellspacing=0 width=397>
        <tbody> 
	<tr><td colspan=2 class="titel-3" >
	<? echo ltext("stde_title4"); ?>
	</td></tr>
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_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("stde_cell_vusedspace"); ?>
              </div>
          </td>
          <td <? if ((($kbvergeben > $maxkb) || ($kbvergeben == -1)) && ($maxkb <> -1)) { echo "bgcolor=$fehlerfarbe"; } ?> width=185> <? echo sinnv_kbwert($kbvergeben,ltext("g_nolimit")); ?></td>
        </tr>
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_cell_usedspace"); ?>
              </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("stde_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("stde_cell_dudb"); ?>
              </div>
          </td>
          <td  width=185><? echo sinnv_kbwert($kbdb,ltext("g_nolimit")); ?></td>
        </tr>
        </tbody> 
      </table>
      <br>
      <table border=1 bordercolordark=#ffffff bordercolorlight=<? echo $color_dark_grey; ?> 
      cellpadding=3 cellspacing=0 width=397>
        <tbody>
	<tr><td colspan=2 class="titel-3" >
	<? echo ltext("stde_title5"); ?> <? echo "$monatstr $jahrstr"; ?>
	</td></tr>
        <tr> 
          <td  width=194> 
            <div align=right> 
              <? echo ltext("stde_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("stde_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("stde_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("stde_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("stde_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_details_transfer.php?anbieter=<? echo $anbieter; ?>"> 
              <? echo ltext("stde_cell_trafficlink"); ?>
              </a></b></div>
          </td>
        </tr>
        </tbody> 
      </table>
      <br>
      <table border=1 bordercolordark=#ffffff bordercolorlight=<? echo $color_dark_grey; ?> 
      cellpadding=3 cellspacing=0 width=397>
        <tbody> 
	<tr><td colspan=2 class="titel-3" >
	<? echo ltext("stde_title6"); ?> 
	</td></tr>
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_cell_numberofips"); ?>
              </div>
          </td>
          <td  width=185> 
            <? echo $anzahlips; ?>
            <? echo ltext("stde_cell_ipaddress"); ?>
            </td>
        </tr>
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_cell_usedips"); ?>
              </div>
          </td>
          <td  width=185> 
            <? echo $anzahlusedips; ?>
            <? echo ltext("stde_cell_ipaddress"); ?>
            </td>
        </tr>
        </tbody> 
      </table>
      <br>
      <table border=1 bordercolordark=#ffffff bordercolorlight=<? echo $color_dark_grey; ?> 
      cellpadding=3 cellspacing=0 width=397>
        <tbody>
	<tr><td colspan=2 class="titel-3" >
	<? echo ltext("stde_title7"); ?>
	</td></tr>

		<? if ($skftp == 1) { ?> 
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_cell_ftp"); ?>
              </div>
          </td>
          <td  width=185> 
			<? if ($ftp == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? }
	 if ($skphp == 1) { ?> 
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_cell_php"); ?>
              </div>
          </td>
          <td  width=185> 
			<? if ($php == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($skphpupload == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stde_cell_phpupload"); ?>
            </td>
          <td  width=185><? if ($phpupload == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
	<? }
   if ($skperl == 1) { ?> 
        <tr> 
          <td  width=194> 
            <div align=right>
              <? echo ltext("stde_cell_perl"); ?>
              </div>
          </td>
          <td  width=185> <? if ($perl == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? }
   if ($skmodpython == 1) { ?>
        <tr>
          <td  width=194>
            <div align=right>
              <? echo ltext("stde_cell_modpython"); ?>
              </div>
          </td>
          <td  width=185> <? if ($modpython == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? }

?> <? if ($skssi == 1) { ?> 
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stde_cell_ssi"); ?>
              </div>
          </td>
          <td  width=185> <? if ($ssi == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($skssl == 1) { ?> 
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stde_cell_ssl"); ?>
              </div>
          </td>
          <td  width=185> <? if ($ssl > 0) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> 
		<? if ($skfrontpage == 1) { ?> 
        <tr> 
          <td  width=194> 
            <div align="right">
              <? echo ltext("stde_cell_frontpage"); ?>
              </div>
          </td>
          <td  width=185> <? if ($frontpage == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? 
}  
if ($skshell == 1) { 
?> 
  <tr> 
    <td  width=194 align="right">
      <? echo ltext("stde_cell_shell"); ?>
    </td>
    <td  width=185><? 
  if ($shell == 1) { 
    echo ltext("stde_activated"); 
  } else { 
    echo ltext("stde_deactivated"); 
  } 
?>
    </td>
  </tr>
<? 
}
if ($skscponly == 1) { 
?> 
  <tr> 
    <td  width=194 align="right">
      <? echo ltext("stde_cell_scponly"); ?>
    </td>
    <td  width=185><? 
  if ($scponly == 1) { 
    echo ltext("stde_activated"); 
  } else { 
    echo ltext("stde_deactivated"); 
  } 
?>
    </td>
  </tr>
<? 
}  
if ($skwap == 1) { 
?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stde_cell_wap"); ?>
            </td>
          <td  width=185><? if ($wap == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($skcoldfusion == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stde_cell_coldfusion"); ?>
            </td>
          <td  width=185><? if ($coldfusion == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($skdirlist == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stde_cell_dirlist"); ?>
            </td>
          <td  width=185><? if ($dirlist == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($skmysql == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stde_cell_dbext"); ?>
            </td>
          <td  width=185><? if ($dbext == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($skstatistik == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stde_cell_webalizer"); ?>
            </td>
          <td  width=185><? if ($statistik == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
       <? } if ($skfehlerseiten == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stde_cell_errorfiles"); ?>
            </td>
          <td  width=185><? if ($fehlerseiten == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($skwebftp == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stde_cell_webftp"); ?>
            </td>
          <td  width=185><? if ($webftp == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($skwebmail == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stde_cell_webmail"); ?>
            </td>
          <td  width=185><? if ($webmail == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> <? if ($skstdcgi == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stde_cell_stdscripts"); ?>
            </td>
          <td  width=185><? if ($stdcgi == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?>  <? if ($skspamfilter == 1) { ?> 
        <tr> 
          <td  width=194 align="right">
            <? echo ltext("stde_cell_spamfilter"); ?>
            </td>
          <td  width=185><? if ($spamfilter == 1) { echo ltext("stde_activated"); } else { echo ltext("stde_deactivated"); } ?></td>
        </tr>
        <? } ?> 
        
        
        </tbody> 
      </table>
    </TD>
  </TR>
  </TBODY> 
</TABLE>
</BODY>
</HTML>
