userinfo['permissions'] & CANVIEWBUGS)) { echo 'no permission'; exit; } // ################################################################### if (empty($_REQUEST['do'])) { $_REQUEST['do'] = 'modify'; } // ################################################################### if ($_REQUEST['do'] == 'modify') { sanitize(array('bugid' => INT)); if (!$vars['bugid']) { echo 'alert: bad bug'; exit; } $bug = $DB_sql->query_first(" SELECT bug.*, user.displayname, user.email, user.showemail FROM " . TABLE_PREFIX . "bug AS bug LEFT JOIN " . TABLE_PREFIX . "user AS user ON (bug.userid = user.userid) WHERE bug.bugid = $vars[bugid]" ); if (!is_array($bug)) { echo 'alert: bad bug'; exit; } echo "
Bug ID: $bug[bugid]
"; echo "
Reported by: $bug[displayname]" . iff($bug['showemail'], " <$bug[email]>") . " (userid: $bug[userid])
"; echo "
Product: " . $bugsys->datastore['product']["$bug[productid]"]['title'] . iff($bug['componentid'], ' / Component:' . $bugsys->datastore['product']["$bug[componentid]"]['title'] . '') . ' / Version: ' . $bugsys->datastore['version']["$bug[versionid]"]['version'] . "
"; echo "
Title / summary: $bug[summary]
"; echo "
Status: " . $bugsys->datastore['status']["$bug[status]"]['status'] . " / Resolution: " . $bugsys->datastore['resolution']["$bug[resolution]"]['resolution'] . "
"; echo "
Severity: " . $bugsys->datastore['severity']["$bug[severity]"]['severity'] . "
"; echo "
Priority: " . $bugsys->datastore['priority']["$bug[priority]"]['priority'] . "
"; $assigninfo = $bugsys->datastore['assignto']["$bug[assignedto]"]; echo iff(is_array($assigninfo), "
Assigned to: " . $assigninfo['displayname'] . iff($assigninfo['showemail'], " <$assigninfo[email]>") . " (userid: $assigninfo[userid])
"); echo '
'; $comments = $DB_sql->query(" SELECT comment.*, user.email, user.showemail, user.displayname FROM " . TABLE_PREFIX . "comment AS comment LEFT JOIN " . TABLE_PREFIX . "user AS user ON (comment.userid = user.userid) WHERE comment.bugid = $vars[bugid] ORDER BY comment.dateline ASC" ); while ($comment = $DB_sql->fetch_array($comments)) { echo '"; echo "
' . datelike('standard', $comment['dateline']) . '' . $comment['displayname'] . iff($comment['showemail'], " <$comment[email]>") . " (userid: $comment[userid])
" . nl2br($comment['comment']) . "
"; } if ($bugsys->userinfo['permissions'] & CANPOSTCOMMENTS) { echo "
[New Comment]
"; } /*print_r($bug); print_r($comments);*/ } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>