r243: Comment OCD
[bugdar.git] / global.php
1 <?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 \*=====================================================================*/
12
13 require_once('./includes/init.php');
14
15 // ###################################################################
16 // initialize template system
17 $bugsys->load('template_fs');
18 $template->extension = 'tpl';
19 $template->templatedir = $bugsys->fetch_sourcepath('templates/');
20
21 // ###################################################################
22 // check for userinfo -- temp
23 // #*# remove
24 if ($bugsys->userinfo['userid'])
25 {
26 echo '<div>You are logged in as ' . construct_user_display($bugsys->userinfo) . ' | [<a href="index.php?">Home</a>] | [<a href="newreport.php">New Bug</a>]' . ((can_perform('canadminpanel')) ? ' | [<a href="admin/">Admin</a>]' : '') . ' | [<a href="login.php?do=logout">Logout</a>]</div><hr />' . "\n\n<!-- ******************************************************************* -->\n\n";
27 }
28
29 // ###################################################################
30 // cache templates
31 $globaltemplates = array(
32 'doctype',
33 'header',
34 'headinclude',
35 'footer',
36 'selectoption',
37 'selectoptgroup',
38 'std_error',
39 'std_redirect',
40 'std_message',
41 'bugfield_input_text',
42 'bugfield_input_checkbox',
43 'bugfield_select_single_option',
44 'bugfield_select_single'
45 );
46
47 $template->cache(array_merge($globaltemplates, (array)$fetchtemplates));
48
49 // ###################################################################
50 // initialize template variables
51 $show = array();
52
53 // ###################################################################
54 // create error reporter
55 require_once('./includes/class_message_reporter.php');
56 $message = new Message_Reporter();
57 $bugsys->message =& $message;
58
59 /*=====================================================================*\
60 || ###################################################################
61 || # $HeadURL$
62 || # $Id$
63 || ###################################################################
64 \*=====================================================================*/
65 ?>