]>
src.bluestatic.org Git - bugdar.git/blob - global.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 require_once('./includes/init.php');
15 // ###################################################################
16 // initialize template system
17 $bugsys->load('template_fs');
18 $template->extension
= 'tpl';
19 $template->templatedir
= $bugsys->fetch_sourcepath('templates/');
21 // ###################################################################
22 // check for userinfo -- temp
24 if ($bugsys->userinfo
['userid'])
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";
29 // ###################################################################
31 $globaltemplates = array(
41 'bugfield_input_text',
42 'bugfield_input_checkbox',
43 'bugfield_select_single_option',
44 'bugfield_select_single'
47 $template->cache(array_merge($globaltemplates, (array)$fetchtemplates));
49 // ###################################################################
50 // initialize template variables
53 // ###################################################################
54 // create error reporter
55 require_once('./includes/class_message_reporter.php');
56 $message = new Message_Reporter();
57 $bugsys->message
=& $message;
59 /*=====================================================================*\
60 || ###################################################################
63 || ###################################################################
64 \*=====================================================================*/