Result of the merging:"; $range=$_POST[range]; if(!ctype_digit($range)) die("The range you entered was not an integer."); $one = str_replace("\\", "", $_POST[one]); $two = str_replace("\\", "", $_POST[two]); $one = explode("\n", $one); $two = explode("\n", $two); $one = parseWaypointFile($one); $two = parseWaypointFile($two); $removed = array(); foreach ($one as $toTest){ $i=0; $found = false; while(!$found && $i0 && $_POST[printRemoved] == 'T'){ $removed = implode(",
", $removed); print "The following entries were tagged as double and have been removed:
$removed

"; } print "Here is the content for your new waypoint file:"; printWaypoints($two); } print "

"; ?>

Merge two files


Enter the CONTENT of your two waypoint files in the textboxes below.
To get the content of the files, open them with any basic text editor.
Please make sure that every waypoint is on a different line.
file one:
file two:
delete range*:
  Show removed entries:

*If there are two waypoints with the same name and they are within this range of eachother, only one of them will be put in the result file.




Original merging script created by Tman (tman.be)