Someone
public text v1 · immutable<html>
<body>
<?
$defnamefile = "Defname.txt";
$nick = $_GET['nick'];
$host = $_GET['host'];
$temp = file("$defnamefile");
$readfile = fopen($defnamefile,'w');
foreach ($temp as $tmp) {
if (stristr($tmp,"$host")) {
$str = $tmp;
}
$tmmp .= "\n$tmp";
}
$tmp = str_replace($str,"$host $nick",$tmmp);
fwrite($readfile,"$tmp");
fclose($readfile);
?>
</body>
</html>