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

\n"; page_tail(); ?>