<?
####### Confixx(R) - Version 2003 (Feb 10 11:54:20 CET 2003)
### Copyright Jan-Hendrik Benter, Kai Bollmann, Marcel Chorengel, PlusServer GmbH 2003
####### http://www.confixx.de - info@confixx.de
include("auth.php");
?>
<HTML>
<HEAD>
<TITLE><? echo ltext("g_title"); ?></TITLE>
<META content="text/html; charset=<? echo $lang_html_charset; ?>" http-equiv=Content-Type>
<LINK href="../designs/<? echo $design ?>/style.css" rel=stylesheet type=text/css>
</HEAD>
<BODY background="../designs/<? echo $design ?>/back.gif" bgColor=#ffffff bottomMargin=0 leftMargin=0 topMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">
<img src="../designs/<? echo $design ?>/header.jpg" width="782" height="70"><br>
<br>
<? include("menu_header.php");
db_connect($db_host, $db_user, $db_pass);
$id = db_query("select count(prefix) as emails from email where kunde = '$PHP_AUTH_USER'");
$werte = db_fetch_array($id);
$emails = $werte["emails"];
$id = db_query("select maxemail, maxpop, maxautoresponder from kunden where kunde = '$PHP_AUTH_USER'");
$werte = db_fetch_array($id);
$maxemail = $werte["maxemail"];
$maxautoresponder = $werte["maxautoresponder"];
$maxpop = $werte["maxpop"];
$id = db_query("select count(account) as pop from pop3 where kunde = '$PHP_AUTH_USER'");
$werte = db_fetch_array($id);
$pop = $werte["pop"];
$id = db_query("select count(ident) as autoresponder from autoresponder where kunde = '$PHP_AUTH_USER'");
$werte = db_fetch_array($id);
$autoresponder = $werte["autoresponder"];
?>
<table border=0 cellpadding=0 cellspacing=0 width=510>
<tr>
<td width=430>
<p><font class="menutitle"><? echo ltext("emem_title"); ?></font>
</p>
<? if (($maxpop >= 0 || $maxpop == -1) && ($maxemail > 0 || $maxemail == -1)) { ?>
<? include("../fehler.inc.php"); ?>
<p><font class="normal"><? echo ltext("emem_desc1"); ?></font></p>
<p><font class="normal"><? echo ltext("emem_desc2"); ?></font></p>
<? if ($emails > 0) { ?>
<p><font class="normal"><? echo ltext("emem_desc3", array($emails, sinnv_intwert($maxemail, ltext("g_nolimit")))); ?></font> </p>
</td>
</tr>
<tr>
<td> <b><i><font class="menutitle"><br>
<? echo ltext("emem_subtitle1"); ?></font></i></b>
<table width="420" border="1" cellpadding="3" cellspacing="0" bordercolorlight="<? echo $color_dark_grey; ?>" bordercolordark="#FFFFFF">
<tr bgcolor="<? echo $color_dark_grey; ?>">
<td bgcolor="<? echo $color_dark_grey; ?>"><i><font face="Arial, Helvetica, sans-serif" size="-1"><b><? echo ltext("emem_cell_email"); ?></b></font></i></td>
<td><i><font face="Arial, Helvetica, sans-serif" size="-1"><b><? echo ltext("emem_cell_to"); ?></b></font></i></td>
<td><i><font face="Arial, Helvetica, sans-serif" size="-1"><b><? echo ltext("emem_cell_recipient"); ?></b></font></i></td>
<td><i><font face="Arial, Helvetica, sans-serif" size="-1"><b><? echo ltext("emem_cell_action"); ?></b></font></i></td>
</tr>
<?
$id = db_query("select * from email where kunde = '$PHP_AUTH_USER' order by prefix, domain");
while ($werte = db_fetch_array($id)) {
$emailadresse = $werte["prefix"]."@".$werte["domain"];
$ziel = $werte["pop3"];
$comment = get_comment($ziel);
$comment = sub_comment($comment,15);
$ident = $werte["ident"];
?>
<tr bgcolor="<? echo $color_light_grey; ?>">
<td width="190"><font size="-1" face="Arial, Helvetica, sans-serif"><? echo $emailadresse; ?></font></td>
<td width="174" bgcolor="<? echo $color_light_grey; ?>"><font size="-1" face="Arial, Helvetica, sans-serif"><? echo $ziel.$comment; ?></font></td>
<td width="54"><font size="-1" face="Arial, Helvetica, sans-serif"><a href="email_email_bearbeiten.php?ident=<? echo $ident; ?>"><? echo ltext("emem_link_edit"); ?></a></font></td>
<td width="54"><font size="-1" face="Arial, Helvetica, sans-serif"><a href="email_email_loeschen.php?ident=<? echo $ident; ?>"><? echo ltext("emem_link_del"); ?></a></font></td>
</tr>
<? } ?>
</table>
<? } else { ?>
<b><i><font face="Arial, Helvetica, sans-serif" size="-1"><? echo ltext("emem_noemail"); ?></font></i></b>
<? }
if ($pop > 0) { ?>
<form method="post" action="email_email_anlegen.php">
<p></p>
<font size="-1" face="Arial, Helvetica, sans-serif"><b><i><? echo ltext("emem_subtitle2"); ?></i></b></font><br>
<table width="420" border="1" cellpadding="3" cellspacing="0" bordercolorlight="<? echo $color_dark_grey; ?>" bordercolordark="#FFFFFF">
<tr bgcolor="<? echo $color_dark_grey; ?>">
<td width="292"><i><font size="-1" face="Arial, Helvetica, sans-serif"><b><? echo ltext("emem_cell_newmail"); ?></b></font></i></td>
<td width="110"><i><font size="-1" face="Arial, Helvetica, sans-serif"><b><? echo ltext("emem_cell_pop3"); ?></b></font></i></td>
</tr>
<tr bgcolor="<? echo $color_light_grey; ?>">
<td width="292">
<input type="text" name="prefix" maxlength="50" size="10">
<font size="-1" face="Arial, Helvetica, sans-serif">@</font>
<select name="domain">
<?
$id = db_query("select domain from domains where kunde = '$PHP_AUTH_USER' and (richtigedomain = '1' or richtigedomain='0') order by domain");
while ($werte = db_fetch_array($id)) {
$domain = $werte["domain"];
if (!ereg("^\*\.", $domain)) {
echo '<option value="'.$domain.'">'.$domain.'</option>'; }
}
?>
</select>
</td>
<td width="110">
<select name="pop3">
<?
$id = db_query("select account, kommentar from pop3 where kunde = '$PHP_AUTH_USER' order by number");
while ($werte = db_fetch_array($id)) {
$account = $werte["account"];
$comment = $werte["kommentar"];
$comment = sub_comment($comment,10);
echo '<option value="'.$account.'">'.$account.$comment.'</option>';
}
?>
</select>
</td>
</tr>
<tr bgcolor="<? echo $color_light_grey; ?>">
<td width="292"> </td>
<td width="110">
<input type="submit" name="Submit" value="<? echo ltext("emem_btn_add"); ?>">
</td>
</tr>
</table>
</form>
<? }
if ($maxemail > 0 || $maxemail == -1) {
?>
<form method="post" action="email_email_anlegen2.php">
<font size="-1" face="Arial, Helvetica, sans-serif"><b><i><? echo ltext("emem_subtitle3"); ?></i></b></font><br>
<table width="420" border="1" cellpadding="3" cellspacing="0" bordercolorlight="<? echo $color_dark_grey; ?>" bordercolordark="#FFFFFF">
<tr bgcolor="<? echo $color_dark_grey; ?>">
<td width="264"><i><font size="-1" face="Arial, Helvetica, sans-serif"><b><? echo ltext("emem_cell_newmail"); ?></b></font></i></td>
<td width="138"><i><font size="-1" face="Arial, Helvetica, sans-serif"><b><? echo ltext("emem_cell_alias"); ?></b></font></i></td>
</tr>
<tr bgcolor="<? echo $color_light_grey; ?>">
<td width="264">
<input type="text" name="prefix" maxlength="50" size="10">
<font size="-1" face="Arial, Helvetica, sans-serif">@</font>
<select name="domain">
<?
$id = db_query("select domain from domains where kunde = '$PHP_AUTH_USER' and (richtigedomain = '1' or richtigedomain='0') order by domain");
while ($werte = db_fetch_array($id)) {
$domain = $werte["domain"];
if (! ereg("^\*\.", $domain)) {
echo '<option value="'.$domain.'">'.$domain.'</option>'; }
}
?>
</select>
</td>
<td width="138">
<input type="text" name="pop3" maxlength="120">
</td>
</tr>
<tr bgcolor="<? echo $color_light_grey; ?>">
<td width="264"> </td>
<td width="138">
<input type="submit" name="Submit" value="<? echo ltext("emem_btn_add"); ?>">
</td>
</tr>
</table>
</form>
<? }
} if (($maxpop > 0) && ($maxemail == 0)) { ?>
<p><font class="normal">Es wurden Ihnen POP3 Postfaecher erlaubt, jedoch dürfen Sie keine E-Mail Adressen anlegen, wenden Sie sich bitte an Ihren Provider für weitere Fragen.</font></p>
<? } if (($maxpop == 0) && ($maxemail == 0)) { ?>
<p><font class="normal">Die E-Mail Funktionalität wurde für Sie deaktiviert. Bitte wenden Sie sich bei weiteren Fragen an Ihren Provider.</font></p>
<? } ?>
</td>
</tr>
</table>
<? include("menu_footer.php"); ?>
</BODY>
</HTML>
<?
db_close();
?>