load('template_fs');
$template->extension = 'tpl';
$template->templatedir = $bugsys->fetch_sourcepath('templates/');
// ###################################################################
// check for userinfo -- temp
// #*# remove
if ($bugsys->userinfo['userid'])
{
echo '
You are logged in as ' . construct_user_display($bugsys->userinfo) . ' | [
Home] | [
New Bug]' . ((can_perform('canadminpanel')) ? ' | [
Admin]' : '') . ' | [
Logout]
' . "\n\n\n\n";
}
// ###################################################################
// cache templates
$globaltemplates = array(
'doctype',
'header',
'headinclude',
'footer',
'selectoption',
'selectoptgroup',
'std_error',
'std_redirect',
'std_message',
'bugfield_input_text',
'bugfield_input_checkbox',
'bugfield_select_single_option',
'bugfield_select_single'
);
$template->cache(array_merge($globaltemplates, (array)$fetchtemplates));
// ###################################################################
// initialize template variables
$show = array();
// ###################################################################
// create error reporter
require_once('./includes/class_message_reporter.php');
$message = new Message_Reporter();
$bugsys->message =& $message;
/*=====================================================================*\
|| ###################################################################
|| # $HeadURL$
|| # $Id$
|| ###################################################################
\*=====================================================================*/
?>