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)
29 * I'm not a real programmer. I throw together things until it works
30 * then I move on. The real programmers will say "yeah it works but
31 * you're leaking memory everywhere. Perhaps we should fix that." I'll
32 * just restart apache every 10 requests.
36 require_once('../env.inc.php');
37 require_once $gfwww.'include/pre.php';
38 require_once $gfcommon.'pm/ProjectTaskSqlQueries.php';
40 $tid = getIntFromRequest('tid');
42 $tid = util_path_info_last_numeric_component();
44 header("HTTP/1.0 404 Not Found");
45 echo "You forgot to pass the tid.\n";
49 $tinfo = getGroupProjectIdGroupId($tid);
52 header("HTTP/1.0 404 Not Found");
53 echo "There is no task with id ".$tid."!\n";
57 $dsturl = util_make_url("/pm/task.php?func=detailtask&project_task_id=" .
58 $tinfo['project_task_id'] . "&group_id=" . $tinfo['group_id'] .
59 "&group_project_id=" . $tinfo['group_project_id']);
60 header("HTTP/1.0 302 Found");
61 header("Location: " . $dsturl);
62 echo "The result is at:\n" . $dsturl . "\n";