tiki-view_tracker_more_info.php 989 Bytes
Newer Older
1
<?php
2
// (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project
3
// 
4 5
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6
// $Id$
changi67's avatar
changi67 committed
7

8 9
require_once ('tiki-setup.php');
include_once ('lib/trackers/trackerlib.php');
10 11 12

$access->check_feature('feature_trackers');

13
if (!isset($_REQUEST["attId"])) {
14 15 16
	$smarty->assign('msg', tra("No item indicated"));
	$smarty->display("error.tpl");
	die;
17 18
}
$info = $trklib->get_moreinfo($_REQUEST["attId"]);
19
$trackerId = $info['trackerId'];
mose's avatar
mose committed
20
unset($info['trackerId']);
21
if (!$trackerId) {
22 23 24
	$smarty->assign('msg', tra("That tracker don't use extras."));
	$smarty->display("error_simple.tpl");
	die;
25
}
26
$smarty->assign('trackerId', $trackerId);
27
$tikilib->get_perm_object($trackerId, 'tracker');
28

29 30
$access->check_permission('tiki_p_view_trackers');

changi67's avatar
changi67 committed
31
$smarty->assign("info", $info);
32
$smarty->display("tiki-view_tracker_more_info.tpl");