]>
src.bluestatic.org Git - bugdar.git/blob - index.php
2 /*=====================================================================*\
3 || ################################################################### ||
4 || # BugStrike [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
13 $fetchtemplates = array(
18 require_once('./global.php');
20 if (!can_perform('canviewbugs'))
26 // ###################################################################
28 // #*# pagination needs to be done here
30 $bugs_fetch = $db->query("
31 SELECT bug.*, user1.displayname AS firstreport, user2.displayname AS lastpost
32 FROM " . TABLE_PREFIX
. "bug AS bug
33 LEFT JOIN user AS user1
34 ON (bug.userid = user1.userid)
35 LEFT JOIN user AS user2
36 ON (bug.lastpostby = user2.userid)
37 ORDER BY bug.lastposttime DESC"
40 while ($bug = $db->fetch_array($bugs_fetch))
42 $bug['bgcolour'] = $bugsys->datastore
['status']["$bug[status]"]['color'];
43 $bug['product'] = $bugsys->datastore
['product']["$bug[productid]"]['title'];
44 $bug['version'] = $bugsys->datastore
['version']["$bug[versionid]"]['version'];
45 $bug['status'] = $bugsys->datastore
['status']["$bug[status]"]['status'];
46 $bug['resolution'] = $bugsys->datastore
['resolution']["$bug[resolution]"]['resolution'];
47 $bug['lastpostinfo'] = datelike('standard', $bug['lastposttime']) . ' by ' . $bug['lastpost'];
48 eval('$bugs .= "' . $template->fetch('trackerhome_bits') . '";');
51 $db->free_result($bugs_fetch);
53 $show['newreport'] = ((can_perform('cansubmitbugs')) ? true : false);
55 eval('$template->flush("' . $template->fetch('TRACKERHOME') . '");');
57 /*=====================================================================*\
58 || ###################################################################
61 || ###################################################################
62 \*=====================================================================*/