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# Test Detail Delete Action Page
10#
11# $RCSfile: test_detail_delete_action.php,v $  $Revision: 1.1.1.1 $
12# ---------------------------------------------------------------------
13
14include"./api/include_api.php";
15auth_authenticate_user();
16
17$s_test_details = session_get_properties("test");
18$test_id = $s_test_details['test_id'];
19
20$test_name = test_get_name( $test_id);
21
22$redirect_page = "test_detail_page.php";
23
24$delete = util_clean_post_vars('delete');
25
26if ($delete == 'Yes') {
27
28    test_delete_test($test_id);
29
30    $page_name = "DELETE TEST";
31    $deletion = 'Y';
32    $creation = 'N';
33    $upload = 'N';
34    $action = "DELETED TEST $test_name ";
35
36    log_activity_log( $page_name, $deletion, $creation, $upload, $action );
37
38    $redirect_page = "test_page.php";
39}
40
41html_redirect($redirect_page);
42
43# ---------------------------------------------------------------------
44# $Log: test_detail_delete_action.php,v $
45# Revision 1.1.1.1  2005/11/30 23:00:58  gth2
46# importing initial version - gth
47#
48# ---------------------------------------------------------------------
49
50?>
51