load('template_fs', 'template', true); $template->setExtension('tpl'); $template->setPreParseHook('isso_pre_parse_hook'); $template->setTemplateDir('templates/'); $template->setDatabaseCache(TABLE_PREFIX . 'template'); // ################################################################### // 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$ || ################################################################### \*=====================================================================*/ ?>