0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
tikiwiki
/
1.9.7-31
/
htdocs
/
[
Home
]
File: tiki-view_tracker_more_info.php
<?php // $Header: /cvsroot/tikiwiki/tiki/tiki-view_tracker_more_info.php,v 1.4.6.2 2005/10/30 10:31:11 ohertel Exp $ // Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // 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. // Initialization require_once ('tiki-setup.php'); include_once ('lib/trackers/trackerlib.php'); if ($feature_trackers != 'y') { $smarty->assign('msg', tra("This feature is disabled").": feature_trackers"); $smarty->display("error.tpl"); die; } if (!isset($_REQUEST["attId"])) { $smarty->assign('msg', tra("No item indicated")); $smarty->display("error.tpl"); die; } $info = $trklib->get_moreinfo($_REQUEST["attId"]); $trackerId = $info['trackerId']; unset($info['trackerId']); if (!$trackerId) { $smarty->assign('msg', tra("That tracker don't use extras.")); $smarty->display("error_simple.tpl"); die; } $smarty->assign('trackerId', $trackerId); $smarty->assign('individual', 'n'); if ($userlib->object_has_one_permission($trackerId, 'tracker')) { $smarty->assign('individual', 'y'); if ($tiki_p_admin != 'y') { $perms = $userlib->get_permissions(0, -1, 'permName_desc', '', 'trackers'); foreach ($perms["data"] as $perm) { $permName = $perm["permName"]; if ($userlib->object_has_permission($user, $trackerId, 'tracker', $permName)) { $$permName = 'y'; $smarty->assign("$permName", 'y'); } else { $$permName = 'n'; $smarty->assign("$permName", 'n'); } } } } if ($tiki_p_view_trackers != 'y') { $smarty->assign('msg', tra("You do not have permission to use this feature")); $smarty->display("error.tpl"); die; } $smarty->assign("info",$info); $smarty->display("tiki-view_tracker_more_info.tpl"); ?>