1<?php
2# ---------------------------------------------------------------------
3# rth is a requirement, test, and bugtracking system
4# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net
5# This program is distributed under the terms and conditions of the GPL
6# See the README and LICENSE files for details
7#----------------------------------------------------------------------
8# --------------------------------------------------
9# Release Add Action Page
10#
11# $RCSfile: release_add_action.php,v $ $Revision: 1.2 $
12# --------------------------------------------------
13
14include"./api/include_api.php";
15auth_authenticate_user();
16
17$redirect_page 	= 'release_page.php';
18$release_page	= 'release_page.php';
19$project_id		= session_get_project_id($release_page);
20
21session_validate_form_set($_POST, $redirect_page);
22
23if( admin_release_name_exists( $project_id, session_validate_form_get_field('rel_name_required') ) ) {
24
25	error_report_show($redirect_page, DUPLICATE_RELEASE_NAME );
26
27}
28
29admin_add_release(	session_validate_form_get_field('rel_name_required'),
30					session_validate_form_get_field('rel_description'),
31					$project_id,
32					"CREATE RELEASE" );
33
34session_validate_form_reset();
35
36html_print_operation_successful( "add_release", $release_page );
37
38# ------------------------------------
39# $Log: release_add_action.php,v $
40# Revision 1.2  2007/02/03 11:58:12  gth2
41# no message
42#
43# Revision 1.1.1.1  2005/11/30 23:00:57  gth2
44# importing initial version - gth
45#
46# ------------------------------------
47?>