bluescripts / bbug

Blue bug - free bug and feature tracking software written in PHP

This URL has Read+Write access

bbug / index.php
100755 43 lines (34 sloc) 1.052 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
session_start();
define('__bbug', 1);
 
# set default timezone for PHP 5.3
date_default_timezone_set('America/New_York');
 
// include the config files + class files
include('includes/main.php');
include('config.php');
include('includes/db.php');
include('includes/bug.php');
include('includes/user.php');
include('includes/todo.php');
include('includes/status.php');
 
define('REGISTERED', $config["registered"]);
// create db object
$mydb = new Database($db['host'], $db['user'], $db['pass'], $db['db'], '', 20);
$mydb->NewConnection();
// pass $mydb to Main
$main = new Main($mydb);
 
$main->headStart();
?>
<div class="clear"></div>
<div align="center">
<table width="100%" align="center" id="main_bb" cellspacing="0" cellpadding="0">
<tr><td align="center"></td></tr>
<tr><td id="mainbody"><?php $main->body(); ?></td>
<td width="300" id="sidenav"><?php $main->nav(); ?></td>
</tr>
<tr><td align="center"></td></tr>
</table>
</div>
<?php
  $main->footStart();
?>