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 Plan File Upload Action Page 10# 11# $RCSfile: bug_upload_file_action.php,v $ $Revision: 1.1 $ 12# --------------------------------------------------------------------- 13 14include"./api/include_api.php"; 15auth_authenticate_user(); 16 17$project_id = session_get_project_id(); 18$bug_id = $_POST['bug_id']; 19$redirect_page = "bug_detail_page.php?bug_id=$bug_id"; 20 21 22file_add_bug_file( $_FILES['uploadfile_required']['tmp_name'], 23 $_FILES['uploadfile_required']['name'], 24 $bug_id, 25 $redirect_page ); 26 27html_print_operation_successful( 'bug_detail_page', $redirect_page ); 28 29# --------------------------------------------------------------------- 30# $Log: bug_upload_file_action.php,v $ 31# Revision 1.1 2006/10/05 02:43:16 gth2 32# adding file upload to the bug page - gth 33# 34# --------------------------------------------------------------------- 35 36?>