getById($bug); $project = $projects->getById($bug['project']); echo $xhtml->head('Bug #'.$bug['id'].': '.xHTML::Protect($bug['title']),"showbug"); echo '
'; if(!empty($bug['file'])) echo '

File(s) involved: '.xHTML::Protect($bug['file']).'

'; echo '

'.xHTML::Format($bug['text']).'

'; if($users->isLogged()) { echo '
Add comment
'; if($users->isAdmin() || $userData['id'] == $bug['owner'] || $userData['id'] == $bug['author']) { $userList = $users->getList(); echo '
Edit informations
Change owner
'; } echo '

'; if($users->isAdmin()) { echo '

Delete

'; } } echo $xhtml->foot(); ?>