userinfo['userid']) { $templatesetid = $bugsys->userinfo['templatesetid']; $templateset = $bugsys->datastore['templateset']["$templatesetid"]; } if (!$templatesetid) { foreach ($bugsys->datastore['templateset'] AS $templateset) { if ($templateset['default']) { $templatesetid = $templateset['templatesetid']; $templateset = $bugsys->datastore['templateset']["$templatesetid"]; } } } // ################################################################### // load the template system if (file_exists("./templates/$templateset[shortname]/tsinfo.php")) { $bugsys->load('template_fs'); $template->extension = 'tpl'; $template->templatedir = $bugsys->fetch_sourcepath("templates/$templateset[shortname]/"); } else { echo "template set info (templates/$templateset[shortname]/tsinfo.php) could not be loaded!"; exit; } // ################################################################### if ($bugsys->userinfo['userid']) { echo '