can_perform('canadminpanel'), 'newreport' => can_perform('cansubmitbugs'), 'search' => 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(); BSTemplate::cache(array_merge($globaltemplates, (array)$fetchtemplates)); BSApp::debug('time for tpl cache: ' . BSFunctions::fetch_microtime_diff($start)); BSTemplate::$globalVars = array( 'stylevar' => &$stylevar, 'show' => &$show, 'focus' => $focus ); $globalTemplates = array( 'header' => BSTemplate::fetch('header')->evaluate()->getTemplate(), 'doctype' => BSTemplate::fetch('doctype')->evaluate()->getTemplate(), 'headinclude' => BSTemplate::fetch('headinclude')->evaluate()->getTemplate(), 'footer' => BSTemplate::fetch('footer')->evaluate()->getTemplate(), ); BSTemplate::$globalVars = array_merge($globalTemplates, BSTemplate::$globalVars); } // ################################################################### // create error reporter require_once('./includes/class_message_reporter.php'); $message = new MessageReporter(); ?>