Logged In: NO

you can put this in the code around line 518. This will
remove the file with the same name before you recreate it.

//if the file is preexisting
if(file_exists($name) )
unlink($name);

// Creates the new file //
$file = @fopen ($name, "w");
...
...
...