]>
src.bluestatic.org Git - bugdar.git/blob - global.php
2 /*=====================================================================*\
3 || ################################################################### ||
4 || # BugStrike [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
13 require_once('./includes/init.php');
15 // ###################################################################
16 // get the templateset
17 if ($bugsys->userinfo
['userid'])
19 $templatesetid = $bugsys->userinfo
['templatesetid'];
20 $templateset = $bugsys->datastore
['templateset']["$templatesetid"];
24 foreach ($bugsys->datastore['templateset'] AS $templateset)
26 if ($templateset['default'])
28 $templatesetid = $templateset['templatesetid'];
29 $templateset = $bugsys->datastore['templateset']["$templatesetid"];
34 // ###################################################################
35 // load the template system
36 if (file_exists("./templates/$templateset[shortname]/tsinfo.php"))
38 $bugsys->load('template_fs');
39 $template->extension
= 'tpl';
40 $template->templatedir
= $bugsys->fetch_sourcepath("templates/$templateset[shortname]/");
44 echo "template set info (templates/$templateset[shortname]/tsinfo.php) could not be loaded!";
48 // ###################################################################
50 if ($bugsys->userinfo
['userid'])
52 echo '<div>You are logged in as ' . construct_user_display($bugsys->userinfo
) . ' | [<a href="index.php?">Home</a>] | [<a href="newreport.php">New Bug</a>]' . ((can_perform('canadminpanel')) ? ' | [<a href="admin/">Admin</a>]' : '') . '</div><hr />' . "\n\n<!-- ******************************************************************* -->\n\n";
55 // ###################################################################
57 $globaltemplates = array(
66 $template->cache(array_merge($globaltemplates, (array)$fetchtemplates));
68 // ###################################################################
69 // initialize template variables
72 /*=====================================================================*\
73 || ###################################################################
76 || ###################################################################
77 \*=====================================================================*/