Location: PHPKode > projects > NewsP > settings/internal.inc.php
<?php include("auth.php");
session_start();
$username = $_SESSION['username'];
if($username == 'Admin')
{
print "<H2>$lg[p3_u60]</H2>";
print "$reiter_table";
print "<TD $passiv_style><A HREF=\"?p=settings&s=ex\"><B>$lg[p3_u61]</B></A></TD>";
print "<TD $active_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"){
$language = urlencode($HTTP_POST_VARS["language"]); 
$editor = urlencode($HTTP_POST_VARS["editor"]); 
$d_n = urlencode($HTTP_POST_VARS["d_n"]); 
$d_o = urlencode($HTTP_POST_VARS["d_o"]); 
$count_anz = urlencode($HTTP_POST_VARS["count_anz"]); 
$outform_time = $HTTP_POST_VARS["outform_time"]; 

$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[language] = "$language";
$set_in_dom[editor] = "$editor";
$set_in_dom[d_n] = "$d_n";
$set_in_dom[d_o] = "$d_o";
$set_in_dom[outform_time] = "$outform_time";
$set_in_dom[count_anz] = "$count_anz";

$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;
if ($fb > 2){$fb = 1;}

?>

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

<H3><? echo "$lg[p3_u30] </H3> $lg[p3_u31]"; ?></TD>
	<TD class=td_l<? echo "$fb";?>>

<select name="language">";
<? 
$akt_lg= "$set_in_dom[language]";
$akt_lgg= "p3_lg_$akt_lg";
echo"<option value=\"$akt_lg\">$lg[$akt_lgg]</option>";
echo"<option value=\"ger\">$lg[p3_lg_ger]</option>";
echo"<option value=\"eng\">$lg[p3_lg_eng]</option>";
?>
</select>
</TD>
</TR>
<TR>
<? $fb++; 
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>><H3><? echo "$lg[p3_u50] </H3> $lg[p3_u82]"; ?></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',"$set_in_dom[outform_time]");
?>
</select>
</TD>
</TR> 
<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>>
<? echo "<H3>$lg[nav01]</H3>$lg[p3_u32] ";?></TD>
	<TD class=td_l<? echo "$fb";?>>
<? echo"<input type=\"text\" size=\"3\" maxlength=\"3\" name=\"count_anz\" value=\"$set_in_dom[count_anz]\">"; ?>
</TD>
</TR>

<TR>
<? 
$fb++;
if ($fb > 2){$fb = 1;}?>
	<TD class=td_l<? echo "$fb";?>>
<H3><? echo "$lg[p3_u81] </H3> $lg[p3_u81]"; ?></TD>
	<TD class=td_l<? echo "$fb";?>>

<select name="editor">";
<? 
$akt_editor= "$set_in_dom[editor]";
$akt_lgg= "p3_lg_$akt_lg";
echo"<option value=\"$akt_editor\">$akt_editor</option>";
echo"<option value=\"CKEditor\">CKEditor</option>";
echo"<option value=\"OpenWYSIWYG\">OpenWYSIWYG</option>";
?>
</select>
</TD>
</TR>



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

	<TD class=td_l<? echo "$fb";?> colspan="2"><H3><? echo "$lg[p3_u40] </H3> $lg[p3_u41] <I>&quot;$lg[nav01]&quot;</I>:"; ?><P>

<TABLE cellspacing="0" cellpadding="5">
<TR>
	<TD class=td_l2><IMG SRC="../templates/r.gif" WIDTH=10 HEIGHT=10 BORDER=0> <? echo "$lg[p3_u42]"; ?><P> </TD>
	<TD class=td_l2></TD>
</TR>
<TR>
	<TD class=td_l1><IMG SRC="../templates/rb.gif" WIDTH=10 HEIGHT=10 BORDER=0> <? echo "$lg[p3_u43]"; ?><P> </TD>
	<TD class=td_l1><? echo"<input type=\"text\" size=\"3\" maxlength=\"3\" name=\"d_n\" value=\"$set_in_dom[d_n]\"> $lg[x_tage]"; ?> </TD>
</TR>
<TR>
	<TD class=td_l2><IMG SRC="../templates/g.gif" WIDTH=10 HEIGHT=10 BORDER=0> <? echo "$lg[p3_u44]"; ?><P> </TD>
	<TD class=td_l2> </TD>
</TR>
<TR>
	<TD class=td_l1><IMG SRC="../templates/gb.gif" WIDTH=10 HEIGHT=10 BORDER=0> <? echo "$lg[p3_u45]"; ?><P> </TD>
	<TD class=td_l1></TD>
</TR>
<TR>
	<TD class=td_l2> <IMG SRC="../templates/y.gif" WIDTH=10 HEIGHT=10 BORDER=0> <? echo "$lg[p3_u46]"; ?><P></TD>
	<TD class=td_l2> <? echo"<input type=\"text\" size=\"3\" maxlength=\"3\" name=\"d_o\" value=\"$set_in_dom[d_o]\"> $lg[x_tage]"; ?></TD>
</TR>
</TABLE>

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