Location: PHPKode > projects > NewsP > settings/external.inc.php
<?php include("auth.php");
session_start();
$username = $_SESSION['username'];
if($username == 'Admin')
{
print "<H2>$lg[p3_u61]</H2>";
print "$reiter_table";
print "<TD $active_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 $passiv_style><A HREF=\"?p=settings&s=ml\"><B>$lg[p3_u62]</B></A></TD></TR></TABLE>";

if($change == "ja"){
$anz_headl = urlencode($HTTP_POST_VARS["anz_headl"]);
$anz_arch = urlencode($HTTP_POST_VARS["anz_arch"]); 
$count_arch = urlencode($HTTP_POST_VARS["count_arch"]); 
$outform_time = $HTTP_POST_VARS["outform_time"]; 
$col_line = htmlentities($HTTP_POST_VARS["col_line"]); 
$col_bg = htmlentities($HTTP_POST_VARS["col_bg"]); 
$strich = urlencode($HTTP_POST_VARS["strich"]); 
$bild = htmlentities($HTTP_POST_VARS["bild"]); 
$com_t1 = htmlentities($HTTP_POST_VARS["com_t1"]); 
$com_t2 = htmlentities($HTTP_POST_VARS["com_t2"]); 
$com_t3 = htmlentities($HTTP_POST_VARS["com_t3"]); 
$com_t4 = htmlentities($HTTP_POST_VARS["com_t4"]); 
$p_set_file = "../settings/p_settings.txt";
$zaehlfile = fopen("$p_set_file","w"); 
$inhalt_zaehlfile = fgets($zaehlfile);  
fclose($zaehlfile); 
$seting_dom = unserialize($inhalt_zaehlfile);

$seting_dom[anz_headl] = "$anz_headl";
$seting_dom[anz_arch] = "$anz_arch";
$seting_dom[outform_time] = "$outform_time";
$seting_dom[count_arch] = "$count_arch";
$seting_dom[col_line] = "$col_line";
$seting_dom[col_bg] = "$col_bg";
$seting_dom[strich] = "$strich";
$seting_dom[bild] = "$bild";
$seting_dom[gp1] = "$lg[gp1]";
$seting_dom[com_t1] = "$com_t1";
$seting_dom[com_t2] = "$com_t2";
$seting_dom[com_t3] = "$com_t3";
$seting_dom[com_t4] = "$com_t4";

$loglink = serialize($seting_dom);
$loglinkfile = "$p_set_file";
$logger = fopen("$loglinkfile","w"); 
fputs($logger, $loglink); 
fclose($logger); 

}else{

$p_set_file = "../settings/p_settings.txt";
$zaehlfile = fopen("$p_set_file","r"); 
$inhalt_zaehlfile = fgets($zaehlfile);  
fclose($zaehlfile); 
$seting_dom = unserialize($inhalt_zaehlfile);
} 
$fb=1;
if ($fb > 2){$fb = 1;}
	if ($seting_dom[bild] == ""){
	$bild = "../templates/abostroph.gif";
	}else{
	$bild=$seting_dom[bild];}
?>

<TABLE cellspacing="0" cellpadding="5" width="860">
<TR>
	<TD class=td_l<? echo "$fb";?>><H3><? echo "$lg[p3_u10] </H3> $lg[p3_u11]"; ?></TD>
	<TD class=td_l<? echo "$fb";?>><form name="set" method="post" action="" enctype="multipart/form-data">

<select name="anz_headl">";
 <? if($seting_dom[anz_headl] != ""){echo "<option value=\"$seting_dom[anz_headl]\">$seting_dom[anz_headl]</option>";}?>
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="8">8</option>
<option value="10">10</option>
<option value="12">12</option>
<option value="14">14</option>
<option value="16">16</option>
<option value="20">20</option>
</select>

</TD>
</TR>

<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}

?>
	<TD class=td_l<? echo "$fb";?>><H3><? echo "$lg[p3_u20] </H3>"; 
echo "$lg[p3_u21]";?>
</TD>
	<TD class=td_l<? echo "$fb";?>><select name="anz_arch">";
<? if($seting_dom[anz_arch] =="ja"){
echo"<option value=\"ja\">$lg[x_ja]</option>";
echo"<option value=\"nein\">$lg[x_nein]</option>";
}else{
echo"<option value=\"nein\">$lg[x_nein]</option>";
echo"<option value=\"ja\">$lg[x_ja]</option>";}
?>
</select>
</TD>
</TR>
<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>>
<? echo "$lg[p3_u22]";?></TD>
	<TD class=td_l<? echo "$fb";?>>
<? echo"<input type=\"text\" size=\"3\" maxlength=\"3\" name=\"count_arch\" value=\"$seting_dom[count_arch]\">"; ?>
</TD>
</TR>

<TR>
<? $fb++; 
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>><H3><? echo "$lg[p3_u50] </H3> $lg[p3_u83]"; ?></TD>
	<TD class=td_l<? echo "$fb";?>>
<FONT SIZE=-2 COLOR="#808080">(<? echo "$lg[p3_u52]";?>)</FONT><BR>
<select name="outform_time">";
<? 
call_user_func('zeit',"$seting_dom[outform_time]");
?>
</select>
</TD>
</TR> 
</TABLE>





<? print "<H2>$lg[nav07]</H2>";?>
<TABLE cellspacing="0" cellpadding="5" width="860">
<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>>
<? echo "<H3>$lg[p3_u70]</H3>$lg[p3_u71]";?></TD>
	<TD class=td_l<? echo "$fb";?>>
<? echo"<input type=\"text\" size=\"7\" maxlength=\"7\" name=\"col_line\" value=\"$seting_dom[col_line]\"> <FONT COLOR=\"$seting_dom[col_line]\">$lg[p3_u79]</FONT>";?>
</TD>
</TR>
<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>>
<? echo "$lg[p3_u72]";?></TD>
	<TD class=td_l<? echo "$fb";?>>
<? echo"<input type=\"text\" size=\"7\" maxlength=\"3\" name=\"strich\" value=\"$seting_dom[strich]\">";?>
</TD>
</TR>
<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>>
<? echo "$lg[p3_u69]";?></TD>
	<TD class=td_l<? echo "$fb";?>>
<? echo"<input type=\"text\" size=\"7\" maxlength=\"7\" name=\"col_bg\" value=\"$seting_dom[col_bg]\"> <FONT COLOR=\"$seting_dom[col_bg]\">$lg[p3_u79]</FONT>";?>
</TD>
</TR>
<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>>
<? echo "<H3>$lg[p3_u73]</H3>$lg[p3_u74]";?></TD>
	<TD class=td_l<? echo "$fb";?>>
<? echo"<input type=\"text\" size=\"37\" name=\"bild\" value=\"$seting_dom[bild]\"> <IMG SRC=\"$bild\" BORDER=0>";?>
</TD>
</TR>
<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>>
<? echo "<H3>$lg[p3_u75]</H3>$lg[p3_u76]";?></TD>
	<TD class=td_l<? echo "$fb";?>>
<? echo"<input type=\"text\" size=\"37\" name=\"com_t1\" value=\"$seting_dom[com_t1]\">";?>
</TD>
</TR>
<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>>
<? echo "$lg[p3_u77]";?></TD>
	<TD class=td_l<? echo "$fb";?>>
<? echo"<input type=\"text\" size=\"37\" name=\"com_t2\" value=\"$seting_dom[com_t2]\">";?>
</TD>
</TR>
<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>>
<? echo "$lg[p3_u78]";?></TD>
	<TD class=td_l<? echo "$fb";?>>
<? echo"<input type=\"text\" size=\"37\" name=\"com_t3\" value=\"$seting_dom[com_t3]\">";?>
</TD>
</TR>
<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>>
<? echo "$lg[p3_u80]";?></TD>
	<TD class=td_l<? echo "$fb";?>>
<? echo"<input type=\"text\" size=\"37\" name=\"com_t4\" value=\"$seting_dom[com_t4]\">";?>
</TD>
</TR>

<TR>
	<TD class=td_r colspan="2"><input type="hidden" name="change" value="ja"><input type=submit></form></TD>
</TR>
</TABLE>
<?
}
?>
Return current item: NewsP