<?php
/*=====================================================================*\
|| ###################################################################
|| # Bugdar
|| # Copyright ©2002-2007 Blue Static
|| #
|| # This program is free software; you can redistribute it and/or modify
|| # it under the terms of the GNU General Public License as published by
|| # the Free Software Foundation; version 2 of the License.
|| #
|| # This program is distributed in the hope that it will be useful, but
|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|| # more details.
|| #
|| # You should have received a copy of the GNU General Public License along
|| # with this program; if not, write to the Free Software Foundation, Inc.,
|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|| ###################################################################
\*=====================================================================*/
require_once('./includes/init.php');
define('HTML_CHECKED', ' checked="checked"');
// ###################################################################
// initialize template system
$bugsys->load('template_fs', 'template', true);
$template->setExtension('tpl');
$template->setPreParseHook('isso_pre_parse_hook');
$template->setTemplateDir('templates/');
$template->setDatabaseCache(TABLE_PREFIX . 'template');
$template->langcall = 'T';
// ###################################################################
// global template variables
$datetime = $datef->format('l, F j, Y g:i A');
$year = $datef->format('Y');
$version = $bugsys->options['trackerversion'];
$show['admin'] = (bool)can_perform('canadminpanel');
$show['newreport'] = (bool)can_perform('cansubmitbugs');
$show['search'] = (bool)can_perform('cansearch');
if (!(defined('NO_TEMPLATES') AND constant('NO_TEMPLATES') == true))
{
// ###################################################################
// 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',
'username_display',
'help_link'
);
$start = microtime();
$template->cache(array_merge($globaltemplates, (array)$fetchtemplates));
$bugsys->debug('time for tpl cache: ' . $funct->fetch_microtime_diff($start));
eval('$header = "' . $template->fetch('header') . '";');
eval('$doctype = "' . $template->fetch('doctype') . '";');
eval('$headinclude = "' . $template->fetch('headinclude') . '";');
eval('$footer = "' . $template->fetch('footer') . '";');
}
// ###################################################################
// ###################################################################
// initialize template variables
$show = array();
// ###################################################################
// create error reporter
require_once('./includes/class_message_reporter.php');
$message = new MessageReporter();
$bugsys->message =& $message;
/*=====================================================================*\
|| ###################################################################
|| # $HeadURL$
|| # $Id$
|| ###################################################################
\*=====================================================================*/
?>