File size: 1.22Kb
<?
error_reporting(0);include "config.php";include "head.php";if(!$edit){$setdata=file("users/$n.$antihack.dat");$numbus=trim($setdata[0]);$nus=trim($setdata[1]);$passus=trim($setdata[2]);$stus=trim($setdata[3]);$timereg=trim($setdata[4]);echo "<div><form action=\"user.php\" method=\"post\"><input type=\"hidden\" name=\"edit\" value=\"set\"/><input type=\"hidden\" name=\"task\" value=\"$task\"/><input type=\"hidden\" name=\"stus\" value=\"$stus\"/><input type=\"hidden\" name=\"n\" value=\"$n\"/><input type=\"hidden\" name=\"pass\" value=\"$pass\"/><input type=\"hidden\" name=\"rum\" value=\"$rum\"/><input type=\"hidden\" name=\"numbus\" value=\"$numbus\"/><input type=\"hidden\" name=\"timereg\" value=\"$timereg\"/>Имя:<br/><input type=\"text\" name=\"nus\" value=\"$nus\"/>Пароль:<br/><input type=\"text\" name=\"passus\" value=\"$passus \"/><br/><input type=\"submit\" value=\"изменить\"/>
</form></div>";echo "<a href=\"index.php?n=$n&pass=$pass&rum=$rum&task=$task\">Назад</a><br/>";}else{$setdata ="users/$n.$antihack.dat";$file = fopen("$setdata","w+");fputs($file,"$numbus\r\n$nus\r\n$passus\r\n$stus\r\n$timereg\r\n");fclose($file);header ("location: index.php?n=$n&pass=$pass&rum=$rum&task=$task");}echo $end;
?>