<?php include("auth.php");
session_start();
$username = $_SESSION['username'];
if($username == 'Admin')
{
print "<H2>$lg[p3_u62]</H2>";
print "$reiter_table";
print "<TD $passiv_style><A HREF=\"?p=settings&s=ex\"><B>$lg[p3_u61]</B></A></TD>";
print "<TD $passiv_style><A HREF=\"?p=settings&s=in\"><B>$lg[p3_u60]</B></A></TD>";
print "<TD $active_style><A HREF=\"?p=settings&s=ml\"><B>$lg[p3_u62]</B></A></TD></TR></TABLE>";
if($change == "ja"){
$ml_com = htmlentities($HTTP_POST_VARS["ml_com"]);
$ml_btr = htmlentities($HTTP_POST_VARS["ml_btr"]);
$ml_anders = htmlentities($HTTP_POST_VARS["ml_anders"]);
$ml_weg = htmlentities($HTTP_POST_VARS["ml_weg"]);
$m_set_file = "../settings/m_settings.txt";
$zaehlfile = fopen("$m_set_file","r");
$inhalt_zaehlfile = fgets($zaehlfile);
fclose($zaehlfile);
$set_in_dom = unserialize($inhalt_zaehlfile);
$set_in_dom[ml_com] = "$ml_com";
$set_in_dom[ml_btr] = "$ml_btr";
$set_in_dom[ml_anders] = "$ml_anders";
$set_in_dom[ml_weg] = "$ml_weg";
$loglink = serialize($set_in_dom);
$loglinkfile = "$m_set_file";
$logger = fopen("$loglinkfile","w");
fputs($logger, $loglink);
fclose($logger);
}else{
$m_set_file = "../settings/m_settings.txt";
$zaehlfile = fopen("$m_set_file","r");
$inhalt_zaehlfile = fgets($zaehlfile);
fclose($zaehlfile);
$set_in_dom = unserialize($inhalt_zaehlfile);
}
$fb=1;
?>
<TABLE cellspacing="0" cellpadding="5" width="860">
<TR>
<TD class=td_l<? echo "$fb";?> colspan="2"><form name="set" method="post" action="" enctype="multipart/form-data">
<H3><? echo "$lg[p3_u62] </H3> $lg[p3_u63] ($domains[mail])."; ?></TD>
</TR>
<TR>
<?
$fb++;
if ($fb > 2){$fb = 1;}?>
<TD class=td_l<? echo "$fb";?>>
<input type="checkbox" name="ml_com" value="checked" <? echo "$set_in_dom[ml_com]>";?></TD>
<TD class=td_l<? echo "$fb";?>>
<? echo "$lg[p3_u64]";?>
</TD>
</TR>
<TR>
<?
$fb++;
if ($fb > 2){$fb = 1;}?>
<TD class=td_l<? echo "$fb";?>>
<input type="checkbox" name="ml_btr" value="checked" <? echo "$set_in_dom[ml_btr]>";?></TD>
<TD class=td_l<? echo "$fb";?>>
<? echo "$lg[p3_u65]";?>
</TD>
</TR>
<TR>
<?
$fb++;
if ($fb > 2){$fb = 1;}?>
<TD class=td_l<? echo "$fb";?>>
<input type="checkbox" name="ml_anders" value="checked" <? echo "$set_in_dom[ml_anders]>";?></TD>
<TD class=td_l<? echo "$fb";?>>
<? echo "$lg[p3_u66]";?>
</TD>
</TR>
<TR>
<?
$fb++;
if ($fb > 2){$fb = 1;}?>
<TD class=td_l<? echo "$fb";?>>
<input type="checkbox" name="ml_weg" value="checked" <? echo "$set_in_dom[ml_weg]>";?></TD>
<TD class=td_l<? echo "$fb";?>>
<? echo "$lg[p3_u67]";?>
</TD>
</TR>
<TR>
<TD></TD>
<TD class=td_r colspan="2"><input type="hidden" name="change" value="ja"><input type=submit></form></TD>
</TR>
<?
print '</TABLE>';
}
?>