Weil ich heute mal nett bin ...
PHP-Code:
<?php
$myaction = $_POST['myaction'];
switch ($myaction) {
default :
$text = file("sc_serv.conf");
$post = $text[28];
?>
<form method="post" action="me.php" name="sichern">
<input type="hidden" name="myaction" value="save">
<input name="pw" rows="1" cols="20" value ="<?php echo substr($post,9); ?>">
<input type="submit" value="save">
</form>
<?php
break;
case 'save' :
$text = file("sc_serv.conf");
$text[28] = "Password=".$_POST['pw'];
$file = fopen("sc_serv.conf","w");
fwrite($file, implode("\n", $text));
fclose($file);
break;
}
?>
PS: Filtern solltest du das ganze aber auch noch.