3 * Task UUID implementation for FusionForge
6 * Thorsten “mirabilos” Glaser <t.glaser@tarent.de>
9 * This file is part of FusionForge. FusionForge is free software;
10 * you can redistribute it and/or modify it under the terms of the
11 * GNU General Public License as published by the Free Software
12 * Foundation; either version 2 of the License, or (at your option)
15 * FusionForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 * Follow up to the task information page by UUID (project_task_id)
28 require_once('../env.inc.php');
29 require_once $gfwww.'include/pre.php';
30 require_once $gfcommon.'pm/ProjectTaskSqlQueries.php';
32 $tid = getIntFromRequest('tid');
34 $tid = util_path_info_last_numeric_component();
36 header("HTTP/1.0 404 Not Found");
37 echo "You forgot to pass the tid.\n";
41 $tinfo = getGroupProjectIdGroupId($tid);
44 header("HTTP/1.0 404 Not Found");
45 echo "There is no task with id ".$tid."!\n";
49 $dsturl = util_make_url("/pm/task.php?func=detailtask&project_task_id=" .
50 $tinfo['project_task_id'] . "&group_id=" . $tinfo['group_id'] .
51 "&group_project_id=" . $tinfo['group_project_id']);
52 header("HTTP/1.0 302 Found");
53 header("Location: " . $dsturl);
54 echo "The result is at:\n" . $dsturl . "\n";