prefs); prefs_project_parse_form($project); $i = project_index($prefs, $project->master_url); if ($i >= 0) { echo "Duplicate project URL\n"; } else { array_push($prefs->projects, $project); prefs_update($user, $prefs); print_prefs_display($prefs); } } ?>