r306: Adding copyright notice.
[bugdar.git] / global.php
1 <?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 \*=====================================================================*/
12
13 require_once('./includes/init.php');
14
15 // ###################################################################
16 // initialize template system
17 $bugsys->load('template_fs');
18 $template->extension = 'tpl';
19 $template->templatedir = $bugsys->fetch_sourcepath('templates/');
20
21 // ###################################################################
22 // global template variables
23 $datetime = $datef->format('l, F j, Y g:i A');
24 $year = $datef->format('Y');
25 $version = $bugsys->options['trackerversion'];
26
27 // ###################################################################
28 // cache templates
29 $globaltemplates = array(
30 'doctype',
31 'header',
32 'headinclude',
33 'footer',
34 'selectoption',
35 'selectoptgroup',
36 'std_error',
37 'std_redirect',
38 'std_message',
39 'bugfield_input_text',
40 'bugfield_input_checkbox',
41 'bugfield_select_single_option',
42 'bugfield_select_single'
43 );
44
45 $template->cache(array_merge($globaltemplates, (array)$fetchtemplates));
46
47 eval('$header = "' . $template->fetch('header') . '";');
48 eval('$doctype = "' . $template->fetch('doctype') . '";');
49 eval('$headinclude = "' . $template->fetch('headinclude') . '";');
50 eval('$footer = "' . $template->fetch('footer') . '";');
51
52 // ###################################################################
53 // initialize template variables
54 $show = array();
55
56 // ###################################################################
57 // create error reporter
58 require_once('./includes/class_message_reporter.php');
59 $message = new Message_Reporter();
60 $bugsys->message =& $message;
61
62 /*=====================================================================*\
63 || ###################################################################
64 || # $HeadURL$
65 || # $Id$
66 || ###################################################################
67 \*=====================================================================*/
68 ?>