Location: PHPKode > projects > Soraxdesign PHP Guestbook > admin/settings_main.badwords.inc.php
<?php
if($session_id==$sess_id and $session_id!="" and $sess_id!="")
{
	if($do=="")
	{
	$file=file("../Data/badwords.dat");
	?>
	<form name="form1" method="post" action="admin.php?action=login&go=1&session_id=<?php echo $sess_id ?>&show=badword&do=addbadwords" style="margin:0px;padding:0px">
	<div id="grundeinstellungen" style="position:absolute;width:800px;margin:0px;overflow:auto;height:407px">
		<p style="margin:0px;padding:15px" align="justified">
		<?php echo $sprache[109] ?>
		<br><br>
		<textarea rows="18" cols="93" name="badwords"><?php echo $file[0] ?></textarea>
		</p>
	</div>
	<div id="menu_unten" style="position:absolute;margin-top:407px;width:800px;height:25px;background-image:url('images/symbolleisten/menu_back_unten.jpg')">
		<div style="float:left;height:25px;background-image:url('images/symbolleisten/menu_back_unten_button.jpg');border-right:1px solid #83ACCA">
			<div style="margin-left:10px;margin-top:7px;margin-right:10px">
			<a href="admin.php?action=login&go=1&session_id=<?php echo $session_id ?>" class="menu"><?php echo $sprache[95] ?></a>
			</div>
		</div>
		<div style="float:right;height:25px;background-image:url('images/symbolleisten/menu_back_unten_button.jpg');border-left:1px solid #83ACCA">
			<div style="margin-left:10px;margin-top:7px;margin-right:10px">
			<a href="javascript:document.form1.submit()" class="menu"><?php echo $sprache[110] ?></a>
			</div>
		</div>
	</div>
	</form>
	<?php
	}
	
	if($do=="addbadwords")
	{
	$badwords=$_POST['badwords'];
	$fp=fopen("../Data/badwords.dat","w");
	fputs($fp,"$badwords");
	fclose($fp);
	echo"<br><br>
	<center>
	<font color=\"#2F9A1E\"><b>$sprache[111]<br><br><a href=\"admin.php?go=1&session_id=$sess_id&action=login&show=badword\" class=\"links\">$sprache[95]</a></b></font>
	</center>";
	}
}
else
{
echo"<meta http-equiv=\"refresh\" content=\"0; URL=error.php\" target=\"_top\">";
}
?>
Return current item: Soraxdesign PHP Guestbook