Update standards version & libawl dependencies.
[wrms.git] / config / config-example.php
blob8e474d9992beb8d44f31b8e636d8d53eeb98236a
1 <?php
3 $dbconn = pg_Connect("dbname=example_wrms user=general");
5 $admin_email = "wrmsadmin@catalyst.net.nz";
6 $system_name = "Example WRMS";
8 // To identify our logging lines
9 $sysabbr = "example";
11 // Only admin/support can see the ranking report.
12 $rank_report_anyone = 0;
14 // is the Quality System component enabled
15 $qams_enabled = false;
17 // Should all e-mail be sent to a debugging address
18 // $debug_email = 'andrew@catalyst.net.nz';
20 // When searching, what are the default statuses to find
21 $default_search_statuses = '@NRILKTQADSPZU';
23 // //////////////////// Enable for debugging...
24 // $debuglevel = 5;
25 // $debuggroups['Session'] = 1;
26 // $debuggroups['Login'] = 1;
27 // $debuggroups['querystring'] = 1;
28 // $debuggroups['Request'] = 1;
29 // $debuggroups['WorkSystem'] = 1;
30 // $debuggroups['TimeSheet'] = 1;
32 $base_dns = "http://$HTTP_HOST";
33 $base_url = "";
34 $external_base_url = $base_dns;
35 $base_dir = $DOCUMENT_ROOT;
37 // The directory where attachments are stored.
38 // This should be created with mode 1777 as a 'temp' directory
39 $attachment_dir = "/home/wrms/wrms/html/attachments";
40 $module = "base";
42 $images = "images";
44 $stylesheet = "main.css";
46 $colors = array(
47 "bg1" => "#ffffff", // primary background
48 "fg1" => "#000000", // text on primary background
49 "link1" => "#660000", // Links on row0/row1
50 "bg2" => "#660000", // secondary background (behind menus)
51 "fg2" => "#ffffff", // text on links
52 "bg3" => "#000000", // tertiary background
53 "fg3" => "#ffffff", // tertiary foreground
54 "hv1" => "#660000", // text on hover
55 "hv2" => "#f0ff4c", // other text on hover
56 "row0" => "#ffffff", // dark rows in listings
57 "row1" => "#f0ece8", // light rows in listings
58 "link2" => "#333333", // Links on row0/row1
59 "bghelp" => "#ffffff", // help background
60 "fghelp" => "#000000", // text on help background
61 8 => "#583818", // Form headings
62 9 => "#ccbea1", // Mandatory forms
63 9 => "#ccbea1", // Mandatory forms
64 10 => "#50a070", // whatever!
65 10 => "#50a070", // whatever!
67 // Parts of a text block (default colors - some blocks might code around this
68 "blockfront" => "black",
69 "blockback" => "white",
70 "blockbg2" => "white",
71 "blocktitle" => "white",
72 "blocksides" => "#ffffff",
73 "blockextra" => "#660000"
76 $basefont = "verdana,sans-serif";
77 $fonts = array( "tahoma", // primary font
78 "verdana", // secondary font
79 "help" => "times", // help text
80 "quote" => "times new roman, times, serif", // quotes in messages
81 "narrow" => "arial narrow, helvetica narrow, times new roman, times", // quotes in messages
82 "fixed" => "courier, fixed", // monospace font
83 "block" => "tahoma"); // block font
86 // Set the bebug variable initially to '0'. This variable is made available
87 // to all local routines for verbose printing.
88 if ( !isset($debuglevel) ) $debuglevel = 2;
92 function block_open( $bgcolor="", $border_color="") {
93 global $colors;
94 if ( $bgcolor == "" ) $bgcolor=$colors["blockback"];
95 if ( $border_color == "" ) $border_color=$colors["blocksides"];
96 echo "<table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" width=\"100%\" bgcolor=\"$border_color\" style=\" margin: 0 1px;\">\n";
97 echo "<tr><td>\n";
98 echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$bgcolor\">\n";
101 //-----------------------------------------
102 // Function to title a block of options / menus / whatever
103 //-----------------------------------------
104 function block_title( $title="&nbsp;", $bgcolor="", $border_color="") {
105 global $colors;
106 if ( $bgcolor == "" ) $bgcolor=$colors["blocktitle"];
107 if ( $border_color == "" ) $border_color=$colors["blocksides"];
109 echo "<tr bgcolor=\"$bgcolor\">\n";
110 echo "<td class=blockhead align=center>$title</td>\n";
111 echo "</tr>\n";
115 //-----------------------------------------
116 // Function to finish a block of options / menus / whatever
117 //-----------------------------------------
118 function block_close() {
119 echo "</table>\n";
120 echo "</td></tr>\n";
121 echo "</table>\n";